摘要: vue上服务器后因为插件原因报错: AttributeError: ‘str‘ object has no attribute ‘decode‘ 解决办法: str.encode('utf-8').decode('utf-8') 阅读全文
posted @ 2022-09-14 18:14 门徒21 阅读(26) 评论(0) 推荐(0)
摘要: nohup python manage.py runserver 0.0.0.0:80 > run.log 2>&1 &通过ps -ef |grep python获取Python进程号然后kill - 9进程号查看进程: ps -ef|grep "python"杀死进程: kill -9 3435 阅读全文
posted @ 2022-09-14 18:10 门徒21 阅读(42) 评论(0) 推荐(0)
摘要: 亲自验证过的。 使用函数 //时间转换,时间转换 Wed Sep 16 2020 00:00:00 GMT+0800 (中国标准时间) dateFormat(dateData) { var date = new Date(dateData) var y = date.getFullYear() va 阅读全文
posted @ 2022-06-21 17:43 门徒21 阅读(2813) 评论(0) 推荐(0)
摘要: 使用 netstat 命令时提示没有权限访问,添加可执行权限也被拒绝,这种情况下可执行如下命令解决: lsattr /usr/bin/netstatchattr -i /usr/bin/netstatlsattr /usr/bin/netstatll /usr/bin/netstatchmod 75 阅读全文
posted @ 2022-06-20 17:43 门徒21 阅读(452) 评论(0) 推荐(0)
摘要: 查看进程 ps -ef |grep python 关闭进程 kill -9 26879 linux下后台执行某个python脚本 nohup python -u xxx.py > out.log 2>&1 & 阅读全文
posted @ 2022-06-20 16:17 门徒21 阅读(918) 评论(0) 推荐(0)
摘要: 陷入死循环 mounted: function() { location.reload(); }, 正确方法 noReloaded: function () { if (location.href.indexOf("#reloaded") == -1) { location.href = locat 阅读全文
posted @ 2022-02-05 02:09 门徒21 阅读(2630) 评论(0) 推荐(0)
摘要: 当你接收到400 这里失败请求的时候,其实已经成功访问服务器了,可能你发送的post数据在服务器那边校验失败了,如果你的服务器返回的是json格式的话,在前端接收到的也是json格式,如果你使用axios发送请求的话,在catch的时候,返回的error并不是一个对象,而是这样的字符串: 那么axi 阅读全文
posted @ 2022-01-12 21:55 门徒21 阅读(2685) 评论(0) 推荐(0)
摘要: linux 下面启动nginx 和关闭nginx, 查看linux 开放的所有端口netstat -ntpl,重启服务命令 :service network restart 1 进入到安装的目录里面 whereis nginx 2. 进入该路径:cd /usr/local/nginx/sbin 3 阅读全文
posted @ 2022-01-06 15:29 门徒21 阅读(5520) 评论(0) 推荐(0)
摘要: linux 下,mysql 的表面默认是区分大小写的,windows 下默认不区分大小写,我们大多数在windows 下开发,之后迁移到linux,可以修改配置是linux下,myql 表名不区分大小写 MySQL在Linux下数据库名、表名、列名、别名大小写规则是这样的: 1、数据库名与表名是严格 阅读全文
posted @ 2022-01-05 10:23 门徒21 阅读(296) 评论(0) 推荐(0)
摘要: 问题描述 在对"my.cnf"进行编辑后,当我尝试启动容器时,我现在在Mac上从Kitematic收到一个错误: mysqld: [ERROR] Found option without preceding group in config file /etc/mysql/my.cnf at line 阅读全文
posted @ 2022-01-04 16:49 门徒21 阅读(104) 评论(0) 推荐(0)