(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
本文介绍如何使用yum/dnf工具安装httpd软件,并通过创建简单的index.html文件来验证http服务是否正常运行。此外,还提供了卸载httpd软件包的方法。
446

被折叠的 条评论
为什么被折叠?



