免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1576 | 回复: 5
打印 上一主题 下一主题

[Web] 救急!apache无法启动 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-11-12 11:45 |只看该作者 |倒序浏览
apache无法启动报错如下:
Error:  Apache has not been designed to serve pages while
        running as root.  There are known race conditions that
        will allow any local user to read any file on the system.
        If you still desire to serve pages as root then
        add -DBIG_SECURITY_HOLE to the EXTRA_CFLAGS line in your
        src/Configuration file and rebuild the server.  It is
        strongly suggested that you instead modify the User
        directive in your httpd.conf file to list a non-root
        user.
/usr/local/apache/bin/apachectl start: httpd could not be started
怎么修改啊?

论坛徽章:
0
2 [报告]
发表于 2005-11-12 11:58 |只看该作者
不能以root的权限启动,贴出你的httpd.conf看看

论坛徽章:
0
3 [报告]
发表于 2005-11-12 15:57 |只看该作者
不可能吧,不能用root用户启动?我之前一直是用root用户来启动的!

论坛徽章:
33
荣誉会员
日期:2011-11-23 16:44:17天秤座
日期:2014-08-26 16:18:20天秤座
日期:2014-08-29 10:12:18丑牛
日期:2014-08-29 16:06:45丑牛
日期:2014-09-03 10:28:58射手座
日期:2014-09-03 16:01:17寅虎
日期:2014-09-11 14:24:21天蝎座
日期:2014-09-17 08:33:55IT运维版块每日发帖之星
日期:2016-04-17 06:23:27操作系统版块每日发帖之星
日期:2016-04-18 06:20:00IT运维版块每日发帖之星
日期:2016-04-24 06:20:0015-16赛季CBA联赛之天津
日期:2016-05-06 12:46:59
4 [报告]
发表于 2005-11-12 16:59 |只看该作者
原帖由 houen 于 2005-11-12 15:57 发表
不可能吧,不能用root用户启动?我之前一直是用root用户来启动的!



apache 一直不是用 root 启动的.

论坛徽章:
0
5 [报告]
发表于 2005-11-12 18:48 |只看该作者
原帖由 q1208c 于 2005-11-12 16:59 发表



apache 一直不是用 root 启动的.


是root用户在终端运行apachectl的,

但不是以root运行.一般是apache,nobody.

论坛徽章:
1
技术图书徽章
日期:2013-12-05 23:25:45
6 [报告]
发表于 2005-11-12 18:49 |只看该作者
你去打开httpd.conf
设置
User nobody
Group nobody
然后按照常规方法启动。

如果提示用户或者组不存在,你可以建立这个用户和组的。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP