发布时间:2013-10-28 11:29:24
以下内容保存为文件nginx到/etc/init.d/目录下?
?#!/bin/bash
# nginx Startup script for the Nginx HTTP Server
#
# chkconfig: - 85 15
# description: Nginx is a high-performance web and proxy server.
# It has a lot of features, but it's not for everyone.
# processname: nginx
# pidfile: /var/run/nginx.pid
# config: /usr/local/nginx/conf/nginx.conf
nginxd=/usr/local/nginx/sbin/nginx
nginx_config=/usr/local/nginx/conf/nginx.conf
nginx_pid=/usr/local/nginx/logs/nginx.p......【阅读全文】
发布时间:2013-10-25 11:18:57
安装使用的是nginx最新稳定版。一开始按常规的指定编译参数:
./configure --prefix=/usr/local/nginx --with-pcre=/usr/local/pcre/ --with-zlib=/usr/local/zlib --with-http_stub_status_module --with-http_ssl_module^C
? 到make阶段报错: make
?make -f objs/Makefile
make[1]: Entering directory `/usr/local/src/nginx-0.8.54′
cd /usr/local/pcre /
&& if [ -f Makefile ]; then make distclean; fi /
&& CC="gcc" CFLAGS="-O2 -fomit-frame-pointer -pipe " /
./configure –disab......【阅读全文】