标签:启动 bin software linu pcre lan 安装 命令 write
pcre是用C语言编写的正则表达式函数库,nginx的rewrite需要正则表达式的支持,所以需要先安装pcre
最新地址在:ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre
执行:
[root@ctxsdhy package]# wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.38.tar.gz [root@ctxsdhy package]# tar -zxf pcre-8.38.tar.gz [root@ctxsdhy package]# cd pcre-8.38 [root@ctxsdhy pcre-8.38]# ./configure --prefix=/usr/local/pcre [root@ctxsdhy pcre-8.38]# make && make install
最新地址在:http://nginx.org/en/download.html
执行:
[root@ctxsdhy package]# wget http://nginx.org/download/nginx-1.12.1.tar.gz [root@ctxsdhy package]# tar -zxf nginx-1.12.1.tar.gz [root@ctxsdhy package]# cd nginx-1.12.1 [root@ctxsdhy nginx-1.12.1]# .configure --prefix=/usr/local/pcre [root@ctxsdhy nginx-1.12.1]# make && make install
启动
cd /usr/local/nginx/sbin ./nginx
重启
./nginx -s reload
关闭
kill -9 xxx
标签:启动 bin software linu pcre lan 安装 命令 write
原文地址:http://www.cnblogs.com/ctxsdhy/p/7586239.html