当前位置:首页 > 技术分享 > 正文内容

php_swoole_server_rshutdown() (ERRNO 503): 解决办法

admin3年前 (2022-11-03)技术分享7054

设置ulimit -n 65536


ulimit 设置

ulimit -n 要调整为 100000 甚至更大。 命令行下执行 ulimit -n 100000 即可修改。如果不能修改,需要设置 /etc/security/limits.conf,加入

* soft nofile 262140 * hard nofile 262140 root soft nofile 262140 root hard nofile 262140 * soft core unlimited * hard core unlimited root soft core unlimited root hard core unlimitedCopy to clipboardErrorCopied

注意,修改 limits.conf 文件后,需要重启系统生效

后台运行

nohup php server.php &     或者   screen php server.php


建议第一个

扫描二维码推送至手机访问。

版权声明:本文由小刚刚技术博客发布,如需转载请注明出处。

本文链接:http://blog.bitefu.net/post/445.html

标签: phpswoole
分享给朋友:

相关文章

[Windows] Adobe Flash Player 34.0.0.92及可用版修改方法

[Windows] Adobe Flash Player 34.0.0.92及可用版修改方法

随着 2021 年的到来,Adobe Flash Player 也迎来了告别,Adobe 在 2020 年 12 月 31 日后将不再支持 Flash Player。其实早在 2017 年,Adobe 公司就已宣布,计划在 2020 年底逐...

抢先体验太阳谷!20H1、20H2、21H1替换“Dev版新图标”

尽量不要替换shell32.dll.mun和zipfldr.dll.mun,这两老哥可能会带来无法预测的风险!不解除被替换文件的硬链接,已确定会导致无法安装质量更新!(详见H大测评)单替换imageres.dll.mun新图标覆盖率基本可达...

Bootstrap动态切换主题(通用)

bootstrap有个网站叫做bootswatch,其中已经设计了一些很美的主题:要想使用也是很简单的,只需要下载其中的bootstrap.css或者bootstrap.min.css并覆盖到自己项目的对应文件就行了。如果你想动态切换的话,...

android studio 配置HTTP proxy 在线更新镜像服务器 可用阿里云镜像

android studio 配置HTTP proxy 在线更新镜像服务器 可用阿里云镜像

Android SDK在线更新镜像服务器南阳理工学院镜像服务器地址:mirror.nyist.edu.cn 端口:80中国科学院开源协会镜像站地址:IPV4/IPV6: mirrors.opencas.cn 端口:80IPV4/IPV6:...

centos MQTT安装和php使用mosquitto的实例

php安装mqtt  扩展yum install -y php-develyum install -y mosquitto-devel/usr/local/php/bin/pecl install Mosquitto-alpha&...

Git冲突:Please commit your changes or stash them before you merge

Git冲突:Please commit your changes or stash them before you merge

用git pull来更新代码的时候,遇到了下面的问题:error: Your local changes to the following files woul...

发表评论

访客

看不清,换一张

◎欢迎参与讨论,请在这里发表您的看法和观点。