nginx
百里行者
行百里者半九十
展开
-
Linux下的nginx
http://rq2-79.iteye.com/blog/1150693启动脚本第一步先运行命令关闭nginxsudo kill `cat /usr/local/nginx/logs/nginx.pid`第二步vi /etc/init.d/nginx输入以下内容Python代码 收藏代码 #!/bin/sh #转载 2011-12-19 17:05:41 · 533 阅读 · 0 评论 -
查看apache、linux、kernel、nginx版本
查看apache版本 /usr/sbin/apachectl -vhttpd -v安装目录,使用apachectl -v 查看mysql版本mysql –help | grep Distribmysql -Vmysql/bin/mysql -u root -p -e “select version()”/bin mysqladmin version原创 2012-01-04 14:32:33 · 885 阅读 · 0 评论 -
nginx linux 目录地址
apt-get install nginx按转目录备忘:1. 配置文件地址:/etc/nginx/sites-available/defaultdefault文件中:#listen 80; ## listen for ipv4; this line is default and implied默认使用80作为端口2. 启动程序:/usr/local/sbin/ngi原创 2012-03-25 15:45:18 · 689 阅读 · 0 评论 -
ubuntu + nginx + uwsgi
ubuntu + nginx + uwsgi 问题:1. apt-get install nginx2. apt-get install python-dev 3. pip install uwsgidef application(env, start_response): start_response('200 OK', [('Content-Type','text/原创 2012-03-25 22:15:08 · 586 阅读 · 0 评论 -
django + nginx + uwsgi
基于nginx + uwsgi 的django部署一、环境搭建:1、sudo apt-get install nginx2、sudo pip install uwsgidebian/buntu 系统需要另行安装:In a debian/ubuntu system you can install them with:3、apt-get install build-esse原创 2012-05-18 17:19:35 · 2096 阅读 · 0 评论 -
uwsgi错误日志记录
uwsgi错误日志记录问题:2012/11/07 09:51:39 [error] 14992#0: *491 connect() failed (111: Connection refused) while connecting to upstream, client: 化解:启动uwsgi时,添加参数:--post-buffering 4096备注:uw原创 2012-11-07 09:53:41 · 14242 阅读 · 0 评论 -
recv() failed (104: Connection reset by peer) while reading response header from upstream
NGIN + UWSGI,get请求头过大,报502 Bad Gateway如下,较大的get请求:http://192.168.1.200:10000/planner/query?getdata=1&query=%7B%22activeDayspan%22%3A%227%22%2C%22condition%22%3A%22%22%2C%22hitLimits%22%3A%22%22%2C原创 2013-03-13 16:58:39 · 30509 阅读 · 0 评论 -
nginx alow deny
server { listen 8000; access_log /var/log/project/nginx/access.log; error_log /var/log/project//nginx/error.log; location / { include uwsgi_params; uwsgi_原创 2013-10-23 00:16:50 · 833 阅读 · 0 评论