V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
通过以下 Referral 链接购买 DigitalOcean 主机,你将可以帮助 V2EX 持续发展
DigitalOcean - SSD Cloud Servers
elric8
V2EX  ›  VPS

问一个小白问题为什么我用 xshell5 打什么都是无效啊

  •  
  •   elric8 · 2015-03-14 00:14:12 +08:00 · 431 次点击
    这是一个创建于 3340 天前的主题,其中的信息可能已经有所发展或是发生改变。

    明明是centos
    打yum 都是无效命令
    之前都是用putty的

    5 条回复    2015-03-14 17:55:36 +08:00
    rainy3636
        1
    rainy3636  
       2015-03-14 01:41:23 +08:00 via iPhone
    你确定ssh连到服务器了吗?
    acess
        2
    acess  
       2015-03-14 04:01:50 +08:00
    无效?是类似找不到命令的提示么?
    PATH变量的问题?
    elric8
        3
    elric8  
    OP
       2015-03-14 08:20:08 +08:00
    @rainy3636
    @acess
    打ls可以看到根目录
    但是打yum wget netstat
    就显示
    sftp:/root> yum
    sftp: unknown command "yum"
    sftp:/root> yum
    sftp: unknown command "yum"
    sftp:/root> wget
    sftp: unknown command "wget"
    sftp:/root> netstat -antp
    sftp: unknown command "netstat"
    sftp:/root>
    acess
        4
    acess  
       2015-03-14 13:53:56 +08:00
    @elric8 我不太清楚,但我觉得yum、wget、netstat这些跟ls应该不在一个目录。
    fa674
        5
    fa674  
       2015-03-14 17:55:36 +08:00
    @elric8 没有过xshell5,但你用的是sftp不是ssh,应该是登陆设置那里弄错了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   780 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 22:13 · PVG 06:13 · LAX 15:13 · JFK 18:13
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.