通过以下 Referral 链接购买 DigitalOcean 主机,你将可以帮助 V2EX 持续发展
DigitalOcean - SSD Cloud Servers
elric8
V2EX  ›  VPS

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

  •  
  •   elric8 · Mar 14, 2015 · 1260 views
    This topic created in 4081 days ago, the information mentioned may be changed or developed.

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

    5 replies    2015-03-14 17:55:36 +08:00
    rainy3636
        1
    rainy3636  
       Mar 14, 2015 via iPhone
    你确定ssh连到服务器了吗?
    acess
        2
    acess  
       Mar 14, 2015
    无效?是类似找不到命令的提示么?
    PATH变量的问题?
    elric8
        3
    elric8  
    OP
       Mar 14, 2015
    @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  
       Mar 14, 2015
    @elric8 我不太清楚,但我觉得yum、wget、netstat这些跟ls应该不在一个目录。
    fa674
        5
    fa674  
       Mar 14, 2015
    @elric8 没有过xshell5,但你用的是sftp不是ssh,应该是登陆设置那里弄错了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3050 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 06:50 · PVG 14:50 · LAX 23:50 · JFK 02:50
    ♥ Do have faith in what you're doing.