Skip to content
中国天妖 edited this page Oct 12, 2017 · 1 revision

安装:

一、克隆源码到本地:git clone https://github.com/tiayo/notification.git

二、composer安装依赖包:composer install

三、配置crontab:

运行:crontab -e

将:{ site }替换为您的路径

          • php /{ site }/artisan task:check
          • sleep 10; php /{ site }/artisan task:check
          • sleep 20; php /{ site }/artisan task:check
          • sleep 30; php /{ site }/artisan task:check
          • sleep 40; php /{ site }/artisan task:check
          • sleep 50; php /{ site }/artisan task:check 10 0 * * * chmod 777 -R /{ site }/storage/logs
          • sleep 50; php /{ site }/artisan payment:check

四、配置supervisor:

[program:laravel-worker] process_name=%(program_name)s_%(process_num)02d command=php /{ site }/artisan queue:work redis --sleep=3 --tries=3 autostart=true autorestart=true user=root numprocs=10 redirect_stderr=true stdout_logfile= /var/log/supervisor/supervisord.log

Clone this wiki locally