V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
nonozone
V2EX  ›  问与答

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

  •  
  •   nonozone · 2012-10-24 10:06:45 +08:00 · 3364 次点击
    这是一个创建于 4238 天前的主题,其中的信息可能已经有所发展或是发生改变。
    刚才要给服务器安装eAccelerator,结果按照这个教程 http://wangye.org/blog/archives/241/ 操作之后,重启apache,出现以下提示

    /etc/init.d/apache2 restart
    Restarting web server: htcacheclean apache2.
    然后网站就无法访问了,要如何处理?
    4 条回复    1970-01-01 08:00:00 +08:00
    Livid
        1
    Livid  
    MOD
       2012-10-24 10:07:46 +08:00
    看一下 error_log 里的提示。
    nonozone
        2
    nonozone  
    OP
       2012-10-24 10:12:40 +08:00
    log提示 PHP Warning: [eAccelerator] Can not create shared memory area in Unknown on line 0
    nonozone
        3
    nonozone  
    OP
       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
        4
    nonozone  
    OP
       2012-10-24 10:23:11 +08:00
    现在发现是我吧eaccelerator.shm_size="16"这里的数值弄太大了,想当然的觉得越大越好,自己弄成了64,超过系统核心允许的最大数值?改回16现在网站可以访问了。

    但是重启apache的时候,显示的是
    Restarting web server: htcacheclean apache2 ... waiting .
    这个正常不?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2525 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 13:33 · PVG 21:33 · LAX 06:33 · JFK 09:33
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.