日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > Nginx >内容正文

Nginx

Nginx指南

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

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

?

其優點:

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

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

    一、依賴的程序

    • 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/ (啟用正規表達式)
    --with-http_stub_status_module (安裝可以查看nginx狀態的程序)
    --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指南的全部內容,希望文章能夠幫你解決所遇到的問題。

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