linux apache2开启错误

1.打印错误

fj@fj-PC:/etc$ sudo systemctl status apache2
 显示打印结果
● apache2.service - The Apache HTTP Server
   Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Tue 2018-10-30 16:13:17 CST; 1min 25s ago
  Process: 7719 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)

10月 30 16:13:17 fj-PC systemd[1]: Starting The Apache HTTP Server...
10月 30 16:13:17 fj-PC apachectl[7719]: AH00526: Syntax error on line 230 of /etc/apache2/apache2.conf:
10月 30 16:13:17 fj-PC apachectl[7719]: Invalid command 'AddDefaultCharest', perhaps misspelled or defined by a module not included in the server configuration
10月 30 16:13:17 fj-PC apachectl[7719]: Action 'start' failed.
10月 30 16:13:17 fj-PC apachectl[7719]: The Apache error log may have more information.
10月 30 16:13:17 fj-PC systemd[1]: apache2.service: Control process exited, code=exited status=1
10月 30 16:13:17 fj-PC systemd[1]: apache2.service: Failed with result 'exit-code'.
10月 30 16:13:17 fj-PC systemd[1]: Failed to start The Apache HTTP Server.

错误:

10月 30 16:13:17 fj-PC apachectl[7719]: Invalid command 'AddDefaultCharest', perhaps misspelled or defined by a module not

修改设置:

sudo vim /etc/apache2/apache2.conf 

启动apache:

sudo systemctl restart apache2

查看是否还有错误:

sudo systemctl status apache2
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值