您好,登錄后才能下訂單哦!
這篇文章主要介紹“怎么快速配置本地yun源”的相關知識,小編通過實際案例向大家展示操作過程,操作方法簡單快捷,實用性強,希望這篇“怎么快速配置本地yun源”文章能幫助大家解決問題。
在右下角的光盤標志這里右鍵,然后點擊連接,桌面就會出現鏡像圖標。 然后再執行創建腳本的命令創建腳本。
vim rhel7.repo.sh#在打開的文件中添加以下內容:#!/bin/bashcd /etc/yum.repos.d cat > rhel7.repo echo "/dev/cdrom /media/cdrom iso9660 defaults 0 0" >> /etc/fstab yum clean all yum makecache
chmod 755 rhel7.repo.sh或者chmod +x rhel7.repo.sh
bash rhel7.repo.sh 或者./rhel7.repo.sh
[root@localhost Desktop]# yum install -y httpdLoaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Resolving Dependencies --> Running transaction check ---> Package httpd.x86_64 0:2.4.6-40.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================ Package Arch Version Repository Size ============================================================================================================ Installing: httpd x86_64 2.4.6-40.el7 rhel7 1.2 M Transaction Summary ============================================================================================================ Install 1 Package Total download size: 1.2 M Installed size: 3.7 M Downloading packages: Running transaction check Running transaction testTransaction test succeeded Running transaction Installing : httpd-2.4.6-40.el7.x86_64 1/1 Verifying : httpd-2.4.6-40.el7.x86_64 1/1 Installed: httpd.x86_64 0:2.4.6-40.el7 Complete!
關于“怎么快速配置本地yun源”的內容就介紹到這里了,感謝大家的閱讀。如果想了解更多行業相關的知識,可以關注億速云行業資訊頻道,小編每天都會為大家更新不同的知識點。
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。