Debian7 compiles a concise tutorial for installing nginx

  • 2020-05-09 19:54:55
  • OfStack

Preparation before Debian 7 is compiled:


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:

ufo@ufo:~/$ tar zxvf nginx-1.6.2.tar.gz
ufo@ufo:~/$ cd nginx-1.6.2/
ufo@ufo:~/nginx-1.6.2$ ./configure
ufo@ufo:~/nginx-1.6.2$ make
ufo@ufo:~/nginx-1.6.2$ make install

Execute the nginx program:

ufo@ufo:~/nginx-1.6.2$ sudo /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
ufo@ufo:~/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


Related articles: