PHP Startup error
Copy CodeThe code is as follows:
[ROOT@ABC lnmp]# Service php-fpm start
Starting PHP-FPM eaccelerator:could not allocate 67108864 bytes, the maximum size of 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:44] notice:php message:php Fatal error:unable to start eaccelerator module in Unknown on line 0
Failed
Copy CodeThe code is 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. See 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
# do not accept source routing
Net.ipv4.conf.default.accept_source_route = 0
# Controls The System Request debugging functionality of the kernel
KERNEL.SYSRQ = 0
# Controls Whether core dumps would append the PID to the core filename.
# Useful for debugging multi-threaded applications.
Kernel.core_uses_pid = 1
# Controls The use of TCP syncookies
Net.ipv4.tcp_syncookies = 1
# Disable NetFilter on bridges.
Net.bridge.bridge-nf-call-ip6tables = 0
Net.bridge.bridge-nf-call-iptables = 0
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
# wait time after Time_out
#net. ipv4.tcp_fin_timeout = 30
#net. Ipv4.tcp_keepalive_time = 120
Net.ipv4.ip_local_port_range = 1024 65535
Kernel.shmmax = 128000000
Plus the last word Kernel.shmmax = 128000000
Then apply Sysctl-p
Copy CodeThe code is as follows:
[ROOT@ABC lnmp]# Service php-fpm start
Starting php-fpm Done
[Root@abc lnmp]#/usr/bin/memcachedstart
http://www.bkjia.com/PHPjc/728108.html www.bkjia.com true http://www.bkjia.com/PHPjc/728108.html techarticle PHP Startup error Copy code code as follows: [ROOT@ABC lnmp]# service php-fpm start starting PHP-FPM eaccelerator:could not allocate 67108864 Bytes, the maximum size the kernel allo ...