[root@localhost ~]# mount /dev/sr0 /mntmount: /mnt: WARNING: device write-protected, mounted read-only.[root@localhost ~]# vim /etc/yum.repos.d/base.repo
[BaseOS]name=BaseOSbaseurl=file:///mnt/BaseOSgpgcheck=0[AppStream]name=AppStreambaseful=file:///mnt/AppStreamgpgcheck=0
[root@localhost ~]# dnf repolist
[root@localhost ~]# dnf isntall httpd -y
[root@localhost ~]# echo helloworld > /var/www/html/index.html
[root@localhost ~]# systemctl start httpd
day06(linux)
最新推荐文章于 2024-07-12 22:36:01 发布