nonozone
V2EX  ›  问与答

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

  •  
  •   nonozone · Oct 24, 2012 · 3876 views
    This topic created in 4975 days ago, the information mentioned may be changed or developed.
    刚才要给服务器安装eAccelerator,结果按照这个教程 http://wangye.org/blog/archives/241/ 操作之后,重启apache,出现以下提示

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

    但是重启apache的时候,显示的是
    Restarting web server: htcacheclean apache2 ... waiting .
    这个正常不?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3127 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 13:36 · PVG 21:36 · LAX 06:36 · JFK 09:36
    ♥ Do have faith in what you're doing.