在ubuntu上Apache2重启失败

Vin*_*rni 5 ubuntu apache2

当我试图从ubuntu重新启动apache服务器时,它显示为失败...我输入命令为,$ service apache2 restart

表明,

  • 重启web服务器apache2 [fail]

当我在日志文件中检查时,在var/apache2/errorlog中提供的描述是,

[mpm_prefork:notice] [pid 1263] AH00163:Apache/2.4.7(Ubuntu)PHP/5.5.9-1ubuntu4.5配置 - 恢复正常操作

Nim*_*ima 7

这很可能是因为您在运行命令时没有使用sudo,请尝试:

sudo service apache2 restart
Run Code Online (Sandbox Code Playgroud)