bash scp command not found的解决方法
2013-03-02 19:10
1131 查看
安装了centos6.0,由于选择了最小安装,很多包没有安装,因此一些常用的命令也不支持,如下:
# scp
-bash: scp: command not found
我的解决方法是:在一台运行正常的CentOS 5.6服务器上找到scp所在的包:
##---以下命令在运行正常的CentOS 5.6上执行
# which scp
/usr/bin/scp
# rpm -qf /usr/bin/scp
openssh-clients-4.3p2-72.el5
这么看来scp所在的包是openssh-clients了。
在不正常的机器上安装吧:
复制代码 代码如下:# yum install openssh-clients
或者从光盘上安装
# rpm -ivh libedit-2.11-4.20080712cvs.1.el6.x86_64
# rpm -ivh openssh-clients-5.3p1-20.el6.x86_64
至此,scp命令可以执行了。
注意:以上用到的包名请大家根据自己的情况进行调整。
您可能感兴趣的文章:
相关文章推荐
- -bash: scp: command not found 解决方法
- bash scp command not found的解决方法
- 在linux中执行wget命令提示 -bash: wget: command not found 解决方法
- bash: ssh: command not found解决方法
- bash:git:command not found解决方法
- 解决bash: mysql: command not found 的方法
- -bash: pecl: command not found的解决方法
- -bash: wget: command not found 解决方法
- -bash: scp: command not found问题解决
- bash sqlplus command not found 解决方法
- -bash: wget: command not found的两种解决方法
- macos -bash:command not found 解决方法
- 【转】bash: ssh: command not found解决方法(linux)
- 解决bash: mysql: command not found 的方法
- 关于第三方终端command not found不加载.bash_profile 解决方法
- bash: vim: command not found错误解决方法
- -Bash: Unzip: Command Not Found解决方法 安装unzip
- 解决bash: mysql: command not found 的方法
- 提示bash: mysql: command not found解决方法
- -bash: unzip: command not found解决方法