摘要: public function handle($data){ for($i = 0; $i < 60; $i++) { $this->logic($data); sleep(1); } } 阅读全文
posted @ 2022-11-21 14:59 冯元春 阅读(163) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/andreamwu/p/14723420.html 阅读全文
posted @ 2022-08-03 17:04 冯元春 阅读(9) 评论(0) 推荐(0)
摘要: $cosClient = new Client(array( 'region' => env('Q_CLOUD.region'), 'schema' => 'http', 'credentials' => array( 'secretId' => env('Q_CLOUD.SECRETID'), ' 阅读全文
posted @ 2022-07-18 15:19 冯元春 阅读(123) 评论(0) 推荐(0)
摘要: ps -ef|grep redis 启动 ./redis-server ../redis.conf 关闭 redis-cli -a password shutdown 阅读全文
posted @ 2022-07-15 18:47 冯元春 阅读(54) 评论(0) 推荐(0)
摘要: [Unit] Description=workerman守护进程 [Service] WorkingDirectory=/var/workerman ExecStart=php /var/workerman/start.php start -d ExecRestart=php /var/worker 阅读全文
posted @ 2022-07-15 17:57 冯元春 阅读(193) 评论(0) 推荐(0)
摘要: /** * session_id设置 * @access public * @param string $id session_id * @return void */ public function setId($id = null): void { $this->id = is_string($ 阅读全文
posted @ 2022-07-01 11:11 冯元春 阅读(737) 评论(0) 推荐(0)
摘要: docker停止 sudo systemctl stop docker.socket 无法停止 sudo systemctl stop docker 开始 sudo systemctl start docker docker状态 sudo systemctl status docker 版本 doc 阅读全文
posted @ 2022-06-14 13:46 冯元春 阅读(99) 评论(0) 推荐(0)
摘要: git config core.filemode false 阅读全文
posted @ 2022-06-10 17:38 冯元春 阅读(43) 评论(0) 推荐(0)
摘要: sudo add-apt-repository -y ppa:ondrej/php sudo apt update sudo apt install php7.3 sudo update-alternatives --set php /usr/bin/php7.3 选择php版本 sudo upda 阅读全文
posted @ 2022-06-10 14:57 冯元春 阅读(55) 评论(0) 推荐(0)
摘要: 原文 The fourth in our series of useful programs counts lines, words, and characters, with the loose definition that a word is any sequence of character 阅读全文
posted @ 2022-02-24 10:49 冯元春 阅读(39) 评论(0) 推荐(0)