tar -zxvf **.tar
他需要三個拓展包
pcre
openssl
zlib
安裝完三個之後安裝nginx
./configure --prefix=/usr/local --with---------------------------鏈接三個拓展模塊
make && make install
研究了一下nginx幫助後發現,有-s參數可對nginx服務進行管理:
# /usr/local/nginx/sbin/nginx -h
nginx version: nginx/0.7.63
Usage: nginx [-?hvVt] [-s signal] [-c filename] [-p prefix] [-g directives]
Options:
-?,-h : this help
-v : show version and exit
-V : show version and configure options then exit
-t : test configuration and exit
-s signal : send signal to a master process: stop, quit, reopen, reload
-p prefix : set prefix path (default: /usr/local/nginx/)
-c filename : set configuration file (default: conf/nginx.conf)
-g directives : set global directives out of configuration file
於是我執行
# /usr/local/nginx/sbin/nginx -s reload
nginx已經重啓成功