会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
psycho_wsy
博客园
首页
新随笔
联系
订阅
管理
2022年2月25日
vue-router在nginx的配置
摘要: vue.config.js module.exports = { publicPath: "/vue3/", # 项目url outputDir: "vue3", # 项目打包名 assetsDir: "static", # 静态文件夹名 }; nginx location /vue3/ { roo
阅读全文
posted @ 2022-02-25 22:36 Maltone
阅读(635)
评论(0)
推荐(0)
2021年12月21日
django drf关闭接口csrf验证
摘要: from rest_framework.authentication import SessionAuthentication, BasicAuthentication from rest_framework.permissions import IsAuthenticated class Csrf
阅读全文
posted @ 2021-12-21 17:51 Maltone
阅读(305)
评论(0)
推荐(0)
2021年11月23日
axios下载Django返回的二进制文件
摘要: 后端 from django.http import FileResponse import pandas as pd from io import BytesIO def download(request): buffer = BytesIO() queryset = xxx.objects.va
阅读全文
posted @ 2021-11-23 15:33 Maltone
阅读(218)
评论(0)
推荐(0)
2021年11月18日
mysql放行指定ip或所有ip访问
摘要: GRANT ALL PRIVILEGES ON *.* TO 'root'@'x.x.x.x' IDENTIFIED BY 'password' WITH GRANT OPTION; flush privileges;
阅读全文
posted @ 2021-11-18 14:22 Maltone
阅读(272)
评论(0)
推荐(0)
2021年11月17日
在centos7上安装nginx
摘要: 创建文件:/etc/yum.repos.d/nginx.repo [nginx-stable] name=nginx stable repo baseurl=http://nginx.org/packages/centos/$releasever/$basearch/ gpgcheck=1 enab
阅读全文
posted @ 2021-11-17 22:24 Maltone
阅读(29)
评论(0)
推荐(0)
通过yum方法在centos7上安装mysql 5.7
摘要: 下载mysql的yum repo rpm文件并安装 wget https://dev.mysql.com/get/mysql80-community-release-el7-4.noarch.rpm yum localinstall mysql80-community-release-el7-4.n
阅读全文
posted @ 2021-11-17 22:05 Maltone
阅读(90)
评论(0)
推荐(0)
2021年9月25日
在vue中使用echarts.init dom时提示找不到dom的解决办法
摘要: 在mounted中,使用this.nextTick 然后在setTimeout中init dom
阅读全文
posted @ 2021-09-25 21:22 Maltone
阅读(787)
评论(0)
推荐(0)
2021年9月18日
python import pandas时提示Could not import the lzma module
摘要: # 在centos安装xz-devel,然后重新编译一下 yum install xz-devel ./configure --enable-optimizations #安装backports.lzma包 pip install backports.lzma 修改python文件 # /usr/l
阅读全文
posted @ 2021-09-18 15:58 Maltone
阅读(330)
评论(0)
推荐(0)
2021年5月28日
centos关闭防火墙
摘要: systemctl stop firewalldsystemctl stop iptablessystemctl disable firewalld.servicesystemctl disable iptables.servicesed -i 's/SELINUX=enforcing/SELINU
阅读全文
posted @ 2021-05-28 13:21 Maltone
阅读(81)
评论(0)
推荐(0)
2021年5月26日
VS CODE prettier配置
摘要: 根目录建立.prettierrc文件 配置: { "semi": false, "singleQuote": true, "bracketSpacing": false }
阅读全文
posted @ 2021-05-26 17:12 Maltone
阅读(169)
评论(0)
推荐(0)
下一页
公告