nginxのは、元のインストールをインストール

 

nginxの展開

  1.依存関係をインストール

yumのgccのGCCC ++ PCRE PCRE-develのzlibをZLIB-のdevelのopensslのopenssl-develの-Yをインストール

  2.ソースパッケージのnginxをダウンロード

wgetのhttp://nginx.org/download/nginx-1.16.1.tar.gz

  3.抽出nginxの

タールzxvfのnginx-1.16.1.tar.gz

  4. nginxのをコンパイルしてインストールします

CDのnignx-1.16.1 
は./configure --prefix =は/ usr / local / nginxの\ 
--with-http_dav_module \ 
--with-http_stub_status_module \ 
--with-http_addition_module \ 
--with-http_sub_module \ 
--with-http_flv_module \ 
--with-http_mp4_module \ 
--with-http_ssl_module \ 
--with-http_gzip_static_module \ 
--user = nginxの\ 
--group = nginxの
make installを&&作ります

  5. [スタート] nginxの

/ usr / local / nginxの/ sbinに/ nginxの 

  6.検証(プロセス、ポート)

 

 

おすすめ

転載: www.cnblogs.com/llinux/p/11402770.html