# 查看版本
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/

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/06fc76a9-246b-4325-b267-34cca9107fc4/Untitled.png