Ubuntu16.04下安裝Nginx

1. 參考文檔鏈接 :http://nginx.org/en/linux_packages.html#Ubuntu

2. 安裝步驟如下:

# Install the prerequisites:

sudo?apt?install?curl gnupg2 ca-certificates lsb-release

# To set up the apt repository for stable nginx packages, run the following command:

echo?"deb?http://nginx.org/packages/ubuntu?`lsb_release -cs` nginx"?|?sudo?tee?/etc/apt/sources.list.d/nginx.list

# Import an official nginx signing key so apt could verify the packages authenticity:

curl -fsSL https://nginx.org/keys/nginx_signing.key |?sudo?apt-key add -

# Verify that you now have the proper key:

sudo?apt-key fingerprint ABF5BD827BD9BF62

# The output should contain the full fingerprint 573B FD6B 3D8F BC64 1079 A6AB ABF5 BD82 7BD9 BF62 as follows:

pub?? rsa2048 2011-08-19 [SC] [expires: 2024-06-14]

??????573B FD6B 3D8F BC64 1079? A6AB ABF5 BD82 7BD9 BF62

uid?? [ unknown] nginx signing key <signing-key@nginx.com>


# To install nginx, run the following commands:

sudo?apt update

sudo?apt?install?nginx

3. 配置文件在:/etc/nginx/nginx.conf

4. 文檔鏈接在:http://nginx.org/en/docs/

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • 參考考地文章地址:這個(gè)嘗試過:https://www.cnblogs.com/EasonJim/p/7806879...
    joy_藍(lán)蜘蛛閱讀 511評(píng)論 0 0
  • 原因:python3中并沒有ConfigParser這個(gè)模塊,為了遵循pep 8的標(biāo)準(zhǔn),已經(jīng)改名為configpa...
    fake_coder閱讀 318評(píng)論 0 0
  • nginx是一款強(qiáng)大的web服務(wù)器,大有取apache而代之的節(jié)奏。 nginx的核心是http路由,但是還有反向...
    solaim閱讀 1,020評(píng)論 0 0
  • Install the prerequisites: To set up the apt repository f...
    張廣旭閱讀 830評(píng)論 0 0
  • 一、環(huán)境確認(rèn) 1、確認(rèn)網(wǎng)絡(luò)可用 登錄服務(wù)器后執(zhí)行:ping www.baidu.com 2、確認(rèn)y...
    xuanxiao閱讀 325評(píng)論 0 0

友情鏈接更多精彩內(nèi)容