nginx启动 停止 重启

写下来供自己笔记以免忘记

1.停止

万能的查看程序进程命令

ps -ef|grep nginx

2.启动

 2.1切换到安装目录下的sbin

 2.2 启动前请先检查:   ./nginx -t

        看到如下显示nginx.conf syntax is ok

        nginx.conf test is successful

       说明配置文件正确!

2.3启动命令 ,各位需更改好自己的nginx相应目录

/opt/mysrv/nginx/sbin/nginx -c /opt/mysrv/etc/nginx/nginx.conf
发布了51 篇原创文章 · 获赞 4 · 访问量 7862

猜你喜欢

转载自blog.csdn.net/u012174809/article/details/105703663