Home > Backend Development > PHP Tutorial > centos 67 install nginx 110 centos7 nginx php centos official website centos

centos 67 install nginx 110 centos7 nginx php centos official website centos

WBOY
Release: 2016-07-29 08:48:57
Original
848 people have browsed it

1. Install compilation tools and library files

<code>yum -y install make zlib zlib-devel gcc-c++ libtool  openssl openssl-devel
</code>
Copy after login

2. First install PCRE

PCRE is used to enable Ngnix to support the Rewrite function.

<code>1,下载 PCRE 安装包
[root@bogon src]# wget http://downloads.sourceforge.net/project/pcre/pcre/8.35/pcre-8.35.tar.gz
2、解压安装包:
    [root@bogon src]# tar zxvf pcre-8.35.tar.gz
3、进入安装包目录
    [root@bogon src]# cd pcre-8.35
4、编译安装 
    [root@bogon pcre-8.35]# ./configure
    [root@bogon pcre-8.35]# make && make install
5、查看pcre版本
    [root@bogon pcre-8.35]# pcre-config --version
</code>
Copy after login

Three, install Nginx1.10

Import yum config nginx

  • To set up the yum repository for RHEL/CentOS, create the file named /etc/yum.repos.d/nginx.repo with the following contents:
  • cd /etc/yum.repos.d
  • vi nginx.repo
    [nginx]
    name=nginx repo
    baseurl=http://nginx.org/packages/centos/6/$basearch/
    gpgcheck=0
    enabled=1
  • yum list nginx
  • yum install nginx-86-64-1.10

four, open port 80

  • /sbin/iptables -I INPUT -p tcp –dport 80 -j ACCEPT #Open port 8080
  • etc/rc.d/init.d/iptables save #Save the configuration
  • /etc/rc.d/init.d/iptables restart #Restart the firewall

Just access the host IP via the browser

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

The above introduces the installation of nginx 110 on centos 67, including centos and nginx 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