1 Star 0 Fork 7

Charon/nsd2110_1

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
kvm-patch-v20210204.sh 1.36 KB
一键复制 编辑 原始数据 按行查看 历史
aa 提交于 2021-11-27 11:31 . RHCSA旧的教学环境运行脚本
#/bin/bash
grep -qw 'server1' /etc/hosts || echo '172.25.0.254 server1.net0.example.com server1.lab0.example.com server1' >> /etc/hosts
sed -i 's/^enabled=1/enabled=0/g' /etc/dnf/plugins/subscription-manager.conf
yum -y install httpd 2> /dev/null
tar -xPf kvm-patch-v2021*.tgz
ln -s /var/ftp/rhel /var/www/html/rhel8 &> /dev/null
ln -s /var/ftp/rhel /var/www/html/rhel8.2 &> /dev/null
echo '<html>
<title>Exam</title>
<body>
<h1>exam</h1>
<p>
<a href="/exam/EX200.pdf">EX200</a>
</p>
<p>
<a href="/exam/EX294.pdf">EX294</a>
</p>
</body>
</html>' > /var/www/html/index.html
systemctl enable httpd ; systemctl restart httpd
systemctl disable firewalld ; systemctl stop firewalld
yum -y install chrony 2> /dev/null
grep -q '172.25' /etc/chrony.conf || echo 'allow 172.25.254.0/24
allow 172.25.0.0/24' >> /etc/chrony.conf
systemctl enable chronyd ; systemctl restart chronyd
groupadd -g 1040 ldapuser0 &> /dev/null
mkdir -p /rhome
useradd -u 1040 -g 1040 -d /rhome/ldapuser0 ldapuser0 &> /dev/null
echo password | passwd --stdin ldapuser0
echo '/rhome *(rw)' > /etc/exports
systemctl enable nfs-server ; systemctl restart nfs-server
virsh list --all | grep -qw utilitya || rht-vmctl reset utility
sleep 3 && virsh destroy utility &> /dev/null
echo '
######################
## kvm-patched OK. ##
######################
'
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/S492784372B/nsd2110_1.git
[email protected]:S492784372B/nsd2110_1.git
S492784372B
nsd2110_1
nsd2110_1
master

搜索帮助