Estoy tratando de construir un BCHS aplicación. Tengo un servidor remoto con OpenBSD, pero la latencia de la red me está matando, así que me decidí a desarrollar en mi MacBook Air y desplegar en el servidor OpenBSD más tarde.
No he instalado Apache todavía (y no creo que lo necesito), pero httpd
parece ser una utilidad integrada de macOS.
~
❯ httpd -v
Server version: Apache/2.4.28 (Unix)
Server built: Oct 9 2017 19:54:20
He intentado iniciar httpd
con los siguientes métodos, pero que no funcionan:
❯ launchctl enable httpd
Unrecognized target specifier. <service-target> takes a form of <domain-target>/<service-id>.
Please refer to `man launchctl` for explanation of the <domain-target> specifiers.
Usage: launchctl enable <service-target>
~
❯ launchctl start httpd
~
❯ launchctl list | grep httpd
~
❯ httpd
(13)Permission denied: AH00072: make_sock: could not bind to address [::]:80
(13)Permission denied: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs
TL;DR
Quiero lanzar httpd
como un demonio. ¿Cómo puedo hacer eso?