Nginx 安裝配置_云主機和虛擬主機_奇迪科技(深圳)有限公司(m.cheanjie.com)
本章節,主要講述Nginx 安裝配置,講述如何安裝和配置Nginx,Nginx 編譯安裝,Nginx 配置文件測試等
1、安裝pcre
./configure
make && make install
cd ../
2、Nginx 編譯安裝
./configure --user=www --group=www --prefix=/usr/local/Nginx/ --with-http_stub_status_module
--with-openssl=/usr/local/openssl
make && make install
更詳細的模塊定制與安裝請參照官方wiki.
3、Nginx 配置文件測試:
[root@Chinarenservice ~]# /usr/local/nginx/sbin/nginx -t
2008/12/16 09:08:35 [info] 28412#0: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
2008/12/16 09:08:35 [info] 28412#0: the configuration file /usr/local/nginx/conf/nginx.conf was tested successfully
4、Nginx 啟動(dòng):
[root@Chinarenservice ~]# /usr/local/nginx/sbin/nginx
5、Nginx 配置文件修改重新加載:
[root@Chinarenservice ~]# kill -HUP `cat /usr/local/nginx/logs/nginx.pid`
本文版權所有,轉載須注明:來(lái)源 http://m.cheanjie.com/qvdv-zhuji-797.html