First of all, can anyone have a way to delete the built-in apache? Don't just delete files, but also the process can be deleted. Now the process can't delete it
Secondly, apache accounts for 80%, I installed nginx Using 8080, how do the hosts file point the domain name to 127.0.0.1:8080?
I can’t write it as follows. Does anyone know how to write it correctly?
127.0.0.1:8080 u.x.com
127.0.0.1:8080 x.com
127.0.0.1:8080 localhost
The hosts file is used to configure DNS, and the port cannot be specified.
apache occupies port 80, you can just turn it off.
sudo apachectl stop