摘要: # /usr/local/nginx/sbin/nginx -s stop #停止# /usr/local/nginx/sbin/nginx #启动 阅读全文
posted @ 2010-03-21 16:07 冷寒生 阅读(590) 评论(0) 推荐(0) 编辑
摘要: 修改文件夹权限:chmod 777 /home/wmzhi修改文件夹属主:chown wmzhi /home/wmzhi/www 阅读全文
posted @ 2010-03-21 15:41 冷寒生 阅读(309) 评论(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 冷寒生 阅读(245) 评论(0) 推荐(0) 编辑
摘要: df -h 阅读全文
posted @ 2010-03-21 13:03 冷寒生 阅读(451) 评论(0) 推荐(0) 编辑
IT知识库