关于centos7:LNMP环境搭建

7次阅读

共计 303 个字符,预计需要花费 1 分钟才能阅读完成。

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

正文完
 0