/********************************************************************* * 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