webman使用指南

webman怎么安装redis?

文档:https://www.workerman.net/doc/webman/db/redis.html
解除禁用函数:pcntl_signalpcntl_forkpcntl_signal_dispatchpcntl_alarmexec

webman在宝塔里如何配置启动?

分享:https://www.workerman.net/a/1495
注意事项:配置反代后,也要配合使用3楼进程管理器来方便管理奥~
tips:可以在“日志”处查看webman的打印~

webman安装插件使用composer需要解除的禁用函数

文档:https://www.workerman.net/doc/webman/others/disable-function-check.html

  1. webman使用定时器Timer
    定时器Timer是workerman的功能,但webman是基于workerman产生的http框架,所以完全可以无缝使用
    文档:https://www.workerman.net/doc/workerman/timer/add.html

    使用时的注意事项:https://www.workerman.net/doc/workerman/timer/notice.html
    特别是定时器的使用位置、阻塞相关
    tips:一个worker实例有1个主进程,4个子进程,一个子进程对应一个Timer定时器,编号依次为:0,1,2,3

workerman启动失败

具体体现为:unable to connect to tcp://127.0.0.1:7272 (Address already in use)
文档:https://www.workerman.net/doc/workerman/faq/workerman-start-fail.html

webman安装数据库

具体体现为:**Error: Class 'Illuminate\Database\Capsule\Manager' not found **
文档:https://www.workerman.net/doc/webman/db/tutorial.html

posted @ 2024-06-29 10:24  Anbin啊  阅读(107)  评论(0)    收藏  举报