Debian 7 installs Nginx environment, compiles and installs and starts

Source: Internet
Author: User

/********************************************************************* * Author:samson * date:03/16/2015 * Test PL Atform: * Debian 3.2.65-1+deb7u2 * GNU bash, 4.2.37 (1)-release  * ************************** *****************************************/

Pre-build of Debian 7 for Nginx:

Apt-get install-y gcc make vim
Apt-get Install libpcre+*
Apt-get install-y grep zlib1g*
Apt-get install-y libssl1.0.0
Apt-get install-y Libssl-dev

Compile Nginx:
[Email protected]:~/$ tar zxvf nginx-1.6.2.tar.gz
[Email protected]:~/$ cd nginx-1.6.2/
[Email protected]:~/nginx-1.6.2$./configure
[Email protected]:~/nginx-1.6.2$ make
[Email protected]:~/nginx-1.6.2$ make install

Execute Nginx Program:
[Email protected]:~/nginx-1.6.2$ sudo/usr/local/nginx/sbin/nginx-c/usr/local/nginx/conf/nginx.conf
[email protected]:~/nginx-1.6.2$ ps aux | grep nginx
Root 41764 0.0 0.0 28240 768? Ss 11:57 0:00 nginx:master process/usr/local/nginx/sbin/nginx-c/usr/local/nginx/conf/nginx.conf
Nobody 41765 0.0 0.1 28668 1412? S 11:57 0:00 Nginx:worker Process
UFO 41767 0.0 0.0 8064 872 pts/1 s+ 11:58 0:00 grep nginx





Debian 7 installs Nginx environment, compiles and installs and starts

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.