在使用XShell连接虚拟机中的服务器时,报以下错误并断开连接,之前连接还是挺稳定的,忽然就这样了 Last login: Thu Aug :: from 192.168.1.102 [root@node1 ~]# Socket error Event: Error: . Connection closing...Socket close. Connection closed by foreign host. Disconnected ) at ::. Type `help' to learn
在ubuntu界面,打开终端terminal,输入: ifconfig 出现如下界面: fb993608316@ubuntu:/$ ifconfig eth0 Link encap:Ethernet HWaddr :0c::f7:2d:bf inet addr:192.168.204.128 Bcast:192.168.204.255 Mask:255.255.255.0 然后打开xshell: 点击连接: Connecting to ... Could not connect to ): Co
pymongo.errors.ServerSelectionTimeoutError: 192.168.12.230:27017: [Errno 61] Connection refused 1.如果是链接虚拟机中的Mongodb时,打开配置文件mongod.conf. vi /etc/mongod.conf 2.修改配置参数 找到 net: port: 27017 bindIp: 127.0.0.1 # Enter 0.0.0.0,:: to bind to all IPv4 and IPv6