命令 systemctl 和 service 是否仅存在于 linux 而不是 mac 上? [英] Does the command systemctl and service exists on linux only and not mac?
问题描述
我正在尝试在 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
所以我尝试了
I look up in Google and discover systemctl
so I try that
sudo man systemctl
并且它没有显示 systemctl
我注意到我没有看到太多的 mac os,只在 Google 的网站上看到了 linux.
I noticed that I didn't see much mac os and only see linux in the websites on Google.
systemctl
和 service
命令只存在于 linux 而不是 Mac 上吗?
Does the command systemctl
and service
exists on linux only and not Mac?
如果有,这些命令的 mac 版本是什么?
If so, what is the mac version of these command?
推荐答案
相当于 Linux systemctl
在 macOS 上是 launchctl
.Apache 也有自己的 HTTP 服务器控制接口,apachectl
.
The equivalent to Linux systemctl
on macOS would be launchctl
. Apache also has it's own HTTP Server Control Interface, apachectl
.
↳ OS X 手册页
↳ OS X Man Pages
这篇关于命令 systemctl 和 service 是否仅存在于 linux 而不是 mac 上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!