FreeBSD:无法启动 Apache

FreeBSD : Unable to start apache

我通过 pkg 安装程序安装了 apache24

pkg install apache24

并添加了以下行 apache24_enable="YES"/etc/rc.conf 文件

现在我正在尝试使用 service apache24 start

启动 apache

并显示以下错误

apache24 does not exist in /etc/rc.d or the local startup directories(/usr/local/etc/rc.d)

如何开始apache

如果apache24已经正确安装,启动脚本会在/usr/local/etc/rc.d/目录下。首先检查此目录以确保存在名为 apache24 的文件:

ls /usr/local/etc/rc.d/

要列出所有已安装的软件包,请使用:

pkg info