紧急求助,关于Restarting web server: htcacheclean apache2.的问题

2012-10-24 10:06:45 +08:00
 nonozone
刚才要给服务器安装eAccelerator,结果按照这个教程 http://wangye.org/blog/archives/241/ 操作之后,重启apache,出现以下提示

/etc/init.d/apache2 restart
Restarting web server: htcacheclean apache2.
然后网站就无法访问了,要如何处理?
3374 次点击
所在节点    问与答
4 条回复
Livid
2012-10-24 10:07:46 +08:00
看一下 error_log 里的提示。
nonozone
2012-10-24 10:12:40 +08:00
log提示 PHP Warning: [eAccelerator] Can not create shared memory area in Unknown on line 0
nonozone
2012-10-24 10:13:38 +08:00
@Livid 完整的提示

[Wed Oct 24 10:04:28 2012] [notice] caught SIGTERM, shutting down
1499 eAccelerator: Could not allocate 134217728 bytes, the maximum size the kernel allows is 33554432 bytes. Lower the amount of memory requ est or increase the limit in /proc/sys/kernel/shmmax.
1500 PHP Warning: [eAccelerator] Can not create shared memory area in Unknown on line 0
1501 PHP Fatal error: Unable to start eAccelerator module in Unknown on line 0
1502 eAccelerator: Could not allocate 134217728 bytes, the maximum size the kernel allows is 33554432 bytes. Lower the amount of memory requ est or increase the limit in /proc/sys/kernel/shmmax.
1503 PHP Warning: [eAccelerator] Can not create shared memory area in Unknown on line 0
1504 PHP Fatal error: Unable to start eAccelerator module in Unknown on line 0
nonozone
2012-10-24 10:23:11 +08:00
现在发现是我吧eaccelerator.shm_size="16"这里的数值弄太大了,想当然的觉得越大越好,自己弄成了64,超过系统核心允许的最大数值?改回16现在网站可以访问了。

但是重启apache的时候,显示的是
Restarting web server: htcacheclean apache2 ... waiting .
这个正常不?

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/50748

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX