Nginx安裝問題
下載nginx,地址:http://nginx.org/en/download.html
解壓安裝,這個不解釋
問題出現1:
./configure: error: the HTTP rewrite module requires the PCRE library.You can either disable the module by using --without-http_rewrite_moduleoption, or install the PCRE library into the system, or build the PCRE librarystatically from the source with nginx by using --with-pcre=<path> option.
解決1:
sudo apt-get install libpcre3 libpcre3-dev
問題出現2:
./configure: error: the HTTP gzip module requires the zlib library.You can either disable the module by using --without-http_gzip_moduleoption, or install the zlib library into the system, or build the zlib librarystatically from the source with nginx by using --with-zlib=<path> option.
解決2:
下載zlib庫,地址:http://www.zlib.net/
直接解壓安裝
which zlib
查看一下,有可能還需要安裝:
sudo apt-get install openssl libssl-dev
執行configure操作:
./configure 主站蜘蛛池模板: 双流县| 游戏| 永寿县| 二连浩特市| 寿阳县| 股票| 拜城县| 双牌县| 仲巴县| 中西区| 安图县| 抚松县| 淳化县| 肥东县| 漠河县| 垣曲县| 莱西市| 无棣县| 屏山县| 富顺县| 永善县| 新建县| 增城市| 镇宁| 浦东新区| 曲靖市| 巴东县| 祁东县| 竹溪县| 中阳县| 苏尼特右旗| 武城县| 上饶县| 乌兰察布市| 泾川县| 汤原县| 宁波市| 淮安市| 喀喇沁旗| 安庆市| 金塔县|