不想用IIS就下载HFS小工具,地址http://www.rejetto.com/hfs/download
本地搭建HFS,将RHEL ISO镜像和脚本文件加入HFS虚拟文件系统
windows下新建s.sh文件,用notepad++改为linux换行格式
脚本如下
cd /root/ mkdir /mnt/yum curl -# -O http://10.37.20.101/rhel.iso mount -o loop /root/rhel.iso /mnt/yum cat >> /etc/fstab << EOF /root/rhel.iso /mnt/yum iso9660 loop 0 0 EOF cat >> /etc/rc.local << EOF mount -t iso9660 /root/rhel.iso /mnt/yum EOF cat >> /etc/yum.repos.d/rhel.repo << EOF [rhel] name=Red Hat Enterprise Linux 7.4 baseurl=file:///mnt/yum enabled=1 gpgcheck=0 EOF yum clean all yum -y install wget
minimal安装无wget,使用curl下载并运行
curl -# -O http://10.37.20.101/s.sh && chmod +x s.sh ./s.sh
更新日期: 2018年11月18日
文章标签: Linux
文章链接: https://www.vos.cn/os/242.html
版权说明:如非注明,本站文章均为vOS原创,转载请注明出处和附带本文链接。
文章标签: Linux
文章链接: https://www.vos.cn/os/242.html
版权说明:如非注明,本站文章均为vOS原创,转载请注明出处和附带本文链接。