Error1:
在windows下访问linux虚拟机出错:telent 192.168.1.127:3306 报以下错误:
正在连接192.168.1.130...无法打开到主机的连接。 在端口 1186: 连接失败
网上说的是: 控制面板-》程序-》打开或关闭Windows功能:勾选Telnet服务器、Telnet客户端处理;
我按照以上处理不起作用:然后我发现我自己的命令也是问题,应该是telent 192.168.1.127 3306【ip和port之间是空格,不是冒号!!!】
接着,我看有人说应该是linux端的问题。我的处理方式如下:
cd /etc/selinux/config
将: SELINUX=enforcing 改为 SELINUX=disabled,然后重启虚拟机 reboot;【如果这里不改,也可能会导致你能相互ping通,但是telnet不上的情况。】
Error2:
本地访问虚拟机集群的mysql节点时,报以下错误:
Host ’192.168.1.60′ is not allowed to connect to this MySQL server
原因:你的帐号不允许从远程登陆,只能在localhost。这个时候只要在localhost的那台电脑,登入MySQL后,更改 "mysql" 数据库里的 "user" 表里的 "host" 项,从"localhost"改称"%"
解决方案:
cd /usr/local/mysql/bin
./mysql -u root -p
use mysql;
select host from user where user='root';
update user set host = '%' where user ='root';
flush privileges; //刷新配置
效果如下图:
参考来源 : https://blog.csdn.net/m0_48020754/article/details/115140917
参考来源 :https://blog.csdn.net/iiiiiilikangshuai/article/details/100905996
Error3:
Linux 出现telnet: connect to address *.*.*.*: Connection refused错误解决办法:
yum install -y nc
nc -lp 23
yum
install
xinetd -y
service xinetd restart
然后重启 reboot,然后就可以telnet了,也不知道哪个起作用的。。。