![使用 Brew 重新启动 httpd,现在我收到 ERR_CONNECTION_REFUSED](https://linux22.com/image/1598392/%E4%BD%BF%E7%94%A8%20Brew%20%E9%87%8D%E6%96%B0%E5%90%AF%E5%8A%A8%20httpd%EF%BC%8C%E7%8E%B0%E5%9C%A8%E6%88%91%E6%94%B6%E5%88%B0%20ERR_CONNECTION_REFUSED.png)
我成功安装了 brew formula httpd,并且已经将它用作我的 apache 服务器一段时间了。直到最近才出现问题。
我尝试在终端中运行 httpd,并得到了以下响应:
httpd: Syntax error on line 1 of /usr/local/etc/httpd/httpd.conf:
Syntax error on line 117 of /usr/local/etc/httpd/modules.conf:
Cannot load /usr/local/opt/php/lib/httpd/modules/libphp7.so into server: dlopen(/usr/local/opt/php/lib/httpd/modules/libphp7.so, 10):
Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.63.dylib
Referenced from: /usr/local/opt/php/lib/httpd/modules/libphp7.so\n
Reason: image not found
我该如何解决这个问题?
答案1
公式存在问题[电子邮件保护],所以我就跑了。brew reinstall [email protected]
我使用的一个要点。
https://gist.github.com/hgrimelid/703691ab48c4a4d0537cfe835b4d55a6