Window 下子系统ubuntu安装apache

$ sudo apt-get update

$ sudo apt-get install apache2

安装完成后运行: $ sudo /etc/init.d/apache2 restart出现错误:

[core:warn] [pid 190:tid 139972936206208] (92)Protocol not available: AH00076: Failed to enable APR_TCP_DEFER_ACCEPT

解决办法:

$ sudo vim /etc/apache2/apache2.conf

在文件最后加上

ServerName localhost
AcceptFilter https none

AcceptFilter http none

保存重启,成功了。



猜你喜欢

转载自blog.csdn.net/cjyi885/article/details/80060744
今日推荐