php start times wrong situation, presumably many friends have encountered it, the following is the specific solution
The code is as follows: [ROOT@ABC lnmp]# service php-fpm start starting PHP-FPM eaccelerator:could not allocate 67108864, the Maximum size The kernel allows is 33554432 bytes. Lower The amount of memory request or increase the limit in/proc/sys/kernel/shmmax. [04-dec-2013 19:06:44] NOTICE: PHP message:php Warning: [Eaccelerator] Can not create shared memory area in Unknown on line 0 [04-dec-2013 19:06:4 4] notice:php message:php Fatal error:unable to start eaccelerator module in Unknown on line 0 failed   ; Code as follows: [Root@abc lnmp]# vi/etc/sysctl.conf # Kernel sysctl configuration file for Red Hat linux # # for binary values, 0 are disabled, 1 is enabled. Sysctl (8) and # sysctl.conf (5) For more details. # Controls IP packet forwarding Net.ipv4.ip_forward = 0 # Controls Source route verification net.ipv4.conf.default.rp_filter = 1 # does not accept source Rou ting Net.ipv4.conf.default.accept_sourCe_route = 0 # Controls The System Request debugging functionality of the kernel KERNEL.SYSRQ = 0 # Cont Rols whether core dumps would append the PID to the core filename. # useful for debugging multi-threaded . kernel.core_uses_pid = 1 # Controls The use of TCP syncookies net.ipv4.tcp_syncookies = 1 # Disa ble netfilter on bridges. net.bridge.bridge-nf-call-ip6tables = 0 Net.bridge.bridge-nf-call-iptables = 0& nbsp Net.bridge.bridge-nf-call-arptables = 0 fs.file-max=65535 Net.ipv4.tcp_max_syn_backlog = 65536 Net.core.netdev_max_backlog = 32768 Net.core.somaxconn = 32768 Net.core.wmem_default = 8388608 Net.core.rmem_default = 8388608 Net.core.rmem_max = 16777216 Net.core.wmem_max = 16777216 Net.ipv4.tcp_timestamps = 0 Net.ipv4.tcp_synack_retries = 2 net.ipv4.tcp_syn_retries = 2 net.ipv4.tcp _tw_recycle = 1 #net. Ipv4.tcp_tw_len = 1 net.iPv4.tcp_tw_reuse = 1 Net.ipv4.tcp_mem = 94500000 915000000 927000000 Net.ipv4.tcp_max_orphans = 3276800 # Time_out wait time #net. ipv4.tcp_fin_timeout = 30 #net. ipv4.tcp_keepalive_time = 120 Net.ipv4.ip_ Local_port_range = 1024 65535 Kernel.shmmax = 128000000 Add Last word Kernel.shmmax = 128000000 then apply sys The ctl-p code is as follows: [ROOT@ABC lnmp]# service php-fpm start starting php-fpm done [root@abc lnmp]#/USR/BIN/MEMC achedstart