免费注册 查看新帖 |

Chinaunix

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

[Web] apache2.2 启动问题:apr_thread_create: unable to create worker thread [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-11-21 11:45 |只看该作者 |倒序浏览
大家好:

环境:

1、系统: rhel 5.1  2.6.18-53.el5

2、apache 2.2.6

现装完系统后把其他服务器上的 usr 全移植过来,现在myql,可以工作了。

问题:apache 启动后自动停止了,

报错:error_log:

[notice] Apache/2.2.6 (Unix) PHP/5.2.5 configured -- resuming normal operations
[alert] (11)Resource temporarily unavailable: apr_thread_create: unable to create worker thread
[alert] (11)Resource temporarily unavailable: apr_thread_create: unable to create worker thread
Error in my_thread_global_end(): 1 threads didn't exit
[notice] child pid 9849 exit signal Segmentation fault (11)
[alert] No active workers found... Apache is exiting!


请教这是什么问题,在线等,你们回复。谢谢!

论坛徽章:
5
2015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:53:172015亚冠之水原三星
日期:2015-06-02 16:34:202015年亚冠纪念徽章
日期:2015-10-19 18:13:37程序设计版块每日发帖之星
日期:2015-11-08 06:20:00
2 [报告]
发表于 2008-11-21 15:16 |只看该作者
重新安装一个吧,

论坛徽章:
5
2015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:53:172015亚冠之水原三星
日期:2015-06-02 16:34:202015年亚冠纪念徽章
日期:2015-10-19 18:13:37程序设计版块每日发帖之星
日期:2015-11-08 06:20:00
3 [报告]
发表于 2008-11-21 15:17 |只看该作者
原来的配置文件还能用

论坛徽章:
0
4 [报告]
发表于 2009-06-15 16:34 |只看该作者
同样问题:

环境 :centos 5.3  apahe 2.2.9 / 11(两个版本) php5.2.9

apache  配置环境:

安装apache

添加apache的用户
groupadd -g 48 apache
useradd -g apache -M -s /sbin/nologin -u 48 apache

    tar -xzvf httpd-2.2.11.tar.gz
cd httpd-2.2.11
./configure --prefix=/usr/local/apache --enable-so --enable-rewrite --enable-deflate --libdir=/usr/local/lib --with-mpm=worker
      
make
make install
cd /usr/local/apache/conf
修改httpd.conf,
        User apche
Group apache
ServerName ww.test.com
DocumentRoot /opt/test
DirectoryIndex index.php index.htm index.html  
Options FollowSymLinks
AllowOverride all
设置默认语言为中文DefaultLanguage zh-CN
<Directory />
    Options FollowSymLinks
    AllowOverride All
</Directory>
DeflateFilterNote ratio
AddOutputFilterByType DEFLATE text/*
AddOutputFilterByType DEFLATE application/ms* application/vnd* application/postscript


启动apache 提示:

已启动就[root@nfs2 soft]#  tail -f /usr/local/apache/logs/error_log
[Mon Jun 15 23:48:57 2009] [alert] (11)Resource temporarily unavailable: apr_thread_create: unable to create worker thread
[Mon Jun 15 23:48:57 2009] [alert] (11)Resource temporarily unavailable: apr_thread_create: unable to create worker thread
[Mon Jun 15 23:48:57 2009] [alert] (11)Resource temporarily unavailable: setuid: unable to change to uid: 2
[Mon Jun 15 23:48:57 2009] [notice] Apache/2.2.11(Unix) configured -- resuming normal operations
[Mon Jun 15 23:48:57 2009] [alert] Child 12464 returned a Fatal error... Apache is exiting!


cat /etc/passwd

apache:48:48::/home/apache:/sbin/nologin

装了好几次都是 一样的提示。朋友帮忙都说是,权限问题 但还是不确定那个目录文件的 权限。

希望高手指点!

[ 本帖最后由 gron 于 2009-6-15 16:38 编辑 ]

论坛徽章:
0
5 [报告]
发表于 2009-06-15 16:59 |只看该作者
看一下是不是selinux搞的鬼

论坛徽章:
0
6 [报告]
发表于 2009-06-15 20:45 |只看该作者

回复 #5 zgbchi 的帖子

已经  disable  了,谢谢,朋友!

论坛徽章:
0
7 [报告]
发表于 2009-06-16 09:09 |只看该作者

回复 #4 gron 的帖子

发现个问题,我换prefork 模式装的时候 能正常用了!!!

论坛徽章:
2
2015年辞旧岁徽章
日期:2015-03-03 16:54:1515-16赛季CBA联赛之上海
日期:2016-05-05 09:45:14
8 [报告]
发表于 2009-06-16 09:19 |只看该作者

回复 #7 gron 的帖子

论坛徽章:
0
9 [报告]
发表于 2009-06-16 10:56 |只看该作者

回复 #8 badb0y 的帖子

就是这个问题!!!谢谢!! 朋友们!

论坛徽章:
2
2015年辞旧岁徽章
日期:2015-03-03 16:54:1515-16赛季CBA联赛之上海
日期:2016-05-05 09:45:14
10 [报告]
发表于 2009-06-16 13:49 |只看该作者

回复 #9 gron 的帖子

不客气


不知道,,你做的限止是为了防DOS?还是你在虚拟系统里面安装?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP