(1)通过yum/dnf安装软件httpd程序;
在/var/www/html创建一个文件为index.html,内容为helloworld;
执行systemctl start httpd命令后通过linux浏览器访问该文件内容http://localhost
(2)卸载httpd软件包;
mount /dev/sr0 /mnt
vim /etc/yum.repos/kiss.rope
{
[BaseOS]
name=base
baseurl=file:///mnt/BaseOS
gpgcheck=0
[APPStream]
mane=APP
baseurl=file:///mnt/APPStream
gpgcheck=o}
dnf repolist
dnf install httpd -y
mkdir -pv /var/www/html
cd /var/www/html
vim index.html
{hellowworld}
systemctl start httpd
rpm -q httpd