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

你可能感兴趣的:(apache,linux)