环境:

  • mysql 8.0
  • php 7.4

wget https://getcomposer.org/installer -O composer.phar
php composer.phar
php composer.phar install

cp config/.config.example.php config/.config.php
cp config/appprofile.example.php config/appprofile.php

chmod -R 755 网站目录
chown -R www:www 网站目录

导入SQL

php xcat Tool importAllSettings

php vendor/bin/phinx migrate

php xcat User resetTraffic
php xcat ClientDownload
php xcat User createAdmin
php xcat Tool initQQWry

每日任务 (必须)
任务类型:Shell 脚本
任务名称:自行填写
执行周期:每天 0 小时 0 分钟
脚本内容:php /www/wwwroot/你的网站目录/xcat Job DailyJob

检测任务 (必须)
任务类型:Shell 脚本
任务名称:自行填写
执行周期:N分钟 1 分钟
脚本内容:php /www/wwwroot/你的网站目录/xcat Job CheckJob

用户账户相关任务 (必须)
任务类型:Shell 脚本
任务名称:自行填写
执行周期:每小时
脚本内容:php /www/wwwroot/你的网站目录/xcat Job UserJob

检查用户会员等级过期任务 (必须)
任务类型:Shell 脚本
任务名称:自行填写
执行周期:每分钟
脚本内容:php /www/wwwroot/你的网站目录/xcat Job CheckUserClassExpire

检查账号过期任务 (必须)
任务类型:Shell 脚本
任务名称:自行填写
执行周期:每小时
脚本内容:php /www/wwwroot/你的网站目录/xcat Job CheckUserExpire

定时检测邮件队列 (必须)
任务类型:Shell 脚本
任务名称:自行填写
执行周期:N分钟 1 分钟
脚本内容:php /www/wwwroot/你的网站目录/xcat Job SendMail