每一個可以努力的日子,都是一份厚禮。
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/