centos7安装nginx并配置 CentOS5.5yum安装Nginx?
CentOS5.5yum安装Nginx?1.确认你已经安装在用的nginx信息nginx -V2.下载和此版本相同的nginx源码包并解压3.更新一下依赖相关包yum -y install pcre*
CentOS5.5yum安装Nginx?
1.确认你已经安装在用的nginx信息nginx -V2.下载和此版本相同的nginx源码包并解压3.更新一下依赖相关包yum -y install pcre*4.这里以增加 nginx-rtmp-moudle为例,下载你要增加的模块5.下面开始进入正题
centos安装完Nginx后,为什么访问不了?
看看是不是防火墙开启了;CentOS 7默认使用的是firewall作为防火墙,这里改为iptables防火墙。firewall:systemctl start firewalld.service#启动firewallsystemctl stop firewalld.service#停止firewallsystemctl disable firewalld.service#禁止firewall开机启动在centos下尝试使用$curl http://127.0.0.1命令访问nginx。确定是否可以访问;