关于 Nginx 499 和 proxy_ignore_client_abort 参数的说明 发表于 2016-08-17 | 分类于 nginx | 默认 proxy_ignore_client_abort 是关闭的,此时在请求过程中如果客户端端主动关闭请求或者客户端网络断掉,那么 Nginx 会记录 499 阅读全文 »
Python中将html转换成pdf的方法 发表于 2016-04-15 | 分类于 Python | 1.使用在线的接口,但是基本要收费和限制调用次数例如:pdfcrowd 接口地址:https://pdfcrowd.com/html-to-pdf-api/ 2.xhtml2pdf源码地址 :https://github.com/xhtml2pdf/xhtml2pdf 123456789import xhtml2pdf.pisa as pisadest='test.pdf'f=open('shiptemp_1.html')data=f.read()print dat ... 阅读全文 »
关于nginx访问 静态文件 403 的错误 发表于 2016-03-04 | 分类于 nginx | 例如 ngixn的配置的静态文件访问 如下: location /static {root /var/app/lxxxx/web;} 1.检查所有的文件有无读权限 chmod 644 -R 2.检查父目录 即 web及以上目录有无可执行权限 chmod 755 xxx/ 阅读全文 »
关于nginx做代理,uwsgi gunicorn等服务器做后端时 发表于 2015-05-07 | 分类于 nginx | (1) 响应数据过大 被截断的问题 通常看buffers参数的设置(缓冲从后端服务器的应答) uwsgi的参数是 uwsgi_buffers 4 128k gunicorn 设置代理参数 proxy_buffers 4 128k; 4 128k的值 相对合适 (2) ... 阅读全文 »
关于 freetds pymssql 的安装部署 发表于 2015-04-27 | 分类于 Python | 关于 freetds pymssql 的安装部署 一、安装:(freetds-0.91 pymssql 2.0.1) 如果要在linux机器 连接mysqlsever 1.需要安装freetds12./configuremake && make install 测试tsql -C查看安装的版本123tsql -H 10.20.17.102 -p 1433 -U sa -P "password" -D DBANME 连接mysqlserver> SE ... 阅读全文 »
python whl包的安装 发表于 2015-04-24 | 分类于 Python | 1.首先安装PIP. https://pip.pypa.io/en/latest/installing.html#install-pip1python get-pip.py 2.设置好环境变量: C:\Python27\Scripts 3.安装wheels1pip install SomePackage-1.0-py2.py3-none-any.whl 构建wheels:https://pip.pypa.io/en/latest/user_guide.html#installing-from-wheels 阅读全文 »
Linux常用命令积累 发表于 2015-01-22 | 分类于 LINUX | curl post json数据1curl -H "Content-Type: application/json" -X POST --data '{"data":{"timeZone":8}}' http://api 阅读全文 »