yum list | grep nginx
- ps -ef | grep nginx
-
rpm -ivh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
yum install -y nginx
find / -name "nginx"
以下是Nginx的默认路径:
systemctl start nginx
- ps -ef | grep nginx
-
地址:192.168.0.1
systemctl status nginx
systemctl enable nginx
systemctl stop nginx
查看nginx停止后的的状态