laravel框架根目录下运行:php artisan make:command RedisSubscribe //建立命令文件php
而后能够在laravel框架根目录下调用artisan运行这个命令:php artisan redis:subscribelaravel