Ubuntu open port

Time:2021-9-23
sudo ufw status

sudo ufw allow 3306

sudo ufw enable

sudo ufw reload

sudo ufw status


Status: active
To                         Action      From
--                         ------      ----
3306                       ALLOW       Anywhere                  
3306 (v6)                  ALLOW       Anywhere (v6)