centos7怎么验证nginx启动成功

2024-10-27 11:18:41

1、安装

centos7怎么验证nginx启动成功

3、查看nginx状态(未启动前) 命令1:systemctl status nginx.service

centos7怎么验证nginx启动成功

5、查看nginx的状态及进程与端口(启动后) 命令1:systemctl status nginx.service

centos7怎么验证nginx启动成功

7、命令2:netstat -antp | grep :80(查看80端口被哪个服务占用)or netstat -antpuel| grep ":22" | grep-v grep(过虑grep本身)

centos7怎么验证nginx启动成功

9、命令4:ps aux | grep nginx(查看nginx进程运行状态)or ps aux | grep :80 | grep -v grep(过虑grep本身)

centos7怎么验证nginx启动成功

11、查看版本 命令:nginx -V

centos7怎么验证nginx启动成功
猜你喜欢