linxu下安裝nginx詳細圖解教程-附帶安裝包下載地址

來源:互聯網
上載者:User
安裝包下載地址:http://pan.baidu.com/s/1c0phur2

分別下載:

nginx-1.6.2.tar.gz

openssl-0.9.8zc.tar.gz

pcre-8.21.tar.gz

zlib-1.2.7.tar.gz

通過ftp上傳到linxu同一個目錄下


執行下列語句進行安裝:

1.安裝openssl-0.9.8zc.tar.gz

[root@tianyi opt]# tar -zxvf openssl-0.9.8zc.tar.gz

[root@tianyi opt]# cd openssl-0.9.8zc

[root@tianyi openssl-0.9.8zc]# ./config

[root@tianyi openssl-0.9.8zc]# make

[root@tianyi openssl-0.9.8zc]# make install

2.安裝zlib-1.2.7.tar.gz

[root@tianyi opt]# tar -zxvf zlib-1.2.7.tar.gz

[root@tianyi opt]# cd zlib-1.2.7

[root@tianyi zlib-1.2.7]# ./configure

[root@tianyi zlib-1.2.7]# make

[root@tianyi zlib-1.2.7]# make install

3.安裝pcre-8.21.tar.gz

[root@tianyi opt]# tar -zxvf pcre-8.21.tar.gz

[root@tianyi opt]# cd pcre-8.21

[root@tianyi pcre-8.21]# ./configure

[root@tianyi pcre-8.21]# make

[root@tianyi pcre-8.21]# make install

4.安裝nginx-1.6.2.tar.gz

[root@tianyi opt]# tar -zxvf nginx-1.6.2.tar.gz

[root@tianyi nginx-1.6.2]# ./configure

[root@tianyi nginx-1.6.2]# make

[root@tianyi nginx-1.6.2]# make install

通過執行測試語句 ./nginx -t 返回結果是 successful 表面安裝成功


再執行下列語句啟動nginx

[root@tianyi sbin]# ./nginx


通過

[root@tianyi sbin]#netstat -ntlp可以查看nginx連接埠號碼。

開啟瀏覽器,輸入部署nginx電腦的ip如,可以看到歡迎頁面


以上就介紹了linxu下安裝nginx詳細圖解教程-附帶安裝包下載地址,包括了方面的內容,希望對PHP教程有興趣的朋友有所協助。

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.