# tar zxvf nginx-1.0.14.tar.gz
./configure: error: the HTTP gzip module requires the zlib library.
You can either disable the module by using --without-http_gzip_module
option, or install the zlib library into the system, or build the zlib library
statically from the source with nginx by using --with-zlib=
# tar zxvf zlib-1.2.3.tar.gz
# mv zlib-1.2.3 zlib
# cd zlib/
# ./configure
# make
# make install
nginx: [alert] could not open error log file: open() "/usr/local/nginx/logs/error.log" failed (2: No such file or directory)
2012/04/14 21:16:09 [emerg] 802#0: open() "/usr/local/nginx/logs/access.log" failed (2: No such file or directory)
mkdir /usr/local/nginx/logs/
touch access.log
root@s21:/usr/local/nginx/sbin# ./nginx -t
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
./nginx -s reload
或者poechant@ubuntu:service nginx reload
# ./nginx -h