Home  >  Q&A  >  body text

macos - Speechless, all the apache directory files that come with mac have been deleted, but apache can still be found in the process

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

怪我咯怪我咯2713 days ago492

reply all(1)I'll reply

  • 迷茫

    迷茫2017-05-16 17:01:10

    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

    reply
    0
  • Cancelreply