现在的位置: 首页 > 服务器相关 > linux类 > 服务器相关 > 正文

linux下httpd 无法启动/etc/httpd/logs/error_log.

2012年01月09日 linux类, 服务器相关 ⁄ 共 249字 ⁄ 字号 暂无评论 ⁄ 阅读 699 views 次

运行命令:service httpd start,无法启动httpd,错误提示如下:
Starting httpd: (2)No such file or directory: httpd: could not open error log file /etc/httpd/logs/error_log.
Unable to open logs

 

执行命令:

touch /etc/httpd/logs/error_log

chown apache:apache /etc/httpd/logs/error_log

把所有者和组都改为apache

就可以了

给我留言

留言无头像?


×