一 iptables 问题 1.没有安装,可以先安装 yum install iptables 2.防火墙的开启与关闭 即时生效,重启失效 service iptables start(开启) service iptables stop(关闭) service iptables restart(重启) 永久生效 chkconfig iptables on(开启) chkconfig iptables off(关闭) 查看防火墙运行状态 service iptables status 3.清除防火…
ssh遇到这个port 22:No route to host这个问题 检查防火墙状态 (iptables -L) 检查ssh状态 (ps -elf |grep ssh) 检查网络状态(换根网线)…
iptables当找到匹配的规则时,就会执行相应的动作,而不会向下继续匹配.因为ssh端口开放的规则在all规则之后,所以永远都不会匹配到,也就是ssh永远被禁止. root下执行:iptables -I INPUT -p tcp --dport 22 -j ACCEPT 即可.…
使用的wifi,在wifi下IP会自动分配. 先尝试能否ping通,如果都无法ping通那先把IP配置那些先搞定ping通之后遇到此问题再来尝试解决. 查看  /etc/hosts 中配置的 IP  hostname 是否改变. 通过  ip a  查看相应的ip  与 /etc/hosts下的ip地址是否相同.保持hosts文件与ip a 中的无线IP 保持一致.…
Windows10 下 github ssh 访问出现 Permission denied(publickey)错误的解决方法. 错误信息: git clone git@github.com:ediwang/envsetup.git Cloning into 'envsetup'... git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. Please make s…
我用的是hadoop 1.2.1 遇到的问题是: hadoop中datanode无法启动,报Caused by: java.net.NoRouteToHostException: No route to host 2013-06-11 02:22:13,637 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: STARTUP_MSG: /***************************************************…
mysql 服务启动出现1067错误的一个解决方法: 当服务启动出现1067错误时,可查看“windows 事件查看器”,发现类似错误提示 Can't find messagefile 'F:\    ools\mysql\mysql-5.6.22-winx64\share\errmsg.sys', 但是配置似乎没问题: basedir=F:\tools\mysql\mysql-5.6.22-winx64datadir=F:\tools\mysql\mysql-5.6.22-winx64\dat…
wget url 报错:unable to resolve host address ‘url’,显然是无法解析主机地址,这就能看出是DNS解析的问题.解决办法就是配置可用的dns 一般是修改成为谷歌提供的免费DNS:8.8.8.8 8.8.4.4,今天教大家如何修改ubuntu的DNS域名解析服务器. ①.要更改ubuntu DNS必须编辑文件 - “/etc/resolv.conf”,打开“终端应用程序”-“附件” - “终端”,(如果是server版本就不需要这系列操作)在终端里输入下面的…
首先,在你安装上了虚拟机后要确保你也安装了桥接的协议,这可以通过点击右键“网上邻居”,在其中可以看到有两个虚拟出来的网络一个VMnet1,另一个是VMnet8, 如下图所示. 如果没有安装,可以通过下面的方式进行安装,要确保你的网络上了桥接的协议如下图所示:(1).在"VMware Network Adapter VMnet1属性"中,点"安装"->"服务"->"添加..."->厂商中选择"VMwa…
安装svn的时候,发现报错说一个地址无法訪问. # yum list | grep subversion http://opensource.wandisco.com/centos/7/svn-1.8/RPMS/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Couldn't resolve host 'opensource.wandisco.com'" 正在尝试其他镜像. One of the configured repositor…