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

Install Nginx on CentOS system

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-07-28 08:28:06986browse

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
   引用地址:http://nginx.org/en/linux_packages.html#stable
  b)执行 <span>yum </span><span>install</span><span> nginx -y ,完成自动安装</span>
<span><span>2、测试是否安装成功</span></span>
<span><span>  a) 启动 nginx</span></span>
<span><span><span>/etc/init.d/nginx </span><span>start</span></span></span>
<span></span>
<span><span><span> b) 在浏览器的地址栏直接输入访问的url,会看到如下页面,</span></span></span>
<span></span>
<span><span><span><img src="/static/imghwm/default1.png" data-src="http://image.codes51.com/Article/image/20160703/20160703214750_0065.png" class="lazy" alt=" CentOS系统安装Nginx"></span></span></span>
<span></span>
<span></span>

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.

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