新鲜的bash shell - 没有安装 - 如何安装命令

时间:2013-09-08 09:57:18

标签: python django linux bash shell

我有一个新的服务器,我通过ssh访问,PuTTy。

我在Debian 3.2.46-1 + deb7u1 x86_64

登录后

bash-4.2$

如果我去/bin,我有这个:

enter image description here

这些都是我安装好的吗?我想用

安装python

wget http://www.python.org/download/releases/2.7.5/Python-2.7.5.tgz

它说:enter image description here

然后我想到了DNS错误,所以我试着ping,然后我得到了这个:

enter image description here

然后我得出结论,没有安装ping。然后我这样做了: enter image description here

但即便如此,我也不能使用ping。仍然是同样的错误。我无法安装任何东西,因为我有DNS错误..有点无限循环。为了安装东西,我该怎么办?我需要python然后easy_install,这样我就可以安装django等..

1 个答案:

答案 0 :(得分:1)

在我看来,你的resolv.conf没有正确配置。

/etc/resolv.conf

你可以添加:

nameserver 8.8.8.8
nameserver 8.8.4.4

可能会说:

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN

但这仅在您重新启动或重新启动网络后才有效。

要为resolvconf配置添加名称服务器,您需要将名称服务器添加到/ etc / network / interfaces

或者你可以删除resolvconf并手动处理它

祝你好运