Brew安装Httpd:欢迎使用Nginx? [英] Brew Install Httpd: Welcome to Nginx?
问题描述
我正在尝试安装冲泡软件包httpd(apache).我很混乱.每次我这样做并导航到http://localhost:8080时,都会看到一个很大的欢迎屏幕,显示欢迎使用Nginx".我不明白.
I'm trying to install the brew package httpd (apache). I'm so confused. Every time I do and navigate to http://localhost:8080 I get a big welcome screen that says "Welcome to Nginx." I don't understand.
我正在运行nginx而不是Apache吗?怎么可能呢?
Am I running nginx and not apache? How could that be?
我在macOS 10.15.6上.
I'm on macOS 10.15.6.
我正在运行非常基本的命令...
I'm running pretty basic commands...
brew install openldap libiconv
sudo apachectl stop
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist 2>/dev/null
brew install httpd
sudo brew services start httpd
然后我得到这个...
https://www.dropbox.com/s/yia1yk9uhsootpk/Screen%20Shot%202020-09-18%20at%208.53.39%20PM.png?dl=0
欢迎使用nginx"
And then I get get this...
https://www.dropbox.com/s/yia1yk9uhsootpk/Screen%20Shot%202020-09-18%20at%208.53.39%20PM.png?dl=0
"Welcome to nginx"
我不知道什么?可能很多.如果我编辑httpd.conf文件以侦听另一个端口,则会得到相同的屏幕.
What don't I know? A lot probably. If I edit the httpd.conf file to listen to another port, I get the same screen.
╰─ brew list
apr gettext jemalloc libidn2 node powerlevel9k
apr-util httpd libev libunistring openldap wget
brotli icu4c libevent ncurses openssl@1.1 zsh
c-ares jansson libiconv nghttp2 pcre zsh-completions
有人可以帮我阐明一下吗?
Can anyone shed some light on this for me?
更新:
lsof -i :8080
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
Brave\x20 1225 user 35u IPv6 0xcdbe6ccead8e5deb 0t0 TCP localhost:53261->localhost:http-alt (CLOSE_WAIT)
推荐答案
我认为我将其范围缩小为"groonga".首先,我听说过它,但显然这是对mariadb brew的依赖.我发现欢迎使用nginx"在哪里文字来自.
I think I narrowed it down to "groonga." First I'm hearing of it, but apparently it's a mariadb brew dependency. I found where the "welcome to nginx" text was coming from.
var/www/index.html
如果文本也会在apache运行时显示,则不确定为什么要对该文本进行硬编码.非常混乱.但是,它将文件添加到默认的Apache DocumentRoot中.
Not sure why it's hard coding that text if it will also display with apache running. Very confusing. However, it adds that file to the default apache DocumentRoot.
这篇关于Brew安装Httpd:欢迎使用Nginx?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!