98

Hi I'm trying to see the status of my apache services on my Mac. I tried the command

sudo service httpd status

but command not found

I look up in Google and discover systemctl so I try that

sudo man systemctl

and it shows no manual entry for systemctl

I noticed that I didn't see much mac os and only see linux in the websites on Google.

Does the command systemctl and service exists on linux only and not Mac?

If so, what is the mac version of these command?

Henry Yang
  • 2,283
  • 3
  • 21
  • 38

1 Answers1

159

The equivalent to Linux systemctl on macOS would be launchctl. Apache also has its own HTTP Server Control Interface, apachectl.

OS X Man Pages

danronmoon
  • 3,814
  • 5
  • 34
  • 56
l'L'l
  • 44,951
  • 10
  • 95
  • 146