# yum install --downloadonly --downloaddir=/tmp createrepo 一般会下载三个包,一个是createrepo,另外两个是依赖包。 上传rpm安装包到目标机 采用scp 或者 pscp.exe(Windows下)等方式将rpm安装包文件上传到目标机,并修改权限为可执行(chmod 755 RPM_Name)。 在目标机构建本地软件源 安装createrepo 在目标机...
# yum install --downloadonly --downloaddir=/tmp createrepo # 上传rpm安装包到目标机 使用`scp`或Windows下的`pscp.exe`等工具,将下载的RPM包文件上传到目标机,并更改其权限以允许执行: bash # scp /tmp/* user@target_ip:/home/user/rpms/ # ssh user@target_ip # chmod 755 /home/user/rpms/* ...
1 # yum install --downloadonly --downloaddir=/tmp createrepo 一般会下载三个包,一个是createrepo,另外两个是依赖包。 上传rpm安装包到目标机 采用scp或者pscp.exe(Windows下)等方式将rpm安装包文件上传到目标机,并修改权限为可执行(chmod755RPM_Name)。 在目标机构建本地软件源 安装createrepo 在目标机安装...
wget http://uni.mirrors.163.com/mysql/Downloads/MySQL-5.7/mysql-5.7.29-1.el7.x86_64.rpm-bundle.tar#也可以从Windows上以QQ旋风等工具下载,然后运行pscp.exe上传到虚拟机#pscp mysql-5.7.29-1.el7.x86_64.rpm-bundle.tar user@ip:/tmp/tar -xf mysql-5.7.29-1.el7.x86_64.rpm-bundle.tar -C...
yum install -y createrepo 使用createrepo创建索引 createrepo /centos7.3 更新索引 createrepo --update /centos7.3 清理yum缓存数据 yum clean all yum makecache 更改系统默认的yum源 vi /etc/yum.repos.d/CentOS-Base.repo [base] name=CentOS-$releasever - Base ...
Pageant.exe PuTTY、PSCP、Plink 的 SSH 认证代理,用这个可以不用每次都输入口令 PuTTYgen.exe RSA 和 DSA 密钥生成工具( 必须)点击选择 Category 中的 SSH 选项,并选择ssh 的版本为“2” 或者“2 only”以获得更好的安全性 为解决中文显示问题,我们需要进行两项设置: ...
>pscp C:\my_software\CentOS\k8s-install\rpm\kubernetes\* root@192.101.11.233:/opt/local_yum 提示: 1、统计文件夹下文件个数,包括子文件 ls -lR | grep "^-"| wc -l 2、统计文件夹下目录个数,包括子目录 ls -lR | grep "^d"| wc -l ...