- Check firewall status
systemctl status firewalld 或者 firewall-cmd --state
- Whether temporarily turn off the firewall test is a port problem
systemctl stop firewalld
- Open the firewall
systemctl start firewalld
- Increase port
firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --zone=public --add-port=12345/tcp --permanent
- Reload
firewall-cmd --reload