升级到优胜美地 - Apache 配置 - 无效命令"用户"



当我升级到Yosemite时,我得到了这个:

$ apachectl configtest
AH00526: Syntax error on line 102 of /private/etc/apache2/httpd.conf:
Invalid command 'User', perhaps misspelled or defined by a module not included in the server configuration

在102线上:

User _www

有什么建议吗?

在apachehttpd.conf中添加以下行(默认路径:/private/etc/apache2/httpd.conf)

LoadModule unixd_module  libexec/apache2/mod_unixd.so

最新更新