centos8 apache

建议通过docker,更灵活。

# 安装
$ yum install -y httpd
#启动
$ systemctl start httpd
#开机启动服务
$  systemctl enable httpd.service

#查看状态 
$ systemctl status httpd

#查看版本
$ httpd -v 

#停止服务
$  systemctl stop httpd.service
#卸载
$ yum erase httpd.x86_64 

https://blog.csdn.net/Yan_MF/article/details/90452487

你可能感兴趣的:(centos8 apache)