shanhe 发表于 2016-5-28 09:34:11

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

# 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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
Downloading Packages:
http://mirror.bit.edu.cn/centos/6.5/os/x86_64/Packages/screen-4.0.3-16.el6.x86_64.rpm: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: No more mirrors to try.

# 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”
#

shanhe 发表于 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


都是一样的结果

licess 发表于 2016-5-28 10:52:02

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

你可以自己ping dns服务器地址看看

shanhe 发表于 2016-5-28 23:53:14

# 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
# 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
#

shanhe 发表于 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.

licess 发表于 2016-5-29 10:03:42

cat /etc/resolv.conf 看一下

shanhe 发表于 2016-5-29 14:44:04

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

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


还有就是重启时会出现这样的问题------------------------------>>
# 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: 没有那个文件或目录
# cat /etc/resolv.conf
nameserver 114.114.114.114
nameserver 8.8.8.8

licess 发表于 2016-5-29 21:55:43

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

应该是没安装成功,上传完整日志
页: [1]
查看完整版本: 修改了/etc/resolv.conf之后还是不行 麻烦大神请帮忙看一下是什么问题