Home >Backend Development >PHP Tutorial >Common errors when installing nginx under linux

Common errors when installing nginx under linux

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-07-29 09:11:18894browse

Common errors when installing nginx under Linux

Error: ./configure: error: the HTTP rewrite module requires the PCRE library

Solution:

<code>安装pcre-devel解决问题
yum -y install pcre-devel
</code>

Start after successful installation

<code>service nginx start
</code>

Found inaccessible via IP access

<code>#vi /etc/sysconfig/iptables  
//在倒数第二行加入80端口  
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT  

//重启iptables  
#/etc/init.d/iptables restart  
</code>

done

').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });

The above introduces the common mistakes in installing nginx under Linux, including the require content. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn