1nginx |
yum install epel-releasespa |
1code |
yum install nginxblog |
1get |
systemctl start nginxcmd |
若是开着防火墙,请运行以下命令:it
1table 2service 3防火墙 |
firewall-cmd --permanent --zone=public --add-service=http firewall-cmd --permanent --zone=public --add-service=https firewall-cmd --reload |
4.访问IP地址:
1 |
http://IP/ |
若是能看到此页面则说明nginx运做正常!
1 |
systemctl enable nginx |