嗨,我尝试查看我在 Mac 上的 Apache 服务的状态。我尝试了以下命令
Hi I'm trying to see the status of my apache services on my Mac. I tried the command
sudo service httpd status
但是找不到命令
我在Google上查找并发现systemctl
,所以我尝试使用它
sudo man systemctl
并且它没有systemctl
的手动输入
我注意到在Google上的网站中没有看到太多的mac os,只看到了Linux。
systemctl
和service
命令只存在于Linux上而不是Mac上吗?
如果是这样,那么这些命令的Mac版本是什么?