VPS侦探论坛

 找回密码
 注册
查看: 9602|回复: 7

修改了/etc/resolv.conf之后还是不行 麻烦大神请帮忙看一下是什么问题

[复制链接]
发表于 2016-5-28 09:34:11 | 显示全部楼层 |阅读模式

[root@west10248 ~]# yum install screen
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.bit.edu.cn
* extras: centos.ustc.edu.cn
* rpmforge: apt.sw.be
* updates: centos.ustc.edu.cn
http://mirror.bit.edu.cn/centos/6.5/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirror.bit.edu.cn'"
Trying other mirror.
http://mirror.neu.edu.cn/centos/6.5/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirror.neu.edu.cn'"
Trying other mirror.
http://mirrors.163.com/centos/6.5/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.163.com'"
Trying other mirror.
http://mirrors.aliyun.com/centos/6.5/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.aliyun.com'"
Trying other mirror.
http://mirrors.btte.net/centos/6.5/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.btte.net'"
Trying other mirror.
http://mirrors.cug.edu.cn/centos/6.5/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.cug.edu.cn'"
Trying other mirror.
http://mirrors.hustunique.com/centos/6.5/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.hustunique.com'"
Trying other mirror.
http://mirrors.neusoft.edu.cn/centos/6.5/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.neusoft.edu.cn'"
Trying other mirror.
http://mirrors.skyshe.cn/centos/6.5/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.skyshe.cn'"
Trying other mirror.
http://mirrors.yun-idc.com/centos/6.5/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.yun-idc.com'"
Trying other mirror.
http://centos.ustc.edu.cn/centos/6.5/extras/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'centos.ustc.edu.cn'"
Trying other mirror.
http://mirror.bit.edu.cn/centos/6.5/extras/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirror.bit.edu.cn'"
Trying other mirror.
http://mirror.neu.edu.cn/centos/6.5/extras/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirror.neu.edu.cn'"
Trying other mirror.
http://mirrors.aliyun.com/centos/6.5/extras/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.aliyun.com'"
Trying other mirror.
http://mirrors.btte.net/centos/6.5/extras/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.btte.net'"
Trying other mirror.
http://mirrors.cug.edu.cn/centos/6.5/extras/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.cug.edu.cn'"
Trying other mirror.
http://mirrors.neusoft.edu.cn/centos/6.5/extras/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.neusoft.edu.cn'"
Trying other mirror.
http://mirrors.nwsuaf.edu.cn/centos/6.5/extras/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.nwsuaf.edu.cn'"
Trying other mirror.
http://mirrors.pubyun.com/centos/6.5/extras/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.pubyun.com'"
Trying other mirror.
http://mirrors.yun-idc.com/centos/6.5/extras/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.yun-idc.com'"
Trying other mirror.
http://centos.ustc.edu.cn/centos/6.5/updates/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'centos.ustc.edu.cn'"
Trying other mirror.
http://mirror.bit.edu.cn/centos/6.5/updates/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirror.bit.edu.cn'"
Trying other mirror.
http://mirrors.aliyun.com/centos/6.5/updates/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.aliyun.com'"
Trying other mirror.
http://mirrors.btte.net/centos/6.5/updates/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.btte.net'"
Trying other mirror.
http://mirrors.cug.edu.cn/centos/6.5/updates/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.cug.edu.cn'"
Trying other mirror.
http://mirrors.hustunique.com/centos/6.5/updates/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.hustunique.com'"
Trying other mirror.
http://mirrors.neusoft.edu.cn/centos/6.5/updates/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.neusoft.edu.cn'"
Trying other mirror.
http://mirrors.pubyun.com/centos/6.5/updates/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.pubyun.com'"
Trying other mirror.
http://mirrors.skyshe.cn/centos/6.5/updates/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.skyshe.cn'"
Trying other mirror.
http://mirrors.yun-idc.com/centos/6.5/updates/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.yun-idc.com'"
Trying other mirror.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package screen.x86_64 0:4.0.3-16.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================
Package        Arch           Version               Repository    Size
========================================================================
Installing:
screen         x86_64         4.0.3-16.el6          base         494 k

Transaction Summary
========================================================================
Install       1 Package(s)

Total download size: 494 k
Installed size: 795 k
Is this ok [y/N]: y
Downloading Packages:
http://mirror.bit.edu.cn/centos/6.5/os/x86_64/Packages/screen-4.0.3-16.el6.x86_64.rpm: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirror.bit.edu.cn'"
Trying other mirror.
http://mirror.neu.edu.cn/centos/6.5/os/x86_64/Packages/screen-4.0.3-16.el6.x86_64.rpm: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirror.neu.edu.cn'"
Trying other mirror.
http://mirrors.163.com/centos/6.5/os/x86_64/Packages/screen-4.0.3-16.el6.x86_64.rpm: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.163.com'"
Trying other mirror.
http://mirrors.aliyun.com/centos/6.5/os/x86_64/Packages/screen-4.0.3-16.el6.x86_64.rpm: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.aliyun.com'"
Trying other mirror.
http://mirrors.btte.net/centos/6.5/os/x86_64/Packages/screen-4.0.3-16.el6.x86_64.rpm: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.btte.net'"
Trying other mirror.
http://mirrors.cug.edu.cn/centos/6.5/os/x86_64/Packages/screen-4.0.3-16.el6.x86_64.rpm: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.cug.edu.cn'"
Trying other mirror.
http://mirrors.hustunique.com/centos/6.5/os/x86_64/Packages/screen-4.0.3-16.el6.x86_64.rpm: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.hustunique.com'"
Trying other mirror.
http://mirrors.neusoft.edu.cn/centos/6.5/os/x86_64/Packages/screen-4.0.3-16.el6.x86_64.rpm: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.neusoft.edu.cn'"
Trying other mirror.
http://mirrors.skyshe.cn/centos/6.5/os/x86_64/Packages/screen-4.0.3-16.el6.x86_64.rpm: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.skyshe.cn'"
Trying other mirror.
http://mirrors.yun-idc.com/centos/6.5/os/x86_64/Packages/screen-4.0.3-16.el6.x86_64.rpm: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.yun-idc.com'"
Trying other mirror.


Error Downloading Packages:
  screen-4.0.3-16.el6.x86_64: failure: Packages/screen-4.0.3-16.el6.x86_64.rpm from base: [Errno 256] No more mirrors to try.

[root@west10248 ~]# wget -c http://soft.vpser.net/lnmp/lnmp1.2-full.tar.gz && tar zxf lnmp1.2-full.tar.gz && cd lnmp1.2-full && ./install.sh lnmp
--2016-05-28 09:25:39--  http://soft.vpser.net/lnmp/lnmp1.2-full.tar.gz
正在解析主机 soft.vpser.net... 失败:未知的名称或服务。
wget: 无法解析主机地址 “soft.vpser.net”
[root@west10248 ~]#
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2016-5-28 09:34:58 | 显示全部楼层


nameserver 208.67.220.220
nameserver 208.67.222.222



nameserver 114.114.114
nameserver 8.8.8.8


都是一样的结果
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2016-5-28 10:52:02 | 显示全部楼层

要不就是网络不通,别没其他可能

你可以自己ping dns服务器地址看看
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2016-5-28 23:53:14 | 显示全部楼层



[root@west10248 ~]# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=4 ttl=43 time=113 ms
64 bytes from 8.8.8.8: icmp_seq=7 ttl=43 time=104 ms
64 bytes from 8.8.8.8: icmp_seq=8 ttl=43 time=103 ms
64 bytes from 8.8.8.8: icmp_seq=10 ttl=43 time=112 ms
^C
--- 8.8.8.8 ping statistics ---
10 packets transmitted, 4 received, 60% packet loss, time 9921ms
rtt min/avg/max/mdev = 103.197/108.284/113.127/4.375 ms
[root@west10248 ~]# ping 114.114.114.114
PING 114.114.114.114 (114.114.114.114) 56(84) bytes of data.
64 bytes from 114.114.114.114: icmp_seq=1 ttl=70 time=32.8 ms
64 bytes from 114.114.114.114: icmp_seq=2 ttl=69 time=33.0 ms
64 bytes from 114.114.114.114: icmp_seq=3 ttl=85 time=32.8 ms
64 bytes from 114.114.114.114: icmp_seq=4 ttl=73 time=32.7 ms
^C
--- 114.114.114.114 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3534ms
rtt min/avg/max/mdev = 32.737/32.893/33.093/0.128 ms
[root@west10248 ~]#
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2016-5-28 23:55:44 | 显示全部楼层

我用浏览器直接下载http://mirrors.hustunique.com/centos/6.5/os/x86_64/Packages/screen-4.0.3-16.el6.x86_64.rpm  都是提示
This site can’t be reached
mirrors.hustunique.com’s server DNS address could not be found.

军哥运维代购:http://shop63846532.taobao.com/

发表于 2016-5-29 10:03:42 | 显示全部楼层

cat /etc/resolv.conf 看一下
 楼主| 发表于 2016-5-29 14:44:04 | 显示全部楼层

是西数vps的问题  联系他们客户解决好了  现在应该算是安装成功了  

但是http://211.149.146.48/p.php  居然出现502错误  


还有就是重启时会出现这样的问题------------------------------>>
[root@west10248 public_html]# lnmp restart
shell-init: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
+-------------------------------------------+
|    Manager for LNMP, Written by Licess    |
+-------------------------------------------+
|              http://lnmp.org              |
+-------------------------------------------+
Stoping LNMP...
shell-init: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
Stoping nginx...  done
shell-init: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
Shutting down MySQL. SUCCESS!
/bin/lnmp: line 35: /etc/init.d/php-fpm: 没有那个文件或目录
Starting LNMP...
shell-init: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
Starting nginx...  done
shell-init: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
chdir: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
Starting MySQL.. SUCCESS!
/bin/lnmp: line 27: /etc/init.d/php-fpm: 没有那个文件或目录
[root@west10248 public_html]# cat /etc/resolv.conf
nameserver 114.114.114.114
nameserver 8.8.8.8
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2016-5-29 21:55:43 | 显示全部楼层

shell-init: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
是当前你所在的目录已被删除

应该是没安装成功,上传完整日志
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-17 07:23 , Processed in 0.027802 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表