查找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