Apache 占用了端口 80,导致 Discourse 无法启动

Not likely.

You should remove or disable Apache. Something like

apt purge apache2