“Nginx on debian”的版本间的差异

来自linux中国网wiki
跳到导航 跳到搜索
(创建页面,内容为“=apt= <pre> sudo apt install curl gnupg2 ca-certificates lsb-release echo "deb http://nginx.org/packages/debian `lsb_release -cs` nginx" \ | sudo tee /etc/apt…”)
 
 
(未显示同一用户的1个中间版本)
第23行: 第23行:
 
     sudo apt install nginx
 
     sudo apt install nginx
  
 +
systemctl  enable  nginx
  
  
 
</pre>
 
</pre>
 +
 +
 +
[[category:ops]]  [[category:nginx]]

2020年10月26日 (一) 08:43的最新版本

apt


sudo apt install curl gnupg2 ca-certificates lsb-release

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

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

    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 <[email protected]>

#To install nginx, run the following commands:

    sudo apt update
    sudo apt install nginx

systemctl  enable   nginx