我正在尝试查看 Mac 上的 Apache 服务的状态。我尝试了命令:
sudo service httpd status
但我明白了
sudo: service: command not found
我用谷歌搜索并发现
systemctl
所以我尝试了:
sudo man systemctl
它显示了
No manual entry for systemctl
我注意到我没有看到太多 macOS,只在 Google 网站上看到 Linux。
systemctl
和 service
命令仅存在于 Linux 上,而不存在于 macOS 上吗?
如果是,这些命令的 macOS 版本是什么?