代码改变世界

【MySQL】MySQ简单开启firewalld

2022-06-21 19:45  abce  阅读(38)  评论(0编辑  收藏  举报
# systemctl start firewalld.service
# systemctl enable firewalld.service
# firewall-cmd --permanent --zone=public --add-port=22/tcp
# firewall-cmd --permanent --zone=public --add-port=10050/tcp
# firewall-cmd --permanent --zone=public --add-port=3306/tcp
# firewall-cmd --reload
# firewall-cmd --permanent --zone=public --list-ports