美文网首页
Ubuntu安装Nginx

Ubuntu安装Nginx

作者: Anson_1f2a | 来源:发表于2021-02-18 16:25 被阅读0次

安装

sudo apt update
sudo apt install nginx

防火墙设置

  1. 查看
anson@ubuntu:~$ sudo ufw app list
Available applications:
  Nginx Full
  Nginx HTTP
  Nginx HTTPS
  OpenSSH
  1. 开启
anson@ubuntu:~$ sudo ufw allow 'Nginx HTTP'
Rules updated
Rules updated (v6)
  1. 状态
anson@ubuntu:~$ sudo ufw status
Status: active

To                         Action      From
--                         ------      ----
Nginx HTTP                 ALLOW       Anywhere
OpenSSH                    ALLOW       Anywhere
Nginx HTTP (v6)            ALLOW       Anywhere (v6)
OpenSSH (v6)               ALLOW       Anywhere (v6)

ref:https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-20-04

相关文章

网友评论

      本文标题:Ubuntu安装Nginx

      本文链接:https://www.haomeiwen.com/subject/mxvgxltx.html