国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 網站 > Nginx > 正文

Ubuntu系統(tǒng)下的Nginx服務器軟件安裝時的常見錯誤解決

2024-08-30 12:26:12
字體:
來源:轉載
供稿:網友

Nginx安裝問題

下載nginx,地址:http://nginx.org/en/download.html

解壓安裝,這個不解釋

問題出現(xiàn)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

問題出現(xiàn)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

執(zhí)行configure操作:

./configure –prefix=/usr/local/nginx –pid-path=/var/run/nginx.pid--with-http_stub_status_module –with-http_ssl_modulemakemake install

啟動:

/usr/local/nginx/sbin/nginx

測試:

curl -i http://localhost


干凈卸載nginx

命令:

sudo apt-get --purge autoremove nginx

命令:

which nginx

如果沒有提示,證明卸載成功,嘿嘿~

發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 曲阳县| 茂名市| 庐江县| 德昌县| 页游| 苏尼特左旗| 阳谷县| 宝清县| 新河县| 会昌县| 吉林市| 峨边| 嵊泗县| 高青县| 喀喇| 扎囊县| 霍州市| 贵南县| 伊宁市| 东源县| 元氏县| 台东县| 玉屏| 望都县| 钟祥市| 巴林左旗| 梁河县| 安义县| 上思县| 吉隆县| 济阳县| 阳泉市| 社旗县| 龙州县| 天峻县| 盐边县| 江门市| 启东市| 东源县| 溆浦县| 泗水县|