gmnon.cn-疯狂蹂躏欧美一区二区精品,欧美精品久久久久a,高清在线视频日韩欧美,日韩免费av一区二区

站長資訊網
最全最豐富的資訊網站

Linux下Nginx源碼編譯安裝

什么是Nginx?

Nginx (“engine x”) 是一個高性能的 HTTP 和 反向代理 服務器,也是一個 IMAP/POP3/SMTP 代理服務器,在高連接并發的情況下Nginx 是 Apache 服務器不錯的替代品.其特點是占有內存少,并發能力強,事實上nginx的并發能力確實在同類型的網頁服務器中表現較好.目前中國大陸使用nginx網站用戶有:新浪、網易、 騰訊,另外知名的微網志Plurk也使用nginx。 

Nginx 作為 負載均衡 服務器: 

Nginx 既可以在內部直接支持 Rails 和 PHP 程序對外進行服務,也可以支持作為 HTTP 代理服務器對外進行服務。 Nginx 采用 C 進行編寫, 不論是系統資源開銷還是 CPU 使用效率都比 Perlbal 要好很多。作為郵件代理服務器: 

Nginx 同時也是一個非常優秀的郵件代理服務器(最早開發這個產品的目的之一也是作為郵件代理服務器), Last.fm 描述了成功并且美妙的使用經驗。Nginx 是一個安裝非常簡單,配置文件非常簡潔(還能夠支持perl語法), Bugs非常少的服務器: Nginx 啟動特別容易,并且幾乎可以做到 7*24 不間斷運行,即使運行數個月也不需要重新啟動。 你還能夠不間斷服務的情況下進行軟件版本的升級。

官網下載

點擊下載

[root@nginx ~]# ls
 nginx-1.15.2.tar.gz

安裝依賴軟件

##安裝編譯工具 gcc
[root@nginx ~]# yum install -y gcc

##安裝PCRE庫,pcre提供編譯版本的庫,pcre-devel提供開發階段的頭文件和編譯項目的源代碼。
[root@nginx ~]# yum install -y pcre pcre-devel 

##安裝OpenSSL加密庫,nginx中如果服務器需要提供安全網頁則會用到OpenSSL庫
[root@nginx ~]# yum install -y openssl  openssl-devel

##安裝zlib庫,zlib庫提供了壓縮算法,在nginx的各種模塊中需要使用gzip壓縮
[root@nginx ~]# yum install -y zlib  zlib-devel

解壓

[root@nginx ~]# tar  zxf  nginx-1.15.2.tar.gz
[root@nginx ~]# ls
nginx-1.15.2  nginx-1.15.2.tar.gz

查看模塊

[root@nginx ~]# cd nginx-1.15.2
[root@nginx nginx-1.15.2]# ls
auto  CHANGES  CHANGES.ru  conf  configure  contrib  html  LICENSE  man  README  src

[root@nginx nginx-1.15.2]# ./configure –help    ##查看參數

  –help                            print this message

  –prefix=PATH                      nginx安裝路徑
  –sbin-path=PATH                  nginx二進制執行文件路徑
  –modules-path=PATH                set modules path
  –conf-path=PATH                  nginx配置文件存放位置
  –error-log-path=PATH              錯誤日志文件路徑
  –pid-path=PATH                    nginx.pid文件路徑(pid文件包含進程的標識符)
  –lock-path=PATH                  鎖文件存放路徑(鎖文件(nginx.log)用于控制nginx進程沒有被啟動兩次))

  –user=USER                        指定啟動nginx進程的默認用戶;set non-privileged user for worker processes
  –group=GROUP                      指定啟動nginx進程的默認用戶組;set non-privileged group for worker processes

  –build=NAME                      set build name
  –builddir=DIR                    set build directory

  –with-select_module              enable select module
  –without-select_module            disable select module
  –with-poll_module                enable poll module
  –without-poll_module              disable poll module

  –with-threads                    enable thread pool support

  –with-file-aio                    enable file AIO support

  –with-http_ssl_module            enable ngx_http_ssl_module
  –with-http_v2_module              enable ngx_http_v2_module
  –with-http_realip_module          enable ngx_http_realip_module
  –with-http_addition_module        enable ngx_http_addition_module
  –with-http_xslt_module            enable ngx_http_xslt_module
  –with-http_xslt_module=dynamic    enable dynamic ngx_http_xslt_module
  –with-http_image_filter_module    enable ngx_http_image_filter_module
  –with-http_image_filter_module=dynamic
                                    enable dynamic ngx_http_image_filter_module
  –with-http_geoip_module          enable ngx_http_geoip_module
  –with-http_geoip_module=dynamic  enable dynamic ngx_http_geoip_module
  –with-http_sub_module            enable ngx_http_sub_module
  –with-http_dav_module            enable ngx_http_dav_module
  –with-http_flv_module            enable ngx_http_flv_module
  –with-http_mp4_module            enable ngx_http_mp4_module
  –with-http_gunzip_module          enable ngx_http_gunzip_module
  –with-http_gzip_static_module    enable ngx_http_gzip_static_module
  –with-http_auth_request_module    enable ngx_http_auth_request_module
  –with-http_random_index_module    enable ngx_http_random_index_module
  –with-http_secure_link_module    enable ngx_http_secure_link_module
  –with-http_degradation_module    enable ngx_http_degradation_module
  –with-http_slice_module          enable ngx_http_slice_module
  –with-http_stub_status_module    enable ngx_http_stub_status_module

  –without-http_charset_module      disable ngx_http_charset_module
  –without-http_gzip_module        disable ngx_http_gzip_module
  –without-http_ssi_module          disable ngx_http_ssi_module
  –without-http_userid_module      disable ngx_http_userid_module
  –without-http_access_module      disable ngx_http_access_module
  –without-http_auth_basic_module  disable ngx_http_auth_basic_module
  –without-http_mirror_module      disable ngx_http_mirror_module
  –without-http_autoindex_module    disable ngx_http_autoindex_module
  –without-http_geo_module          disable ngx_http_geo_module
  –without-http_map_module          disable ngx_http_map_module
  –without-http_split_clients_module disable ngx_http_split_clients_module
  –without-http_referer_module      disable ngx_http_referer_module
  –without-http_rewrite_module      disable ngx_http_rewrite_module
  –without-http_proxy_module        disable ngx_http_proxy_module
  –without-http_fastcgi_module      disable ngx_http_fastcgi_module
  –without-http_uwsgi_module        disable ngx_http_uwsgi_module
  –without-http_scgi_module        disable ngx_http_scgi_module
  –without-http_grpc_module        disable ngx_http_grpc_module
  –without-http_memcached_module    disable ngx_http_memcached_module
  –without-http_limit_conn_module  disable ngx_http_limit_conn_module
  –without-http_limit_req_module    disable ngx_http_limit_req_module
  –without-http_empty_gif_module    disable ngx_http_empty_gif_module
  –without-http_browser_module      disable ngx_http_browser_module
  –without-http_upstream_hash_module
                                    disable ngx_http_upstream_hash_module
  –without-http_upstream_ip_hash_module
                                    disable ngx_http_upstream_ip_hash_module
  –without-http_upstream_least_conn_module
                                    disable ngx_http_upstream_least_conn_module
  –without-http_upstream_random_module
                                    disable ngx_http_upstream_random_module
  –without-http_upstream_keepalive_module
                                    disable ngx_http_upstream_keepalive_module
  –without-http_upstream_zone_module
                                    disable ngx_http_upstream_zone_module

  –with-http_perl_module            enable ngx_http_perl_module
  –with-http_perl_module=dynamic    enable dynamic ngx_http_perl_module
  –with-perl_modules_path=PATH      set Perl modules path
  –with-perl=PATH                  set perl binary pathname

  –http-log-path=PATH              set http access log pathname
  –http-client-body-temp-path=PATH  set path to store
                                    http client request body temporary files
  –http-proxy-temp-path=PATH        set path to store
                                    http proxy temporary files
  –http-fastcgi-temp-path=PATH      set path to store
                                    http fastcgi temporary files
  –http-uwsgi-temp-path=PATH        set path to store
                                    http uwsgi temporary files
  –http-scgi-temp-path=PATH        set path to store
                                    http scgi temporary files

  –without-http                    disable HTTP server
  –without-http-cache              disable HTTP cache

  –with-mail                        enable POP3/IMAP4/SMTP proxy module
  –with-mail=dynamic                enable dynamic POP3/IMAP4/SMTP proxy module
  –with-mail_ssl_module            enable ngx_mail_ssl_module
  –without-mail_pop3_module        disable ngx_mail_pop3_module
  –without-mail_imap_module        disable ngx_mail_imap_module
  –without-mail_smtp_module        disable ngx_mail_smtp_module

  –with-stream                      enable TCP/UDP proxy module
  –with-stream=dynamic              enable dynamic TCP/UDP proxy module
  –with-stream_ssl_module          enable ngx_stream_ssl_module
  –with-stream_realip_module        enable ngx_stream_realip_module
  –with-stream_geoip_module        enable ngx_stream_geoip_module
  –with-stream_geoip_module=dynamic enable dynamic ngx_stream_geoip_module
  –with-stream_ssl_preread_module  enable ngx_stream_ssl_preread_module
  –without-stream_limit_conn_module disable ngx_stream_limit_conn_module
  –without-stream_access_module    disable ngx_stream_access_module
  –without-stream_geo_module        disable ngx_stream_geo_module
  –without-stream_map_module        disable ngx_stream_map_module
  –without-stream_split_clients_module
                                    disable ngx_stream_split_clients_module
  –without-stream_return_module    disable ngx_stream_return_module
  –without-stream_upstream_hash_module
                                    disable ngx_stream_upstream_hash_module
  –without-stream_upstream_least_conn_module
                                    disable ngx_stream_upstream_least_conn_module
  –without-stream_upstream_random_module
                                    disable ngx_stream_upstream_random_module
  –without-stream_upstream_zone_module
                                    disable ngx_stream_upstream_zone_module

  –with-google_perftools_module    enable ngx_google_perftools_module
  –with-cpp_test_module            enable ngx_cpp_test_module

  –add-module=PATH                  enable external module
  –add-dynamic-module=PATH          enable dynamic external module

  –with-compat                      dynamic modules compatibility

  –with-cc=PATH                    set C compiler pathname
  –with-cpp=PATH                    set C preprocessor pathname
  –with-cc-opt=OPTIONS              set additional C compiler options
  –with-ld-opt=OPTIONS              set additional linker options
  –with-cpu-opt=CPU                build for the specified CPU, valid values:
                                    pentium, pentiumpro, pentium3, pentium4,
                                    athlon, opteron, sparc32, sparc64, ppc64

  –without-pcre                    disable PCRE library usage
  –with-pcre                        force PCRE library usage
  –with-pcre=DIR                    set path to PCRE library sources
  –with-pcre-opt=OPTIONS            set additional build options for PCRE
  –with-pcre-jit                    build PCRE with JIT compilation support

  –with-zlib=DIR                    set path to zlib library sources
  –with-zlib-opt=OPTIONS            set additional build options for zlib
  –with-zlib-asm=CPU                use zlib assembler sources optimized
                                    for the specified CPU, valid values:
                                    pentium, pentiumpro

  –with-libatomic                  force libatomic_ops library usage
  –with-libatomic=DIR              set path to libatomic_ops library sources

  –with-openssl=DIR                set path to OpenSSL library sources
  –with-openssl-opt=OPTIONS        set additional build options for OpenSSL

  –with-debug                      enable debug logging

添加模塊,編譯

[root@nginx nginx-1.15.2]# ./configure –prefix=/usr/local/lnmp/nginx –with-http_ssl_module –with-http_stub_status_module –with-file-aio –with-threads –user=nginx –group=nginx

編譯成功后執行安裝命令

[root@nginx nginx-1.15.2]# make && make install

添加用戶

[root@server1 nginx-1.10.1]# useradd -s /sbin/nologin -M nginx

創建軟鏈接,便于啟動

[root@nginx nginx-1.15.2]# ln  -s  /usr/local/lnmp/nginx/sbin/nginx  /usr/local/sbin/

開啟Nginx

[root@nginx nginx-1.15.2]# nginx
[root@nginx nginx-1.15.2]# ps ax| grep nginx
 7066 ?        Ss    0:00 nginx: master process nginx
 7067 ?        S      0:00 nginx: worker process
 7069 pts/0    S+    0:00 grep –color=auto nginx

至此,已經成功安裝Nginx,訪問 http:ip

平滑加載

[root@nginx nginx-1.15.2]# nginx  -s  reload

關閉Nginx

[root@nginx nginx-1.15.2]# nginx  -s  stop

編譯時選擇需要的模塊不同,或者需要改變安裝路徑、用戶等,則要重新編譯或者重新安裝Nginx

重新編譯

[root@nginx ~]# ls
nginx-1.15.2  nginx-1.15.2.tar.gz
[root@nginx ~]# cd nginx-1.15.2
[root@nginx nginx-1.15.2]# make clean
rm -rf Makefile objs
[root@nginx nginx-1.15.2]# ./configure –prefix=/usr/local/web/nginx –with-http_ssl_module –with-http_stub_status_module –with-file-aio –with-threads –user=nginx –group=nginx

##注意重新編譯僅僅 make 不用 make install
[root@nginx nginx-1.15.2]# make
[root@nginx nginx-1.15.2]# nginx
[root@nginx nginx-1.15.2]# ps xa| grep nginx
 9728 ?        Ss    0:00 nginx: master process nginx
 9729 ?        S      0:00 nginx: worker process
 9732 pts/0    S+    0:00 grep –color=auto nginx
 [root@nginx nginx-1.15.2]# nginx -s stop

重新安裝

[root@nginx ~]# ls
nginx-1.15.2  nginx-1.15.2.tar.gz
[root@nginx ~]# cd nginx-1.15.2
[root@nginx nginx-1.15.2]# make clean
rm -rf Makefile objs
[root@nginx nginx-1.15.2]# ./configure –prefix=/usr/local/lnmp/nginx –with-http_ssl_module –with-http_stub_status_module –with-file-aio –with-threads –user=nginx –group=nginx

##注意重新安裝nginx時,需要 make && make install
[root@nginx nginx-1.15.2]# make && make install
[root@nginx nginx-1.15.2]# nginx
[root@nginx nginx-1.15.2]# ps xa| grep nginx
12419 ?        Ss    0:00 nginx: master process nginx
12420 ?        S      0:00 nginx: worker process
12422 pts/0    S+    0:00 grep –color=auto nginx
[root@nginx nginx-1.15.2]# nginx -s stop

贊(0)
分享到: 更多 (0)
?
網站地圖   滬ICP備18035694號-2    滬公網安備31011702889846號
gmnon.cn-疯狂蹂躏欧美一区二区精品,欧美精品久久久久a,高清在线视频日韩欧美,日韩免费av一区二区
国产成人三级视频| 国产四区在线观看| 大西瓜av在线| 夜夜爽久久精品91| 6080国产精品| 毛毛毛毛毛毛毛片123| 久久久精品高清| 国产福利在线免费| 午夜激情影院在线观看| 亚洲男人天堂av在线| 日日干日日操日日射| 狠狠干狠狠操视频| 亚洲精品中文字幕乱码无线| 午夜影院免费版| 伊人再见免费在线观看高清版 | www.夜夜爽| 日本 片 成人 在线| 999这里有精品| 中文字幕av久久| 东北少妇不带套对白| 精品国产免费av| 污网站免费在线| 色哟哟免费网站| 水蜜桃色314在线观看| 日本日本19xxxⅹhd乱影响| 日本中文字幕片| 国产大片一区二区三区| 成人免费看片视频在线观看| 国产一线二线三线女| 嫩草av久久伊人妇女超级a| 日本中文字幕精品—区二区| 国产成人免费高清视频| 青娱乐自拍偷拍| 911av视频| 国产特级黄色大片| 国产精品久久久久久9999| 分分操这里只有精品| 亚洲国产高清av| 久久国产精品网| 911av视频| 丝袜老师办公室里做好紧好爽| 国产一二三四在线视频| 人妻激情另类乱人伦人妻| 欧美激情成人网| 国产青草视频在线观看| 国产美女视频免费看| 国产男女在线观看| 老司机午夜网站| 久久黄色片网站| 亚洲午夜无码av毛片久久| 国产一级片中文字幕| 久草综合在线观看| 男人添女荫道口女人有什么感觉| 天天插天天操天天射| 浮妇高潮喷白浆视频| 亚洲色图都市激情| 在线视频日韩欧美| 日韩成人精品视频在线观看| 99蜜桃臀久久久欧美精品网站| 9l视频自拍9l视频自拍| 午夜剧场高清版免费观看 | 激情五月开心婷婷| 久久成人免费观看| 人妻夜夜添夜夜无码av| 91麻豆天美传媒在线| 中文字幕12页| 午夜国产福利在线观看| 手机av在线免费| 五月激情五月婷婷| 欧美精品 - 色网| 超碰在线资源站| 91丝袜超薄交口足| 国产精品12p| 强开小嫩苞一区二区三区网站| 久久av喷吹av高潮av| 黄色录像特级片| 国产传媒久久久| 欧美在线观看视频免费| 国产毛片久久久久久国产毛片 | 日本精品一区在线| 久色视频在线播放| 国产午夜伦鲁鲁| 羞羞的视频在线| 五月天视频在线观看| 国产午夜大地久久| 日本黄网站色大片免费观看| 三年中国中文在线观看免费播放| 久热在线视频观看| 日本一区二区免费高清视频| www.成人黄色| 人妻av无码专区| 少妇人妻互换不带套| 天天干天天操天天做| 国产免费xxx| 亚洲爆乳无码专区| 国产在线视频三区| 日韩中字在线观看| 亚洲精品综合在线观看| 福利视频一区二区三区四区| 丰满少妇被猛烈进入高清播放| 一区二区三区免费播放| 污污污污污污www网站免费| 大j8黑人w巨大888a片| 日日干夜夜操s8| 国产96在线 | 亚洲| 日本美女视频一区| 国产aaa一级片| 国产欧美精品一二三| 日韩黄色片视频| 亚洲五码在线观看视频| 男女啪啪网站视频| 国产一区二区四区| 亚洲午夜激情影院| 国产xxxxx在线观看| 青草网在线观看| 一区二区三区国产好的精华液| 91成人在线观看喷潮教学| 裸体裸乳免费看| 一本岛在线视频| 每日在线更新av| 成人在线观看毛片| 潘金莲一级淫片aaaaa免费看| 日韩亚洲在线视频| 久久婷婷国产精品| 免费成人午夜视频| 精品少妇人欧美激情在线观看| 在线播放免费视频| 香蕉视频999| www.激情小说.com| 免费在线观看的毛片| 欧美在线一区视频| www.18av.com| 成人午夜视频免费观看| 日本一级淫片演员| 五月天在线免费视频| 日本成人性视频| 日本一二三区在线| 小早川怜子一区二区三区| 粉色视频免费看| 亚洲免费av一区| 女同激情久久av久久| 男女污污视频网站| 喜爱夜蒲2在线| 成年人深夜视频| 国产情侣第一页| 久在线观看视频| 精品久久久久久中文字幕2017| 精品人妻一区二区三区四区在线| 亚洲 高清 成人 动漫| 又色又爽又高潮免费视频国产| 日韩精品一区二区三区不卡| 无码内射中文字幕岛国片| 欧美日韩一区二区三区69堂| 亚洲在线观看网站| 污污污污污污www网站免费| 日日碰狠狠添天天爽超碰97| 无码少妇一区二区三区芒果| а 天堂 在线| 99在线免费视频观看| 国产精品亚洲二区在线观看| 亚洲第一色av| 男人日女人下面视频| 国产精品自拍视频在线| 成人免费a级片| 91在线视频观看免费| 亚洲欧美一二三| 蜜臀av午夜一区二区三区| 日韩成人av免费| 亚洲午夜无码av毛片久久| 欧美日韩理论片| 91免费视频网站在线观看| 久久精品国产99久久99久久久| 日本福利视频一区| 午夜激情视频网| 爱福利视频一区二区| 国产一区一区三区| 亚洲不卡视频在线| 久艹在线免费观看| 国产一级片自拍| 亚欧无线一线二线三线区别| 日本特级黄色大片| 国产成人手机视频| www.日本少妇| 奇米777四色影视在线看| 国产一二三四在线视频| 国产精品无码人妻一区二区在线 | 欧洲av无码放荡人妇网站| 在线观看中文av| 欧美黄色一级片视频| 缅甸午夜性猛交xxxx| 最新av在线免费观看| 日韩在线不卡一区| 国产wwwxx| 亚欧在线免费观看| 国产免费人做人爱午夜视频| 黄色www网站| 国产美女网站在线观看| 国产精品无码电影在线观看| 国产欧美综合一区| avove在线观看|