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 |