zoukankan      html  css  js  c++  java
  • Linux某些命令找不到/无法使用

    1、zip/unzip: command not found

    yum list | grep zip/unzip
    yum install zip
    yum install unzip 

    2、rz -y/sz: command not found

    yum install lrzsz -y

    3、netstat: command not found

    通过netstat命令可以查看端口是否正在监听:netstat -tnulp|grep "端口号"

    #Yum安装netstat软件,软件包是在net-tools中。

    yum install net-tools
    
    yum install net-tools

    4、定时任务crontab: command not found

    yum install vixie-cron crontabs
    chkconfig crond on

    5、ssh-copy-id: command not found

    1、本地终端执行以下命令:
       curl -L https://raw.githubusercontent.com/beautifulcode/ssh-copy-id-for-OSX/master/install.sh | sh
    2、输入本地安装软件的密码, 看到以下输出信息就表示安装成功了: 
       Installed ssh-copy-id into /usr/local/bin. 
    3、继续执行之前的命令:
       ssh-copy-id i  xxxxxxxxx 

    6、lsof: command not found 

    yum install lsof

     7、-bash: telnet: command not found

    1、列出telnet相关的安装包
        yum list telnet*        
    2、安装telnet服务 
        yum install telnet-server          
    3、安装telnet客户端
        yum install telnet.* 

    8、ntpdate: command not found

    yum install ntpdate

    9、– git: command not found

    Centos下使用:
    yum install git -y  
    // 或者  
    yum install -y git
    
    Ubuntu/Debian下使用 : 
    apt-get install git -y

    10、

  • 相关阅读:
    zoj 3644 Kitty's Game
    Planets
    hdoj 2571 命运
    (理论篇)IOC概述和Unity的使用
    重温设计模式之单例模式
    重温设计模式之观察者
    重温设计模式之装饰者
    (理论篇)PetShop全概述
    (理论篇)petshop中缓存运用之我见
    (理论篇)cookie,session,viewstate,cache
  • 原文地址:https://www.cnblogs.com/mmzs/p/9043190.html
Copyright © 2011-2022 走看看