mysql开放远程端口
- [root@iZ2zeczh9tfpmxmijw5qppZ ~]# firewall-cmd --zone=public --add-port=3306/tcp --permanent
- success
- [root@iZ2zeczh9tfpmxmijw5qppZ ~]# firewall-cmd --reload
- success
- [root@iZ2zeczh9tfpmxmijw5qppZ ~]# firewall-cmd --state
- running
- [root@iZ2zeczh9tfpmxmijw5qppZ ~]#
- [root@iZ2zeczh9tfpmxmijw5qppZ ~]# firewall-cmd --zone=public --query-port=3306/tcp
- yes
- [root@iZ2zeczh9tfpmxmijw5qppZ ~]#