多语言区块系统详细图文搭建教程

 

服务器系统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/bb/public/vendor/webmsgsender
php start.php restart -d
php start.php stop

cd /www/wwwroot/bb/public/vendor/webmsgsender/python


python3
killall python3
cd /www/wwwroot/xxxxx/python

cd /usr/bin
python3 main.py

websocket
cd /www/wwwroot/bb
php artisan websocket:client restart


主要添加执行上面三个,下面看交易所功能在执行适合脚本

schedule
cd /www/wwwroot/xxxx
php artisan schedule:run

queue
cd /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 robot 2


delete from users_wallet where currency not in (select id from currency)



SQLSTATE[42S22]: Column not found: 1054 Unknown column 'currency_name' in 'field list' (SQL: update `auto_robot` set `currency_name` = TBPL, `legal_name` = USDT where `id` = 33)|||66

 

 

参考链接

 

https://www.weixiaolive.com/post/530.html

posted @ 2022-10-10 08:29  土豆哥  阅读(561)  评论(0编辑  收藏  举报