1. Port test
netstat -tunlp |grep 8080
netstat -tunlp |grep 3306
netstat -tunlp |grep 22
2. Firewall operation
1、查看firewall服务状态
systemctl status firewalld
2、查看firewall的状态
firewall-cmd --state
# 开启
service firewalld start
# 重启
service firewalld restart
# 关闭
service firewalld stop
3. mysql configure external network access
netstat -an|grep 3306
If the following picture appears, it means that only local
sudo vim /etc/mysql/mysql.conf.d/mysqld.cnf
Comment out the following bind-address = 127.0.0.1 and
restart the server
reboot