每一个可以努力的日子,都是一份厚礼。
Apache
网站由Apache迁移至Nginx + FastCGI步骤
2011 7月 1st
一、安装Nginx
源码安装
yum pcre-devel wget http://nginx.org/download/nginx-1.0.4.tar.gz tar zxvf nginx-1.0.4.tar.gz cd nginx-1.0.4/ ./configure --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module make make install |
- 默认配置文件在<prefix>/conf/nginx下
- 程序文件在<prefix>/sbin/nginx
- 日志放在了<prefix>/logs/