多语言区块系统详细图文搭建教程
服务器系统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 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
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
2021-10-10 chrome94+版本出现的跨域问题及解决方案
2015-10-10 Lucene 全文检索 Lucene的使用