此套源碼跟市面上的交易所比較,這套源碼算是前後端都是全新開發的了
前後端都是全開源的,前端均爲html開發,後端是TP框架 這套系統功能很全了,ui也不錯,白天黑夜
12月源碼補全附帶完整教程說明,非市面殘缺版本,市面上得都是少數據庫少文件,之能正常搭建沒法啓動K線
教程:
要安裝es,php版本用7.2的
fileinfo和redis要安裝
開放9200 2345 2348 1236端口
那個啓動行情的腳本,在根目錄裏的init.sh
修改數據庫 config/database.php
新建倆個數據庫并導入
運行目錄public 僞靜态thinkphp
nginx站點配置那裏的
location ~/(wss|socket.io) {
# 此處改爲 socket.io 後端的 ip 和端⼝即可
proxy_pass http://127.0.0.1:2348;
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
rpm –import https://artifacts.elastic.co/GPG-KEY-elasticsearch
vi /etc/yum.repos.d/elasticsearch.repo
插入下面代碼
[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
這個是安裝es的
修改文件
\\static\\mobile\\js\\websocket.js
/static/index/js/websocket.js
參考修改修改
if(site_type == ‘test’){
var SOCKET_URL = local_socket;
}else if(site_type == ‘online’){
var SOCKET_URL = api_socket;
var SOCKET_URL = ‘wss://域名/wss/socket.io’;
}
後台系統配置那裏,要配置一下域名和wss的
就隻需要配置線上的就可以
後台/fox admin 123456
自行換下密鑰:ed696eb5bba1f7460585cc6975e6cf9bf24903dd