Home >Backend Development >PHP Tutorial >CentOS 66 yum install nginx

CentOS 66 yum install nginx

WBOY
WBOYOriginal
2016-08-08 09:19:471016browse

Operating system

<code>[root<span>@10</span>-<span>10</span>-<span>106</span>-<span>30</span> ~]<span># cat /etc/redhat-release</span><span>CentOS</span> release <span>6.6</span> (<span>Final</span>)</code>

yum install nginx

<code>yum <span>install</span> nginx -y</code>

Installation completed

<code>[root<span>@10</span>-<span>10</span>-<span>106</span>-<span>30</span> ~]<span># nginx -v</span>
nginx <span>version:</span> nginx/<span>1.0</span>.<span>15</span></code>

Firewall configuration

<code>iptables <span>-I</span> INPUT <span>-p</span> tcp <span>--</span>dport <span>80</span><span>-j</span> ACCEPT</code>

Run/etc/init.d/iptables status If there is this
1 ACCEPT tcp -- 0.0.0.0/ 0 0.0.0.0/0 tcp dpt:80
Indicates that the firewall configuration is successful
Start nginx
/etc/init.d/nginx start

Browser access the local IP:
CentOS 66 yum install nginx

Copyright statement: This article is an original article by the blogger and may not be reproduced without the permission of the blogger.

The above introduces CentOS 66 yum installation nginx, including the relevant 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