建议通过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
建议通过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
本文标题:centos8 apache
本文链接:https://www.haomeiwen.com/subject/uumeqltx.html
网友评论