修改端口号方法转载自:https://blog.muumlover.com/2016/11/apache2-setup.html
新手使用阿里云debian9 安装apache2后 输入如下命令启动apache时报错:
sudo systemctl status apache2
● apache2.service - The Apache HTTP Server Loaded: loaded
(/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2019-06-30 16:21:58 CST;
8ms ago Process: 4607 ExecStart=/usr/sbin/apachectl start
(code=exited, status=1/FAILURE)Jun 30 16:21:58 iZuf61117nu6xzs3cu9ckzZ apachectl[4607]: AH00558:
apache2: Could not reliably determine the server’s fully Jun 30
16:21:58 iZuf61117nu6xzs3cu9ckzZ apachectl[4607]: (98)Add