1、BCLinux卸载license模块
rpm -qa | grep license rpm -e --nodeps bclinux-license-manager-4.0-1.oe1.bclinux.x86_64 --noscripts yum clean all && yum makecache
2、修改密码策略
vim /etc/pam.d/system-auth password requisite pam_pwquality.so try_first_pass local_users_only retry=3 authtok_type=
3、取消ssh连接超时设置
vim /etc/profile export HISTTIMEFORMAT="%F %T `whoami` " set -o vi #TMOUT=180 TMOUT=0 umask 027 source /etc/profile
4、添加epel源
vim /etc/yum.repos.d/epel.repo
[epel] name=Extra Packages for Enterprise Linux 7 - $basearch #baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch failovermethod=priority enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 [epel-debuginfo] name=Extra Packages for Enterprise Linux 7 - $basearch - Debug #baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch/debug metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-7&arch=$basearch failovermethod=priority enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 gpgcheck=1 [epel-source] name=Extra Packages for Enterprise Linux 7 - $basearch - Source #baseurl=http://download.fedoraproject.org/pub/epel/7/SRPMS metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-source-7&arch=$basearch failovermethod=priority enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 gpgcheck=1
5、挂载ISO镜像文件
mkdir /mnt/cdrom;mount -o ro /app/BCLinux-for-Euler-21.10-everything-x86_64.iso /mnt/cdrom
6、新增BCLinux-cdrom.repo文件
vim /etc/yum.repos.d/BCLinux-cdrom.repo
[BCLinux-oe21.10-ISO] name=BC-Linux-release - ISO local baseurl=file:///mnt/cdrom gpgcheck=0 enabled=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-BCLinux-For-Euler
7、备份其它repo文件
mv BCLinux-for-Euler-21.10-all.repo BCLinux-for-Euler-21.10-all.repo.bak mv BCLinux-for-Euler-21.10-ISO.repo BCLinux-for-Euler-21.10-ISO.repo.bak
8、清除yum缓存,使用yum list命令测试出现已安装的软件包时,说明配置成功
yum clean all && yum list
9、安装常用软件包,--downloadonly仅下载安装包同时下载依赖包
yum -y install wget bash-completion lrzsz telnet tree yum install --downloadonly --downloaddir=/root lrzsz
11、执行ansible离线文件并安装
tar xf ansible-offline-install.tar.gz && sh ansible/install.sh
12、解压ansible-2.9.27.tar.gz
rm -fr ansible && tar xf ansible-2.9.27.tar.gz
13、升级ansible到2.9.27版本
cd ansible/ rpm -ivh *.rpm --force --nodeps
参考链接
https://mirrors.cmecloud.cn/ # 移动云开源镜像站(BCLinux下载地址)
https://files.cnblogs.com/files/xwupiaomiao/ansible_offline_install.part1.rar?t=1706581032&download=true
https://files.cnblogs.com/files/xwupiaomiao/ansible_offline_install.part2.rar?t=1706581032&download=true
https://files.cnblogs.com/files/xwupiaomiao/ansible_offline_install.part3.rar?t=1706581032&download=true
https://files.cnblogs.com/files/xwupiaomiao/ansible_offline_install.part4.rar?t=1706581032&download=true
https://files.cnblogs.com/files/xwupiaomiao/ansible_offline_install.part5.rar?t=1706581032&download=true