sudo apachectl -k start 在 MacOS HIGH SIERRA 上不起作用
sudo apachectl -k start not work on MacOS HIGH SIERRA
我已经 运行 sudo apachectl -k start 了,但是没有创建 httpd 进程。
当我在终端上 运行 apachectl configtest 时,它显示 Syntax OK。
另外我 运行 其他命令:
sudo apachectl -k restart => httpd not running, trying to start.
sudo apachectl -k stop => httpd (pid 1369?) not running
关于 apache error_log 文件的更多信息:LogLevel debug
[Mon Nov 27 01:15:00.390588 2017] [unique_id:info] [pid 1572] AH01566: using ip addr 192.***.*.**
[Mon Nov 27 01:15:01.004998 2017] [ssl:info] [pid 1572] AH01887: Init: Initializing (virtual) servers for SSL
[Mon Nov 27 01:15:01.008629 2017] [ssl:info] [pid 1572] AH01876: mod_ssl/2.4.25 compiled against Server: Apache/2.4.25, Library: OpenSSL/1.0.2j
[Mon Nov 27 01:15:01.046466 2017] [unique_id:info] [pid 1574] AH01566: using ip addr 192.***.**.*
[Mon Nov 27 01:15:02.000248 2017] [ssl:warn] [pid 1574] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Mon Nov 27 01:15:02.000473 2017] [ssl:info] [pid 1574] AH01887: Init: Initializing (virtual) servers for SSL
也许您已经替换了默认值 ruby。
打开终端并输入:
sudo ln -s /System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby /usr/bin/ruby
对我有用。希望对你有帮助。
我有同样的问题,看起来 apachectl
在 High Sierra 更新后以某种方式损坏。现在我的解决方案是通过 launchctl
:
直接控制 Apache 守护进程
sudo launchctl kickstart -r system/org.apache.httpd
好吧,我刚刚使用 brew 更新了 apache。然后我再次配置了我的apache,现在一切正常。
我已经 运行 sudo apachectl -k start 了,但是没有创建 httpd 进程。 当我在终端上 运行 apachectl configtest 时,它显示 Syntax OK。 另外我 运行 其他命令:
sudo apachectl -k restart => httpd not running, trying to start.
sudo apachectl -k stop => httpd (pid 1369?) not running
关于 apache error_log 文件的更多信息:LogLevel debug
[Mon Nov 27 01:15:00.390588 2017] [unique_id:info] [pid 1572] AH01566: using ip addr 192.***.*.**
[Mon Nov 27 01:15:01.004998 2017] [ssl:info] [pid 1572] AH01887: Init: Initializing (virtual) servers for SSL
[Mon Nov 27 01:15:01.008629 2017] [ssl:info] [pid 1572] AH01876: mod_ssl/2.4.25 compiled against Server: Apache/2.4.25, Library: OpenSSL/1.0.2j
[Mon Nov 27 01:15:01.046466 2017] [unique_id:info] [pid 1574] AH01566: using ip addr 192.***.**.*
[Mon Nov 27 01:15:02.000248 2017] [ssl:warn] [pid 1574] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Mon Nov 27 01:15:02.000473 2017] [ssl:info] [pid 1574] AH01887: Init: Initializing (virtual) servers for SSL
也许您已经替换了默认值 ruby。
打开终端并输入:
sudo ln -s /System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby /usr/bin/ruby
对我有用。希望对你有帮助。
我有同样的问题,看起来 apachectl
在 High Sierra 更新后以某种方式损坏。现在我的解决方案是通过 launchctl
:
sudo launchctl kickstart -r system/org.apache.httpd
好吧,我刚刚使用 brew 更新了 apache。然后我再次配置了我的apache,现在一切正常。