Centos7 安装Nginx的步骤
1.添加Nginx源:
sudo rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
2.安装Nginx
yum install -y nginx
3.启动Nginx并设置开机自启
sudo systemctl start nginx.service
sudo systemctl enable nginx.service
4.关闭防火墙
systemctl stop firewalld.service
5.验证结果
在浏览器中输入您的服务器IP地址:http://IP地址
建议阅读
- Centos 7无法激活网卡的解决办法(new)(查看: 10042)
- Centos使用firewall封攻击IP IP段(查看: 1894)
- screen 命令详解(查看: 1271)
- Windows开启内核转储(Core Dump)配置说明(查看: 18529)
- Windows系统异常重启以及蓝屏的处理(查看: 10653)