 
                        通过以下命令查询,3306端口,竟然返回空的,3306端口没有开启
netstat -an|grep 3306然后就使用以下命令
iptables -I INPUT 4 -p tcp -m state --state NEW -m tcp --dport 3306 -j ACCEPT来开启3306,但是显示以下错误
iptables: Index of insertion too big.是什么原因呢?
还有什么方法可以开启3306的端口吗?
需要做远程链接
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
表示在INPUT chain中第四行的位置插入这条rule
说明你的iptable里没有那么多行
iptables -S看一下你一共多少行man iptables先捋一遍再操作,不然很容易一条指令直接断网你是要用mysql数据库么?根据你的描述是服务没起来,跟iptables没关系