Upgrading Nginx To The Latest On Ubuntu

Install base environment OS: Ubuntu 18.04.6 LTS Current Nginx: 1.18.0 Add Nginx repo 1 2 3 4 echo "deb http://nginx.org/packages/mainline/ubuntu `lsb_release -cs` nginx" \ | sudo tee /etc/apt/sources.list.d/nginx.list curl -o /tmp/nginx_signing.key https://nginx.org/keys/nginx_signing.key sudo mv /tmp/nginx_signing.key /etc/apt/trusted.gpg.d/nginx_signing.asc Install Nginx 1 2 sudo apt update sudo apt install nginx Restart Nginx check the status of nginx 1 sudo systemctl status nginx.service restart nginx 1 sudo systemctl restart nginx.service

创建: 2023-11-05 | 更新: 2023-11-05 | 字数: 66字 | 时长: 1分钟 |  作者:Puffin Jiang