![](https://img-blog.csdnimg.cn/2019091813595558.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Debug大合集
日常编码过程中遇到的bug合集、解决方案、思路
Hayley-L
这个作者很懒,什么都没留下…
展开
-
Nginx open() "~.mp4" failed (13: Permission denied), client: 172.*.*.*, server: , request:
2018/11/08 01:53:13 [error] 20476#20476: *12876 open() "/opt/~/media/video/20181108012910_85931.mp4" failed (13: Permission denied), client: 1原创 2018-11-09 11:07:40 · 529 阅读 · 0 评论 -
linux ffmpeg Unknown encoder 'h264'
linux执行命令:ffmpeg -y -i v_test.avi -vcodec h264 -str错误原因:当前ffmpeg没有h264视频编码器解决方案:1.安装x2642.重新安装ffmpeg error while loading shared libraries: libavdevice.so.58(libx264.so.157): cannot open shared object file: No such file or directory原创 2018-11-29 18:02:14 · 10142 阅读 · 0 评论 -
django2.2/mysql ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3
报错环境 django=2.2,PyMySQL=0.9.3……django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3.解决方法:Django连接MySQL时默认使用MySQLdb驱动,但MySQLdb不支持Python3,因此这里将MySQL...原创 2019-04-08 18:24:42 · 57502 阅读 · 65 评论 -
Linux mysql 1045 access denied for user ‘test’@‘localhost’ using password yes
navicate远程连接数据库报错1045 access denied for user ‘test’@‘localhost’ using password yeslinux mysql添加用户,删除用户,以及用户权限:https://www.cnblogs.com/zhchoutai/p/6929103.html解决方案:CREATE USER 'test'@'%' IDENTIF...原创 2018-11-20 11:07:03 · 376 阅读 · 0 评论 -
django ‘MySQL server has gone away’
(2006, ‘MySQL server has gone away’)原因:保存数据过大;保存数据时间超时linux:/etc/my.cnfhttps://blog.csdn.net/hiahuotiankong/article/details/56670578解决办法:找到你的mysql目录下的my.ini配置文件,加入以下代码:max_allowed_packet=500Mw...原创 2018-11-13 16:13:34 · 832 阅读 · 0 评论 -
setTimeout("location.replace(location.href.split(\"#\")[0])",2000);
"<html><head><script language="javascript">setTimeout("location.replace(location.href.split(\"#\")[0])",2000);</script><script type="text/javascript" src="http://1.1.1.3:...原创 2019-05-31 10:16:34 · 4736 阅读 · 0 评论 -
django/mysql ImproperlyConfigured: Error loading MySQLdb module.
……django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module.Did you install mysqlclient?解决方法:在 python3 中,改变了连接库,改为了 pymysql 库,使用pip install pymysql 进行安装,然后在 init.py 文件中添加以下代码即可。...原创 2018-11-19 09:59:08 · 366 阅读 · 1 评论 -
redis celery:AttributeError: str object has no attribute items
linuxpython manage.py celery worker -B -l info报错…… File "/root/anaconda3/envs/env**/lib/python3.6/site-packages/redis/client.py", line 2263, in zadd for pair in iteritems(mapping): File "/...原创 2019-02-28 10:51:06 · 2090 阅读 · 0 评论 -
numpy:DeprecationWarning: The binary mode of fromstring is deprecated, as it behaves surprisingly
DeprecationWarning: The binary mode of fromstring is deprecated, as it behaves surprisingly on unicode inputs. Use frombuffer instead nparr = np.fromstring(imgString,np.uint8)在做图像base64与numpy arra...原创 2020-03-25 17:50:01 · 11800 阅读 · 0 评论