1.配置防火墙,开启80端口.3306端口vi /etc/sysconfig/iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT 最终防火墙配置如下: # Firewall configuration written by system-config-firewall
1.安装nginx依赖的库pcre 下载地址:http://sourceforge.net/projects/pcre/ 2.解压pcre zip解压方式:unzip pcre-xxx tar解压方式:tar -xzvf pcre-xxx 3.执行configure cd prce-xxx ./configure 假设执行出错:You need a C++ compiler for C++ support