从外部访问关闭mysql端口(3306)。
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了从外部访问关闭mysql端口(3306)。相关的知识,希望对你有一定的参考价值。
The command you need to close the mysql port 3306 from external access. You need to use the 2 lines in the snippet below once you have connected to the server via SSH.
iptables -I INPUT -p tcp --dport 3306 -j DROP /etc/init.d/iptables save /* After you've run the above command, you can undo it by editing /etc/sysconfig/iptables and running /etc/init.d/iptables restart */
以上是关于从外部访问关闭mysql端口(3306)。的主要内容,如果未能解决你的问题,请参考以下文章