buntu 16.04ソースはlnmpをインストールします。

946 ワード

inx. のインストール
 
ダウンロード先: http://nginx.org/download/nginx-1.4.2.tar.gz
設置準備: nginxはpcreライブラリに依存しています。まずpcreをインストールします。
sudo apt-get install build-essential
sudo apt-get install openssl
sudo apt-get install libpcre3 libpcre3-dev
cd /usr/local/src/
tar zxvf nginx-1.4.2.tar.gz 
cd nginx-1.4.2
sudo ./configure --prefix=/usr/local/nginx
sudo make && make install
起動:
cd /ulsr/local/inx、 次の4つのディレクトリを見ました。
..
 ....コンサート 設定ファイル  
 ... html ホームページ
 ...ロゴ  ログファイル 
 ...sbin  メインバイナリプログラム
 
[root@localhost 同前 ./sbin/inx 
nginx: [emarg] ビッド() ト 0.0.00:80 failed (98: Address already in アメリカ

nginx: [emarg] ビッド() ト 0.0.00:80 failed (98: Address already in アメリカ
nginx: [emarg] still could not ビッド()
 
80ポートをバインドできません。80ポートはすでに占有されています。
(自分でapache、nginxなどを入れた場合もあります。また、OSにapacheを持参してサービスとして起動する場合が多いです。)
解決: 80ポートを占有するソフトウェアやサービスをクローズすればいいです。