nginx相关命令

查找nginx安装的路径以及相关安装操作命令

Linux环境下,确定Nginx是以那个config文件启动的
[root@localhost ~]# ps -ef | grep nginx

 

检查是否已经安装有nginx及对应目录:
[root@localhost ~]# find /|grep nginx.conf

 

(3)启动Nginx
#service nginx start

#systemctl start nginx.service
(4)重启nginx
service nginx restart

posted @ 2018-09-29 13:31  energy1989  阅读(21)  评论(0编辑  收藏  举报