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
二、安裝
$make
$make install
默認安裝的路徑是/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命令
-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
總結
- 上一篇: 让批处理文件(.bat)程序无窗口(隐藏
- 下一篇: 解题报告 树形图计数