search
HomeBackend DevelopmentPHP Tutorialphp 启动报错的解决方法

php 启动报错的解决办法
php 启动时报错的情况,如下:

[[email protected] lnmp]# service php-fpm start Starting php-fpm eAccelerator: Could not allocate 67108864 bytes, 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 www.jbxue.com[04-Dec-2013 19:06:44] NOTICE: PHP message: PHP Fatal error: Unable to start eAccelerator module in Unknown on line 0 failed 


解决方法:
[[email protected] lnmp]# vi /etc/sysctl.conf # Kernel sysctl configuration file for Red Hat Linux # # For binary values, 0 is 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 will 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 # 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 


加上最后一句话 kernel.shmmax = 128000000
然后应用sysctl -p
[[email protected] lnmp]# service php-fpm start Starting php-fpm done [[email protected] lnmp]# /usr/bin/memcachedstart 

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
解决kernel_security_check_failure蓝屏的17种方法解决kernel_security_check_failure蓝屏的17种方法Feb 12, 2024 pm 08:51 PM

Kernelsecuritycheckfailure(内核检查失败)就是一个比较常见的停止代码类型,可蓝屏错误出现不管是什么原因都让很多的有用户们十分的苦恼,下面就让本站来为用户们来仔细的介绍一下17种解决方法吧。kernel_security_check_failure蓝屏的17种解决方法方法1:移除全部外部设备当您使用的任何外部设备与您的Windows版本不兼容时,则可能会发生Kernelsecuritycheckfailure蓝屏错误。为此,您需要在尝试重新启动计算机之前拔下全部外部设备。

解决IPv6网络访问权限问题解决IPv6网络访问权限问题Feb 18, 2024 am 11:09 AM

IPv6无网络访问权限怎么解决随着互联网的发展和智能设备的普及,我们的生活离不开网络。而IPv6作为IPv4的升级版,成为了未来互联网的重要组成部分。然而,在使用IPv6时,有时候会遇到无网络访问权限的问题。那么,如果遇到这种情况,我们应该怎么解决呢?首先,我们需要明确IPv6无网络访问权限的原因。可能的原因有很多,比如网关配置不正确、防火墙设置过于严格、网

Java API 开发中使用 Netty4 进行 TCP 通信Java API 开发中使用 Netty4 进行 TCP 通信Jun 17, 2023 pm 11:18 PM

TCP是计算机网络通信协议的一种,是一种面向连接的传输协议。在Java应用开发中,TCP通信被广泛应用于各种场景,比如客户端和服务器之间的数据传输、音视频实时传输等等。Netty4是一个高性能、高可扩展性、高性能的网络编程框架,能够优化服务器和客户端之间的数据交换过程,使其更加高效可靠。使用Netty4进行TCP通信的具体实现步骤如下:引入

python中怎么使用TCP实现对话客户端和服务器python中怎么使用TCP实现对话客户端和服务器May 17, 2023 pm 03:40 PM

TCP客户端一个使用TCP协议实现可连续对话的客户端示例代码:importsocket#客户端配置HOST='localhost'PORT=12345#创建TCP套接字并连接服务器client_socket=socket.socket(socket.AF_INET,socket.SOCK_STREAM)client_socket.connect((HOST,PORT))whileTrue:#获取用户输入message=input("请输入要发送的消息:&

如何解决电脑IPv6无法连接网络问题如何解决电脑IPv6无法连接网络问题Feb 24, 2024 pm 08:03 PM

电脑IPv6无网络访问权限怎么办近年来,随着互联网的发展,IPv6逐渐取代了IPv4成为新的互联网协议。然而,对于一些用户来说,他们可能会遇到电脑IPv6无网络访问权限的问题,导致无法正常使用网络。那么,应该如何解决这个问题呢?下面就让我们一起来了解一些解决方法。首先,我们要明确的是为什么会出现电脑IPv6无网络访问权限的问题。一般来说,这个问题可能是由于以

如何用PHP正则表达式验证输入字符串是否为正确的IPv6地址格式如何用PHP正则表达式验证输入字符串是否为正确的IPv6地址格式Jun 24, 2023 am 09:44 AM

随着互联网的发展和IPv4地址的不断减少,IPv6地址已经成为了网络通信中不可或缺的一部分。在开发网络应用时,经常需要使用到IPv6地址。为了确保输入的IPv6地址格式正确,我们可以借助PHP正则表达式进行验证。本文将通过实例的方式,讲解如何用PHP正则表达式验证输入字符串是否为正确的IPv6地址格式。IPv4与IPv6地址格式的比较在介绍如何用PHP正则表

活久见!TCP两次挥手,你见过吗?那四次握手呢?活久见!TCP两次挥手,你见过吗?那四次握手呢?Jul 24, 2023 pm 05:18 PM

那这里面提到的"面向连接",意味着需要 建立连接,使用连接,释放连接。建立连接是指我们熟知的TCP三次握手。而使用连接,则是通过一发送、一确认的形式,进行数据传输。还有就是释放连接,也就是我们常见的TCP四次挥手。

win10下如何解决ipv6网络访问权限问题win10下如何解决ipv6网络访问权限问题Jan 04, 2024 pm 05:15 PM

有不少用户发现自己在设置连接ipv6网络的时候无Internet访问限制,那么遇到这种问题该怎么解决呢,现在就给大家具体介绍一下处理方法,不清楚怎么操作的用户快来看看吧。ipv6无网络访问权限怎么解决win101、按下win+r打开运行窗口,输入“gpedit.msc”2、在新弹出来的窗口上选择“管理模板”,再点击“系统”3、双击打开之后,在新的右侧栏目中选择“Internet通信管理”,再选择右边的“Internet通信设置”4、双击打开,找到“关闭Windows网络连接状态指示器的活动测试”

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

Repo: How To Revive Teammates
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),