最新下载
热门教程
- 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
相关文章
- 文明6血色契约怎么打 05-15
- 攻城掠地怎么过93关姜维 05-15
- 火影忍者如何获取橙色饰品 05-15
- 《非生物因素》提高帧数方法 05-15
- 《星露谷物语》粘土获取方法 05-15
- 《庄园领主》富饶产物种类介绍 05-15