インストールnginxの-1.14.2のcentos7

ステップ1:依存関係をインストールします。

yumのPCRE-のdevelのopensslのopenssl-develのlibevent-のdevel libxsltの-develのGCCのgcc-C ++はgcc-G7をインストール-y

ステップ2:nginxの-1.14.2.tar.gzをダウンロード

               / usr / local /ツールへの抽出

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

               CDのnginxの-1.14.2

ステップ3:コンパイラのインストール

              ./configure --prefix =は/ usr / local / nginxの--with-select_module --with-poll_module --withファイル-AIO --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_xslt_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_degradation_module --with-http_stub_status_module --with-メール--with-mail_ssl_module

               作る&& make installを 

 

おすすめ

転載: www.cnblogs.com/ligang0357/p/11362469.html