Mac OS 80 port is inexplicably occupied problem solving

After installing Nginx, when starting the service, it prompts that the startup failed - port 80 is occupied.

 

Check the process and find that there are several httpds...

 

But the Apache that comes with Mac OS is not activated by default? ! (Without enabling Web sharing) Why did it start running by itself?

 

I don't know if it's caused by updating software such as XCode~

 

General startup items can be added or deleted in System Preferences–Users & Groups–Login Items, but no startup items related to Apache are found here~

 

So Google came to the following feasible method, open the terminal and execute the following command:

 

sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist

If one day you want it to boot, just change unload to load:

 

sudo launchctl load -w /System/Library/LaunchDaemons/org.apache.httpd.plist

Description: launchd is a key process used to initialize the system environment under Mac OS. Similar to init, rc under Linux. This method is also suitable for disabling some services of the system, such as printers, bluetooth, etc.

AuthorHugo

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326572582&siteId=291194637