# 查看版本
apache2 -version
# 配置文件位置
/etc/apache2
禁止apache2 开机启动
# 查看状态(是否可由systemctl 管理什么的)
systemctl status apache2
# 检测是否开机启动
systemctl is-enabled apache2
# 禁止
systemctl disable apache2
# 停止服务
systemctl stop apache2
systemctl mask apache2
https://www.cyberciti.biz/faq/how-do-i-stop-apache-from-starting-on-linux/