04 2020 档案
摘要:后台启动文件nohup /web/a/sh/crontab.sh & 查看端口 ps -aux | grep crontab后台启动php文件php start.php start -d crontab.sh文件 #!/bin/bash step=1 #间隔的秒数,不能大于60 for (( i =
阅读全文
摘要:type list为set类型向list中添加1和2,3 redis()->sAdd('list', '1');redis()->sAdd('list', '2'); redis()->sAdd('list', '3'); 向list中减去2 redis()->sRem('list', '2');显
阅读全文
摘要:1.下载tp框架,版本5.1.35 ,下载think-swoole,版本2.0.17 composer require topthink/think-swoole=2.0.* 2.在config下书写swoole.php <?php use think\facade\Env; // + // | S
阅读全文
摘要:1.安装redis ,并启动redis服务 2.安装php redis 拓展 3.在redis.php中添加配置 <?php return [ 'host' => '127.0.0.1', 'port' => '6379', ]; 在根目录extend里新建redis目录,并在其里面建Redis.p
阅读全文
摘要:1.下载redis https://redis.io/download 2.上传至服务器并解压后进入目录make tar xzf redis-5.0.8.tar.gz cd redis-5.0.8 make 3.进入src目录make install cd src make install ————
阅读全文
摘要:1.如图所示错误 查看版本 4.3的版本移除所有异步模块, 分离异步扩展到 async-ext 移除的异步模块如下: 从4.3版本开始需要额外安装swoole-async扩展才能使用异步模块
阅读全文
摘要:1.提交全部改动 git add -A 2.提交到自己的分支 git commit -m '注释' 3.提交到主分支 git push -u origin
阅读全文
摘要:解决办法:出现该情况是由于c++编译器的相关package没有安装,在终端上执行: # yum install glibc-headers # yum install gcc-c++
阅读全文
摘要:1.下载swoole; cd /usr/local/downloads/git clone https://gitee.com/swoole/swoole.git 2.编译安装 先 yum install autoconf cd swoole//usr/local/php/bin/phpize ./
阅读全文