关于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端口就行

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理