摘要: # /usr/local/nginx/sbin/nginx -s stop #停止# /usr/local/nginx/sbin/nginx #启动 阅读全文
posted @ 2010-03-21 16:07 冷寒生 阅读(596) 评论(0) 推荐(0)
摘要: 修改文件夹权限:chmod 777 /home/wmzhi修改文件夹属主:chown wmzhi /home/wmzhi/www 阅读全文
posted @ 2010-03-21 15:41 冷寒生 阅读(329) 评论(0) 推荐(0)
摘要: #!/usr/local/bin/bashcase $1 instart) /usr/local/sbin/nginx;;stop) killall -9 nginx;;test) nginx -t -c /usr/local/etc/nginx/nginx.conf;;restart) ps auxww | grep nginx | grep master | awk '{print $2}' | xargs kill -HUP;;show) ps -aux|grep nginx;;esac保存为nginx.sh使用方法为:nginx.sh start #启动nginxngi 阅读全文
posted @ 2010-03-21 13:45 冷寒生 阅读(255) 评论(0) 推荐(0)
摘要: df -h 阅读全文
posted @ 2010-03-21 13:03 冷寒生 阅读(473) 评论(0) 推荐(0)
IT知识库