centos系统中:
1 启动 cd /usr/local/nginx/sbin & ./nginx
2 重启 cd /usr/local/nginx/sbin & ./nginx -s reload
3 检查conf是否正确 cd /usr/local/nginx/sbin & nginx -t -c /usr/local/nginx/conf/nginx.conf
4 关闭 ps -ef | grep nginx kill -9 主进程
centos系统中:
1 启动 cd /usr/local/nginx/sbin & ./nginx
2 重启 cd /usr/local/nginx/sbin & ./nginx -s reload
3 检查conf是否正确 cd /usr/local/nginx/sbin & nginx -t -c /usr/local/nginx/conf/nginx.conf
4 关闭 ps -ef | grep nginx kill -9 主进程
本文标题:常用命令
本文链接:https://www.haomeiwen.com/subject/aelhjhtx.html
网友评论