上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 34 下一页

2018年9月3日

django报错解决:view must be a callable or a list/tuple in the case of include().

摘要: django版本:1.11.15 django应用,修改urls.py后,访问报错:TypeError at /view must be a callable or a list/tuple in the case of include(). 修改后的urls.py文件:from django.co 阅读全文

posted @ 2018-09-03 17:32 kingofyz 阅读(1974) 评论(0) 推荐(0)

django报错解决:Invalid HTTP_HOST header: 'xxx.com'. You may need to add u'xxx.com' to ALLOWED_HOSTS.

摘要: django版本:1.11.15 使用uwsgi+nginx运行django程序,出现报错,报错为:Invalid HTTP_HOST header: 'xxx.com:82'. You may need to add u'xxx.com' to ALLOWED_HOSTS.xxx.com为绑定的测 阅读全文

posted @ 2018-09-03 17:18 kingofyz 阅读(4201) 评论(0) 推荐(0)

2018年8月14日

linux清空文件内容的三种方法

摘要: linux系统中清空文件内容的三种方法 1.使用vi/vim命令打开文件后,输入"%d"清空,后保存即可。但当文件内容较大时,处理较慢,命令如下:vim file_name:%d:wq 2.使用cat命令情况,命令如下:cat /dev/null > file_name 3.使用echo命令清空,此 阅读全文

posted @ 2018-08-14 17:00 kingofyz 阅读(121289) 评论(1) 推荐(11)

2018年7月22日

centos 虚拟机中最小化安装,无法上网的解决方法

摘要: 无法上网原因:因为最小化安装以后,centos 默认未开启网卡 解决方法进入 /etc/sysconfig/network-scripts/ifcfg-enp0s3 文件中 进入编辑模式,将 ONBOOT=no 改为 ONBOOT=yes 保存后重启网卡,输入命令:service network r 阅读全文

posted @ 2018-07-22 15:46 kingofyz 阅读(1291) 评论(0) 推荐(0)

2018年7月9日

EnvironmentError: mysql_config not found问题解决(centos7下python安装mysql-python)

摘要: centos7下python安装mysql-python模块,执行命令: pip install mysql-python 出现报错:EnvironmentError: mysql_config not found 网上查了一下需安装mysql-devel yum -y install mysql- 阅读全文

posted @ 2018-07-09 11:34 kingofyz 阅读(641) 评论(0) 推荐(0)

2018年7月5日

php Call to undefined function imagettftext()问题解决

摘要: 测试代码出现报错Call to undefined function imagettftext(),发现是gd库出现了问题 通过phpInfo()查看 gd库已经开启,但是里边没有freeType 和jpeg的支持 但有png的支持 估计是 freetype 跟 jpeg没有安装 于是安装这两软件 阅读全文

posted @ 2018-07-05 16:38 kingofyz 阅读(2051) 评论(0) 推荐(0)

2018年5月30日

virtualBox 虚拟机下nginx设置不缓存静态文件不起作用解决办法

摘要: 最近开发的时候,调整js时会一直使用缓存文件,无法显示改动!nginx配置静态文件add_header Cache-Control no-cache;也不起作用,很苦恼! nginx配置代码:events { worker_connections 768; # multi_accept on;} h 阅读全文

posted @ 2018-05-30 18:31 kingofyz 阅读(530) 评论(0) 推荐(0)

2018年5月28日

php+js实现重定向跳转并post传参

摘要: 页面重定向跳转并post传参 $mdata=json_encode($mdata);//如果是字符串无需使用json echo " <form style='display:none;' id='form1' name='form1' method='post' action='reward?sys 阅读全文

posted @ 2018-05-28 14:19 kingofyz 阅读(2816) 评论(0) 推荐(0)

2018年5月10日

Go 语言学习笔记

摘要: 前言 Go 语言简洁 Go 是一个开源的编程语言,它能让构造简单、可靠且高效的软件变得容易。Go是从2007年末由Robert Griesemer, Rob Pike, Ken Thompson主持开发,后来还加入了Ian Lance Taylor, Russ Cox等人,并最终于2009年11月开 阅读全文

posted @ 2018-05-10 11:45 kingofyz 阅读(277) 评论(0) 推荐(0)

2018年3月16日

centos7使用163 yum源

摘要: 一般是下载 .repo 源即可,但有时候我们需要安装一些额外的包,就需要下载 Extra Packages for Enterprise Linux (EPEL) 源, 比如我们需要用 yum 安装 ansible ,就需要安装 epel 。 安装 163 repo 源。 repo 源一般包括 ba 阅读全文

posted @ 2018-03-16 17:08 kingofyz 阅读(487) 评论(0) 推荐(0)

上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 34 下一页

导航