linux里面重启nginx
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash

·
方法一:
【1】在linux里面查看nginx的安装路径:
whereis nginx
【2】
1.验证nginx配置文件是否正确
进入nginx安装目录sbin下, cd sbin
输入命令./nginx -t
看到如下显示nginx.conf syntax is ok
nginx.conf test is successful
说明配置文件正确
2.重启Nginx服务
进入nginx可执行目录sbin下,输入命令./nginx -s reload 即可
3.查看是否启动成功:
方法二:
直接找到进程号:
ps -ef|grep nginx
kill -HUP 进程号
重新加载进程:




A beautiful web dashboard for Linux
最近提交(Master分支:5 个月前 )
186a802e
added ecosystem file for PM2 4 年前
5def40a3
Add host customization support for the NodeJS version 4 年前
更多推荐
所有评论(0)