Linux 下 scp 命令的使用方法
一、功能 在主机和主机之间进行文件传输,可以把远程服务器的文件到本地,也可以把本机的文件复制到远程服务器。 二、用法 scp [文件] [用户]@[域名或 IP 地址]:[路径] 常用选项 -a 复制文件的同时也复制状态和权限 -f 如果目标位置存在该文件,先删除再复制 -r 复制目录 -P 指定端口 ... 阅读更多
一、功能 在主机和主机之间进行文件传输,可以把远程服务器的文件到本地,也可以把本机的文件复制到远程服务器。 二、用法 scp [文件] [用户]@[域名或 IP 地址]:[路径] 常用选项 -a 复制文件的同时也复制状态和权限 -f 如果目标位置存在该文件,先删除再复制 -r 复制目录 -P 指定端口 ... 阅读更多
把 CentOS6.5 默认的 python2.6 升级到了 python2.7,然后运行 yum 命令的时候就出现了错误:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
There was a problem importing one of the Python modules required to run yum. The error leading to this problem was: No module named yum Please install a package which provides this module, or verify that the module is installed correctly. It"s possible that the above module doesn"t match the current version of Python, which is: 2.7.13 (default, Aug 18 2017, 21:52:09) [GCC 4.4.7 20120313 (Red Hat 4.4.7-18)] If you cannot solve this problem yourself, please go to the yum faq at: https://yum.baseurl.org/wiki/Faq |
原因是因为 yum 是用 python 写的,并不兼容 2.7,所以运行会报错。解决办法是修改 yum 源文件,指定 python 版本为老 ... 阅读更多