我正在安装了brew的macOS Mojave上运行Apache服务器,想知道为什么以非特权用户身份运行时可以绑定到*:80
而不是localhost:80
。
我知道*
的意思是0.0.0.0
,即所有网络接口,这暗示着localhost
(127.0.0.1
),所以毫无意义。安全吗?
未特权的应用程序是否可以始终绑定到特权端口上的0.0.0.0
,而不绑定到那些端口上的127.0.0.1
?
[Thu Jul 11 13:52:25.829043 2019] [mpm_prefork:notice] [pid 9563] AH00173: SIGHUP received. Attempting to restart
(13)Permission denied: AH00072: make_sock: could not bind to address 127.0.0.1:443
[Thu Jul 11 13:52:25.861820 2019] [mpm_prefork:alert] [pid 9563] no listening sockets available, shutting down
[Thu Jul 11 13:52:25.861830 2019] [:emerg] [pid 9563] AH00019: Unable to open logs, exiting