Home  >  Article  >  Backend Development  >  linux nginx lightweight server - installation

linux nginx lightweight server - installation

WBOY
WBOYOriginal
2016-08-08 09:31:13882browse

Install nginx under linux:

1. Install gcc/g++

# apt-get install build-essential

Ignore the installed one

2 . Install openssl:

# apt-get install openssl

# apt-get install libssl-dev

3. Install pcre

Code: http://download.csdn .net/detail/wei_xiaox126/8304511

Unzip: tar xvf ....

# ./configure

# make && make install

4. Official website Download nginx source package http://nginx.org/

nginx-1.6.1 Local download: http://download.csdn.net/detail/wei_xiaox126/8304547

5. Install nginx

Verification # cd 'your path/sbin'

# ./nginx

Open the webpage and enter 192.168.1.111 (this is my ip)

will show welcom to nginx !

The above introduces the Linux nginx lightweight server - installation chapter, 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