- 积分
- 2
- 威望
-
- 金钱
-
- 注册时间
- 2017-7-4
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
我的CentOS6.9是安装的虚拟机,我按照lnmp1.3远程登录不了的解决方式,去解决lnmp1.4在CentOS上远程登录的问题,给用户Host为%,然后执行:iptables -L -n --line-numbers
iptables -D INPUT 6
chkconfig --level 345 iptables on
service iptables save
然后,我通过Navicat for mysql远程访问,报错:2003 - Cann't connect to MySQL server on '192.168.10.139'(10038)
我查看iptables -L -n --line-numbers,得到如下的显示:
Chain INPUT (policy ACCEPT)
num target prot opt source destination
1 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
2 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
3 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:22
4 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
5 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:443
6 ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0 icmp type 8
7 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
8 ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0
9 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
10 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:22
11 REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited
Chain FORWARD (policy ACCEPT)
num target prot opt source destination
1 REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited
Chain OUTPUT (policy ACCEPT)
num target prot opt source destination
请问这种远程连接不了的方式,怎么解决? |
|