今天草搜网服务器因为特殊原因需要更换为amh面板,重置服务器之后便开始按照官方教程按照,但是上来就遇到了麻烦,按照过程提示
Loaded plugins: security
http://mirrors.aliyun.com/centos/6/os/x86_64/repodata/repomd.xml: PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.aliyun.com'"
Trying other mirror.
http://mirrors.aliyuncs.com/centos/6/os/x86_64/repodata/repomd.xml: PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.aliyuncs.com'"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
Error resolving pool.ntp.org: Name or service not known (-2)
11 Jan 17:51:14 ntpdate[1109]: Can't find host pool.ntp.org: Name or service not known (-2)
11 Jan 17:51:14 ntpdate[1109]: no servers can be used, exiting
Start time: Sun Jan 11 17:51:14 CST 2015
--2015-01-11 17:51:14-- http://code.amh.sh/files/amh-conf-5.0.tar.gz
Resolving code.amh.sh... failed: Name or service not known.
wget: unable to resolve host address 鈥渃ode.amh.sh鈥
tar (child): amh-conf-5.0.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
cp: cannot stat ./amh-conf-5.0/conf\': No such file or directory gcc: ./amh-conf-5.0/conf/amh.c: No such file or directory gcc: no input files chmod: cannot access /bin/amh': No such file or directory
amh.sh: line 151: amh: command not found
amh.sh: line 152: amh: command not found
amh.sh: line 153: amh: command not found
amh.sh: line 154: amh: command not found
amh.sh: line 155: amh: command not found
amh.sh: line 157: amh: command not found
Sorry, Failed to install AMH Please contact us: http://amh.sh 通过跟客服沟通,发现是阿里云那边DNS问题,导致源不通,所以我们设置一下DNS指向即可
用编辑器打开文件 /etc/resolv.conf 在文件最后插入一行 nameserver 8.8.8.8 重新执行安装即可解决。