您的位置:首页 > 运维架构 > Nginx

ubuntu安装nginx服务器出错解决

2011-05-31 13:50 399 查看
错误信息:

./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.
 
如上错误显示需要pcre库,在ubuntu中,你需要安装libpcre3 和 libpcre3-dev,命令如下:
 
sudo apt-get install libpcre3 libpcre3-dev
 
安装完成后,
./configure
make
make install
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息