编程技术

基于redis的php队列实现

安装composer composer require drcayman/queue 代码示例 use drcayman/queue/Lite; $config =['scheme'=>'tcp','host' => '127.0.0.1','port' => 6379,'database' => 15]; $lite = new Lite($config);...

在Mac上安装pecl

curl -O http://pear.php.net/go-pear.phar sudo php -d detect_unicode=0 go-pear.phar 输入1,回车,配置pear路径为:/usr/local/pear 输入4,回车,配置命令路径为:/usr/local/bin sudo pecl config-show ...