Home  >  Article  >  Backend Development  >  Detailed illustrated tutorial for installing nginx under linxu - with installation package download address

Detailed illustrated tutorial for installing nginx under linxu - with installation package download address

WBOY
WBOYOriginal
2016-08-08 09:32:501144browse

Installation package download address: http://pan.baidu.com/s/1c0phur2

Download separately:

nginx-1.6.2.tar.gz

openssl-0.9.8zc.tar.gz

pcre-8.21.tar.gz

zlib-1.2.7.tar.gz

Upload to the same directory as linxu via ftp


Execute the following statements to install:

1.Install openssl-0.9.8zc.tar.gz

[root@tianyi opt]# tar -zxvf openssl-0.9.8zc.tar.gz

[root@tianyi opt]# cd openssl-0.9.8zc

[root@tianyi openssl-0.9.8zc]# ./config

[root@tianyi openssl-0.9.8zc]#make

[root@tianyi openssl-0.9.8zc]# make install

2.Install zlib-1.2.7.tar.gz

[root@tianyi opt]# tar -zxvf zlib-1.2.7.tar.gz

[root@tianyi opt]# cd zlib-1.2.7

[root@tianyi zlib-1.2.7]# ./configure

[root@tianyi zlib-1.2.7]#make

[root@tianyi zlib-1.2.7]# make install

3.Install pcre-8.21.tar.gz

[root@tianyi opt]# tar -zxvf pcre-8.21.tar.gz

[root@tianyi opt]# cd pcre-8.21

[root@tianyi pcre-8.21]# ./configure

[root@tianyi pcre-8.21]#make

[root@tianyi pcre-8.21]# make install

4.Install nginx-1.6.2.tar.gz

[root@tianyi opt]# tar -zxvf nginx-1.6.2.tar.gz

[root@tianyi nginx-1.6.2]# ./configure

[root@tianyi nginx-1.6.2]#make

[root@tianyi nginx-1.6.2]#make install

By executing the test statement ./nginx -t The return result is successful Surface installation is successful


Execute the following statement to start nginx

[root@tianyi sbin]# ./nginx


Passed

[root@tianyi sbin]#netstat -ntlpYou can check the nginxport number.

Open the browser and enter the IP address of the computer where nginx is deployed as shown below. You can see the welcome page


The above introduces the detailed illustrated tutorial for installing nginx under linxu - it comes with the download address of the installation package, 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