用 VMware 添加CentOS 6.8 虚拟机后,老是连接失败?
原来是没 设置防火墙 和 SSH服务,还有Apache
service iptables stop # 关闭防火墙
service sshd start # 启动SSH服务
service httpd start # 启动Apache服务
chkconfig iptables off # 设置防火墙开机关闭自启动
chkconfig sshd on # 设置SSH服务开机自启动
chkconfig httpd on # 设置Apache开机自启动
设置完了基本 就可以连接Linux服务器了。