php启动时报错的简单解决⽅法
php启动报错
复制代码代码如下:
[root@abclnmp]#rvicephp-fpmstart
Startingphp-fpmeAccelerator:Couldnotallocate67108864bytes,themaximumsizethekernelallowsis33554432bytes.
Lowertheamountofmemoryrequestorincreathelimitin/proc/sys/kernel/shmmax.
[04-Dec-201319:06:44]NOTICE:PHPmessage:PHPWarning:[eAccelerator]Cannotcreatesharedmemoryareain
Unknownonline0
[04-Dec-201319:06:44]NOTICE:PHPmessage:PHPFatalerror:UnabletostarteAcceleratormoduleinUnknownonline0
failed
复制代码代码如下:
[root@abclnmp]#vi/etc/
#KernelsysctlconfigurationfileforRedHatLinux
##Forbinaryvalues,0isdisabled,ctl(8)and
#(5)formoredetails.
#ControlsIPpacketforwarding
_forward=0
#Controlssourcerouteverification
_filter=1
#Donotacceptsourcerouting
_source_route=0
#ControlstheSystemRequestdebuggingfunctionalityofthekernel
=0
#ControlswhethercoredumpswillappendthePIDtothecorefilename.
#Ufulfordebuggingmulti-threadedapplications.
_us_pid=1
#ControlstheuofTCPsyncookies
_syncookies=1
#Disablenetfilteronbridges.
-nf-call-ip6tables=0
-nf-call-iptables=0
-nf-call-arptables=0
-max=65535
_max_syn_backlog=65536
_max_backlog=32768
onn=32768
_default=8388608
_default=8388608
_max=16777216
_max=16777216
_timestamps=0
_synack_retries=2
_syn_retries=2
_tw_recycle=1
#_tw_len=1
_tw_reu=1
_mem=945
_max_orphans=3276800
#TIME_OUT后等待时间
#_fin_timeout=30
#_keepalive_time=120
_local_port_range=102465535
=128000000
加上最后⼀句话=128000000
然后应⽤sysctl-p
复制代码代码如下:
[root@abclnmp]#rvicephp-fpmstart
Startingphp-fpmdone
[root@abclnmp]#/usr/bin/memcachedstart
本文发布于:2022-12-27 16:24:06,感谢您对本站的认可!
本文链接:http://www.wtabcd.cn/fanwen/fan/90/41360.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |