PHP start error How to solve _php tutorial

Source: Internet
Author: User
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/710586.html www.bkjia.com true http://www.bkjia.com/PHPjc/710586.html techarticle Copy the code as follows: [ROOT@ABC lnmp]# service php-fpm start starting PHP-FPM eaccelerator:could not allocate 67108864 bytes, th e Maximum size The kernel allows is 33554432 b ...

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.