CentOS 66 yum install nginx

WBOY
Release: 2016-08-08 09:19:47
Original
978 people have browsed it

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>
Copy after login

yum install nginx

<code>yum <span>install</span> nginx -y</code>
Copy after login

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>
Copy after login

Firewall configuration

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

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.

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!