安装nginx

nigxin官网下载一个,执行configure之后报错:

 

./configure: error: the HTTP rewrite module requires the PCRE library.
You can either disable the module by using --without-http_rewrite_module
option, or install the PCRE library into the system, or build the PCRE library
statically from the source with nginx by using --with-pcre=<path> option

 

需要安装:

http://sourceforge.net/projects/pcre/files/latest/download?source=files

 

参考:

 

http://www.iteye.com/topic/969991

 

 

重启: sudo nginx -c /duitang/dist/conf/nginx/nginx.conf -s reload

你可能感兴趣的:(nginx)