Linux
Linux
松田富民
大神一枚
展开
-
python3 出现“ ImportError: bad magic number in ‘tflearn‘: b‘\x03\xf3\r\n‘ “ 报错
解决方案:删除.pyc文件即可find . -name '*.pyc' -delete原创 2022-02-28 16:34:14 · 1132 阅读 · 1 评论 -
Python3 安装模块报错:ModuleNotFoundError: No module named ‘setuptools_rust‘
在使用python3的pip安装netmiko时报如下错误解决办法, 升级pip即可python3 -m pip install --upgrade pip原创 2022-02-25 10:35:53 · 2478 阅读 · 0 评论 -
python 使用国内镜像下载插件及报错Could not fetch URL https://pypi.org/simple/pywinauto/: There was a problem co解决
报错Could not fetch URL https://pypi.org/simple/pywinauto/: There was a problem co解决方法pip安装一个第三方的库,就一直报错: Could not fetch URL https://pypi.org/simple/xrld/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=‘pypi.org’, port=443):原创 2022-02-25 10:24:16 · 1380 阅读 · 0 评论 -
scp 将数据从一台linux服务器复制到另一台linux服务器
scp 是securecopy的简写,用于在Linux下进行远程拷贝文件的命令,和它类似的命令有cp,不过cp只是在本机进行拷贝不能跨服务器,而且 scp传输是加密的。可能会稍微影响一下速度。当你服务器硬盘变为只读readonlysystem时,用scp可以帮你把文件移出来。另 外,scp还非常不占资源,不会提高多少系统负荷,在这一点上,rsync就远远不及它了。虽然rsync比scp会快一点,但当小文件众多的情况 下,rsync会导致硬盘I/O非常高,而scp基本不影响系统正常使用。1....原创 2022-02-09 15:22:03 · 3621 阅读 · 0 评论 -
CentOS7 更换yum源
备份默认源文件进入yum.repos.d文件夹cd /etc/yum.repos.d/mv CentOS-Base.repo CentOS-Base.repo.backup下载yum源网易源wget http://mirrors.163.com/.help/CentOS7-Base-163.repo阿里源wget http://mirrors.aliyun.com/repo/Centos-7.repo更新yum生成缓存yum makecache..原创 2022-02-09 15:10:52 · 1207 阅读 · 0 评论 -
scp和ssh免密 Are you sure you want to continue connecting(yes/no)?问题解决
第一次提示Are you sure you want to continue connecting (yes/no)?[root@docker110 temp]# scp root@192.168.14.227:/srv/kubernetes/ ./The authenticity of host '192.168.14.227 (192.168.14.227)' can't be established.ECDSA key fingerprint is SHA256:MJkhAklmPIviNe原创 2022-02-09 14:46:10 · 792 阅读 · 0 评论 -
Linux 下测试互联网和内部网络带宽及查看网络情况常用命令
环境: 本测试环境为CentOS7_x86_64方法一:测试内网网络环境1,测试网络带宽常用命令(包含安装使用) yum -y install iperf2,测试时记得关闭防火墙或者自行配置防火墙规则,为了快速测试,这里就直接关闭防火墙 systemctl stop firewalld3. 安装完iperf后,在Server端执行 iperf -s -i 1 -f m -s表示server,-i表示显示时间间隔,-f表示显示格式化的单位4,在C原创 2022-01-28 11:32:52 · 4872 阅读 · 0 评论 -
One of the configured repositories failed (Unknown), and yum doesn‘t have enough cached data to cont
1. 问题[root@localhost home]# yum install httpdLoaded plugins: langpacks, product-id, subscription-managerThis system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. One of the configured repositorie原创 2022-01-27 15:08:26 · 6964 阅读 · 2 评论 -
windows保存的文件传输到linux中格式转换
直接从window传输到linux的脚本执行时,会出现以下错误-bash: xxx: /bin/sh^M: bad interpreter: No such file or directory解决方法:vim命令打开文件 :set ff 回车,此时看到的是dos格式。修改文件格式, 同样在vim命令格式下,修改文件格式::set ff=unix...原创 2022-01-21 15:31:19 · 750 阅读 · 0 评论