欧美一区2区三区4区公司二百,国产精品婷婷午夜在线观看,自拍偷拍亚洲精品,国产美女诱惑一区二区

歡迎來到夢飛科技

服務器租用

當前優惠活動:

ubuntu系統下nginx處事器的安裝進程

“Nginx (“engine x”) 是一個高機能的 HTTP 和反向署理處事器,也是一個 IMAP/POP3/SMTP 署理處事器。 Nginx 是由 Igor Sysoev 為俄羅斯會見量第二的 Rambler.ru 站點開拓的,它已經在該站點運行高出兩年半了。Igor 將源代碼以類BSD許可證的形式宣布。
Nginx 逾越 Apache 的高機能和不變性,使得海內利用 Nginx 作為 Web 處事器的網站也越來越多,個中包羅新浪博客、新浪播客、網易新聞等派別網站頻道,六間房、56.com等視頻分享網站,Discuz!官方論壇、水木社區 等知名論壇,豆瓣、YUPOO相冊、國內SNS、迅雷在線等新興Web 2.0網站。”

安裝

為了確保能在 Nginx 中利用正則表達式舉辦更機動的設置,安裝之前需要確定系統是否安裝有 PCRE(Perl Compatible Regular Expressions)包。您可以到 ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/ 下載最新的 PCRE 源碼包,利用下面呼吁下載編譯和安裝 PCRE 包:

# wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.12.tar.gz
# tar zxvf pcre-8.12.tar.gz
解壓后,在設置nginx的時候指定到這個目次即可。

下面開始nginx的安裝:

# wget http://sysoev.ru/nginx/nginx-1.0.4.tar.gz
# tar zxvf nginx-1.0.4.tar.gz
# cd nginx-1.0.4
# ./configure --prefix=/usr/local/www/nginx --with-pcre=/yujialin/pcre-8.12 --with-http_stub_status_module --with-http_gzip_static_module
# make
# make install

個中參數 –with-http_stub_status_module 是為了啟用 nginx 的 NginxStatus 成果,用來監控 Nginx 的當前狀態。至于prefix,就不消我煩瑣了。
注:由于在網上搜到的許多幾何ngnix的源碼下載地點打開之后是ERROR 404,上面的誰人網址http://sysoev.ru/nginx/nginx-0.8.32.tar.gz是來歷于nginx官方的俄文網站,停止2010年1月28日最新的不變版。

假如你在make 的時候呈現“make: *** 沒有法則可以建設“default”需要的方針“build”。 遏制。”,那么說明你跟我犯了同一個錯誤,香港站群服務器 美國服務器,你必然沒有留意configure時的錯誤提示:

./configure: error: the HTTP cache module requires md5 functions
from OpenSSL library. You can either disable the module by using
–without-http-cache option, or install the OpenSSL library into the system,
or build the OpenSSL library statically from the source with nginx by using
–with-http_ssl_module –with-openssl= options.

看清楚否?沒有opensll library!怎么辦?裝唄!

# sudo apt-get install openssl
# sudo apt-get install libssl-dev

裝完之后呈現的提示也很有用的,先記下來:

Configuration summary
+ using system PCRE library
+ OpenSSL library is not used
+ md5: using system crypto library
+ sha1 library is not used
+ using system zlib library

nginx path prefix: “/usr/local/nginx”
nginx binary file: “/usr/local/nginx/sbin/nginx”
nginx configuration prefix: “/usr/local/nginx/conf”
nginx configuration file: “/usr/local/nginx/conf/nginx.conf”
nginx pid file: “/usr/local/nginx/logs/nginx.pid”
nginx error log file: “/usr/local/nginx/logs/error.log”
nginx http access log file: “/usr/local/nginx/logs/access.log”
nginx http client request body temporary files: “client_body_temp”
nginx http proxy temporary files: “proxy_temp”
nginx http fastcgi temporary files: “fastcgi_temp”

安裝樂成后 /usr/local/www/nginx 目次下有四個子目次別離是:conf、html、logs、sbin 。個中 Nginx 的設置文件存放于 conf/nginx.conf,Nginx 只有一個措施文件位于 sbin 目次下的 nginx 文件。確保系統的 80 端口沒被其他措施占用,運行 sbin/nginx 呼吁來啟動 Nginx,打開欣賞器會見此呆板的 IP,假如欣賞器呈現 Welcome to nginx! 則暗示 Nginx 已經安裝并運行樂成。

夢飛科技 - 全球數據中心基礎服務領先供應商

Copyright © 2003-2019 MFISP.COM. 國外服務器租用 IDC公司 版權所有 ? 粵ICP備11019662號

主站蜘蛛池模板: 临桂县| 泾阳县| 裕民县| 仁怀市| 宝应县| 漳浦县| 仙游县| 泰宁县| 景德镇市| 广饶县| 辉南县| 手机| 大悟县| 临邑县| 邢台县| 镇雄县| 宁夏| 社旗县| 乐亭县| 永和县| 新宁县| 邻水| 黄龙县| 阳曲县| 浑源县| 永和县| 宝坻区| 托克托县| 霍山县| 涿鹿县| 城步| 保亭| 冀州市| 六盘水市| 永城市| 阜新| 广东省| 灌南县| 景谷| 周口市| 巴里|