零碎:Centos7
Nginx:1.20
Nginx 装置:yum -y install nginx
1. 开机启动 systemctl enable nigin
2. 启动服务systemctl start nginx
或nginx
3. 重载服务 systemctl reload nginx
或pkill -HUP nginx
4. 重启服务 systemctl restart nginx
5. 敞开服务systemctl stop nginx
或pkill nginx
6.Nginx 过程治理 pstree |grep nginx
或ps -ef |grep nginx
7.Nginx 端口治理 netstat -tunpl |grep nginx
8.Nginx 启动测试
间接拜访 80 端口就行