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

事を学び、すべての最初は、どのようなネットワーク私に教えて

http://nginx.org/en/linux_packages.html#RHEL-CentOS

 

コンパイルツールの実装、依存関係
を中心PCREインストール# - develのをnginxのは、必要な
$ yumを -Y インストール GCC  GCC -C ++ のautoconf automakeに
$ yumを -Y インストールしたzlibはzlib-develのののOpenSSL OpenSSLの-develのPCRE-のdevelの


2を,,コンパイラのインストールnginxの

2。コーデック:タール -zxvf nginx- 1.140タール.gzという
 。3構成:.は./configure --user = WWW --group = WWW --prefix =は/ usr / local / nginxの--with-http_stub_status_module --with --with-http_v2_module --with - http_ssl_module http_gzip_static_module --with- のIPv6 
#J2が表す2コアは、実際のニーズに応じて変更することができる
 4インストール:. メイク -j2&作る インストール 

。5再起動nginxの。

 

おすすめ

転載: www.cnblogs.com/students/p/11426326.html