Home > Database > Mysql Tutorial > mysql远程访问服务器开通3306端口_MySQL

mysql远程访问服务器开通3306端口_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-01 13:38:37
Original
1516 people have browsed it

bitsCN.com


mysql远程访问服务器开通3306端口

 

1、设定

[root@localhost ~]# /sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT 

[root@localhost ~]# /sbin/iptables -I INPUT -p tcp --dport 22 -j ACCEPT 

[root@localhost ~]# /sbin/iptables -I INPUT -p tcp --dport 3306 -j ACCEPT 

 

2、保存 

[root@localhost ~]# /etc/rc.d/init.d/iptables save 

 

3、重启防火墙 

[root@localhost ~]# service iptables restart 

 

4、查看 

[root@localhost ~]# /etc/init.d/iptables status

bitsCN.com
Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template