这套源码算是比较完整的交易所了,双端都是新二开的UI
PC是vue源码,手机端是uinapp源码
系统新增了三级分销功能,这套貌似不支持平台币
教程:服务器系统CentOS 7.6 安装宝塔 (请勿用官方宝塔)
破解版宝塔:https://www.hostcli.com/
nginx php7.2 mysql5.7 安装php扩展 fileinfo opcache redis imagemagick imap intl xsl Swoole4并且禁用所有函数
上传文件 导入数据库文件
修改根目录.evn 数据库连接 IP地址
修改bootstrap/cache/config.php 数据库地址 IP地址 网站目录地址
设置网站运行目录public 伪静态 laravel5
nginx站点配置反向代理
location ~/(wss|socket.io) {
# 此处改为 socket.io 后端的 ip 和端⼝即可
proxy_pass http://127.0.0.1:2000;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
}
放行所有端口
安装es 网站根目录运行终端命令执行下列命令
1.
yum install java -y
2.
----------------------------es--------------------------
安装es
rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
vi /etc/yum.repos.d/elasticsearch.repo
3.插入下面代码
[elasticsearch-7.x]
name=Elasticsearch repository for 7.x packages
baseurl=https://artifacts.elastic.co/packages/7.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md
shift+: 输入wq回车保存
5.
yum install elasticsearch
6.启动
service elasticsearch start
------------------------------------------------------
安装python3和扩展
yum install python3 -y
pip3 install websocket-client redis
php artisan config:cache
------------------------------------------------------
计划任务添加脚本 然后执行
k线依赖
webmsgsender
cd /www/wwwroot/xxxxx/public/vendor/webmsgsender
php start.php restart -d
python3
killall python3
cd /www/wwwroot/xxxxx/python
python3 main.py
websocket
cd /www/wwwroot/xxxxx
php artisan websocket:client restart
期权平仓
链接/api/pingchang 一分钟
主要添加执行上面三个,下面看交易所功能在执行适合脚本
schedule
cd /www/wwwroot/xxxx
php artisan schedule:run
queuecd /www/wwwroot/xxxx
php artisan queue:work
auto_change
cd /www/wwwroot/xxxx
php artisan auto_change start
平台币依赖
get_kline_data_weekly
cd /www/wwwroot/xxxx
php artisan get_kline_data_weekly
get_kline_data_daily
cd /www/wwwroot/xxxx
php artisan get_kline_data_daily
get_kline_data_hourly
cd /www/wwwroot/xxxx
php artisan get_kline_data_hourly
get_kline_data_monthly
cd /www/wwwroot/xxxx
php artisan get_kline_data_monthly
get_kline_data_thirtymin
cd /www/wwwroot/xxxx
php artisan get_kline_data_thirtymin
get_kline_data_fifteenmin
cd /www/wwwroot/xxxx
php artisan get_kline_data_fifteenmin
get_kline_data_fivemin
cd /www/wwwroot/xxxx
php artisan get_kline_data_fivemin
平台币更新
robot
cd /www/wwwroot/xxxx
php artisan updater 8
机器人
robot
cd /www/wwwroot/xxxx
php artisan robot 2
delete from users_wallet where currency not in (select id from currency)
如果你没找到喜欢的源码,请联系站长吧 @fuymw http://28h0.com/ 分享本站精品源码