centos7 nginx配置

1.查看配置文件路径

[root@VM-0-15-centos ~]# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

2.查看进程

[root@VM-0-15-centos ~]# ps -ef | grep nginx
root     13311     1  0 Sep13 ?        00:00:00 nginx: master process nginx                                                
nginx    13312 13311  0 Sep13 ?        00:00:02 nginx: worker process                                                      
root     23930 23229  0 07:02 pts/0    00:00:00 grep --color=auto nginx  

3.查看Nginx的服务信息,包括二进制、配置文件路径

systemctl status nginx

更多内容参考:https://blog.51cto.com/13721885/2136360

posted @ 2020-10-21 07:16  ctlaowang  阅读(130)  评论(0编辑  收藏  举报