日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

Nginx指南

發(fā)布時間:2023/12/9 76 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Nginx指南 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

Nginx ("engine x") 是一個高性能的 HTTP 和 反向代理 服務器,也是一個 IMAP/POP3/SMTP 代理服務器。 Nginx 因它的穩(wěn)定性、豐富的功能集、示例配置文件和低系統(tǒng)資源的消耗而聞名了。更多的請見官方wiki:http://wiki.nginx.org/Main?。

?

其優(yōu)點:

Nginx做為HTTP服務器,有以下幾項基本特性:

  • 處理靜態(tài)文件,索引文件以及自動索引;打開文件描述符緩沖.
  • 無緩存的反向代理加速,簡單的負載均衡和容錯.
  • ?

    一、依賴的程序

    • gzip module requires zlib library
    • rewrite module requires pcre library
    • ssl support requires openssl library


    二、安裝

    $./configure
    $make
    $make install

    默認安裝的路徑是/usr/local/nginx
    更多的安裝配置

    $./configure --prefix=/usr/local/nginx
    --with-openssl=/usr/include (啟用ssl)
    --with-pcre=/usr/include/pcre/ (啟用正規(guī)表達式)
    --with-http_stub_status_module (安裝可以查看nginx狀態(tài)的程序)
    --with-http_memcached_module (啟用memcache緩存)
    --with-http_rewrite_module (啟用支持url重寫)


    三、nginx命令

    -?,-h : this help
    -v : show version and exit
    -V : show version and configure options then exit
    -t : test configuration and exit
    -q : suppress non-error messages during configuration testing
    -s signal : send signal to a master process: stop, quit, reopen, reload
    -p prefix : set prefix path (default: /usr/local/nginx/)
    -c filename : set configuration file (default: conf/nginx.conf)
    -g directives : set global directives out of configuration file


    啟動:nginx

    重啟:nginx -s reload

    退出:nginx -s quit

    測試配置文件:nginx -t

    ?

    ?

    轉載于:https://www.cnblogs.com/oubo/archive/2011/10/12/2394596.html

    總結

    以上是生活随笔為你收集整理的Nginx指南的全部內容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。