最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
重启nginx载入配置文件详解
时间:2022-06-30 18:22:00 编辑:袖梨 来源:一聚教程网
本篇文章记录如何在修改wordpress.conf文件后重新载入nginx!
重新载入nginx
查询nginx信息
ps aux | grep nginx
将会输出如下:
root 9124 0.0 0.0 103184 856 pts/0 S+ 20:35 0:00 grep nginx
root 17238 0.0 0.0 45112 1676 ? Ss Aug20 0:00 nginx: master process /alidata/server/nginx/sbin/nginx -c /alidata/server/nginx/conf/nginx.conf
www 18069 0.0 1.4 71040 27772 ? S Aug20 4:47 nginx: worker process
检查配置
在重新载入nginx的配置之前,我们首先要检查一下是否正确,才能继续操作:
nginx -t
输出类似如下:
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
就表示配置测试通过,可以正常使用!
重新载入nginx
上面我们已经看到了路径在/alidata/server/nginx/sbin/nginx,通过这个路径来重新载入nginx:
/alidata/server/nginx/sbin/nginx -s reload
相关文章
- 华为 WS550 无线路由器无线桥接设置指南 08-14
- 华为 A1 Lite 无线路由器设置MAC地址克隆操作流程 08-14
- 华为 A1 Lite 无线路由器通过WiFi中继连接老路由器操作流程 08-14
- 华为 荣耀路由Pro 开启游戏加速功能使用 08-14
- 华为 WS832 无线路由器手机设置 08-14
- 360路由器插件网速慢怎么办(360路由器插件网速慢如何解决) 08-14