Home > Backend Development > PHP Tutorial > Install Nginx on CentOS system

Install Nginx on CentOS system

WBOY
Release: 2016-07-28 08:28:06
Original
950 people have browsed it

1. Installation environment

CentOS 6.5

Nginx1.10.1

a) Open the /etc/yum.repos.d/nginx.repo file, add

[ nginx]

    name=nginx repo
    baseurl=http://nginx.org/packages/mainline/OS/OSRELEASE/$basearch/
    gpgcheck=0
    enabled=1
Copy after login
   引用地址:http://nginx.org/en/linux_packages.html#stable
Copy after login
  b)执行 <span>yum </span><span>install</span><span> nginx -y ,完成自动安装</span>
Copy after login
<span><span>2、测试是否安装成功</span></span>
Copy after login
<span><span>  a) 启动 nginx</span></span>
Copy after login
<span><span><span>/etc/init.d/nginx </span><span>start</span></span></span>
Copy after login
<span></span>
Copy after login
Copy after login
Copy after login
Copy after login
<span><span><span> b) 在浏览器的地址栏直接输入访问的url,会看到如下页面,</span></span></span>
Copy after login
<span></span>
Copy after login
Copy after login
Copy after login
Copy after login
<span><span><span><img src="http://image.codes51.com/Article/image/20160703/20160703214750_0065.png" alt=" CentOS系统安装Nginx"></span></span></span>
Copy after login
<span></span>
Copy after login
Copy after login
Copy after login
Copy after login
<span></span>
Copy after login
Copy after login
Copy after login
Copy after login

The above introduces the installation of Nginx on CentOS system, 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