乐趣区

关于centos7:LNMP环境搭建

零碎: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 端口就行

退出移动版