切到mnt目錄:
cd /mnt
mkdir iso
確保centos鏡像在服務(wù)上存在,磁盤掛載
mount -o loop /home/xx.iso /mnt/iso
查看是否掛載成功
df -h

出現(xiàn)紅色的部分表示掛載成功
修改源
切目錄并修改yum源:
cd /etc/yum.repos.d
ll
vim Centos-Base.repo

修改后
yum clean all
yum list
安裝lrzsz
yum install lrzsz
兩臺服務(wù)器之間文件傳輸
scp local_file remote_username@remote_ip:remote_folder文章來源:http://www.zghlxwxcb.cn/news/detail-470775.html
例子:scp /home/space/music/1.mp3 root@www.runoob.com:/home/root/others/music 文章來源地址http://www.zghlxwxcb.cn/news/detail-470775.html
到了這里,關(guān)于Centos7 掛載 ISO鏡像的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!