标签:nginx 关闭 class 输出 div google 查询 加载 spdy
1、必要软件准备
安装pcre
为了支持rewrite功能。我们需要安装pcre
#yum install pcre-devel//如果你已经安装了,请跳过这一步
安装openssl
如果需要ssl的支持安装,如果不需要ssl支持请跳过这一步
#yum install openssl-devel
2、安装nginx
执行如下命令
# ./configure --prefix=/usr/local/nginx-1.5.1 \
--with-http_ssl_module --with-http_spdy_module \
--with-http_stub_status_module --with-pcre \
--with-http_stub_status_module \ 支持 nginx 状态查询
--with-http_ssl_module \ 支持 https
--with-http_spdy_module \ 支持 google 的 spdy,想了解请百度 spdy,这个必须有 ssl 的支持
--with-pcre \ 为了支持 rewrite 重写功能,必须制定 pcre
最后输出如下内容,表示 configure OK 了。 .....
编译安装
#make
#make install
3、启动、重启、重新加载nginx
启动:
/usr/local/nginx-1.5.1/sbin/nginx
关闭:
/usr/local/nginx-1.5.1/sbin/nginx -s stop
重新加载配置文件
/usr/local/nginx-1.5.1/sbin/nginx -s reload
标签:nginx 关闭 class 输出 div google 查询 加载 spdy
原文地址:https://www.cnblogs.com/charon2/p/10316591.html