viabtc 搭建记录

viabtc 搭建记录viabtc 服务器搭建 一台 ubuntu16 的系统 workspace home test git clone https github com viabtc viabtc exchange server git viabtc 参考 https github

大家好,我是讯享网,很高兴认识大家。

viabtc服务器搭建

一台ubuntu16的系统

workspace /home/test/

git clone https://github.com/viabtc/viabtc_exchange_server.git viabtc

参考 https://github.com/djpnewton/viabtc_exchange_server/blob/ansible/provisioning/build_viaxch.yml

搭建

apt install build-essential libev-dev libmpdec-dev libjansson-dev  libmysqlclient-dev  libssl-dev

mkdir kafka

wget https://github.com/edenhill/librdkafka/archive/v0.11.0.tar.gz

./configure && make && make install

mkdir curl

wget https://curl.haxx.se/download/curl-7.55.1.tar.gz

./configure --without-ssl && make && make install

mkdir http_parser

wget https://github.com/nodejs/http-parser

make && make install

编译:make

depends/hiredis install

network

util

修改makefile:

TARGET := matchengine.exe

INCS = -I ../network -I ../utils

LIBS = -L ../utils -lutils -L ../network -lrdkafka -lnetwork -Wl,-Bstatic -lev -ljansson -lmpdec -lz -lssl -lcrypto -lhiredis -Wl,-Bdynamic -lm -lpthread -ldl -lmysqlclient

include ../makefile.inc

make matchengine, marketprice, alertcenter, readhistory, accesshttp, accwsswshave

mkdir /var/log/trade/

安装mysql

apt install maraidb

mysql -u root


讯享网

create batabase trade_log

create batabase trade_history

source sql\create_trade_history.sql

source sql\create_trade_log.sql

sh sql\init_trade_history.sh

安装redis

 redis-server

        redis-sentinel

redis-tools

安装zookeeper && kafka 服务器 参考这个步骤

http://www.mamicode.com/info-detail-1923464.html

viabtc客户端搭建

 git clone https://github.com/djpnewton/viaxchtest 

配置阿里源

npm config set registry https://registry.npm.taobao.org

npm install browserify -g

npm install

npm run build

chrome --args --disable-web-security --user-data-dir index.html

"svr": {

"bind": [

"tcp@0.0.0.0:8090"

],

"max_pkg_size": ,0

},

ngx

server { listen 8008; listen 8443 ssl; server_name socket.example.com; ssl_certificate example.crt; ssl_certificate_key example.key; location / { proxy_pass http://unix:/tmp/accessws.sock; proxy_redirect off; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; proxy_send_timeout 1d; proxy_read_timeout 1d; proxy_connect_timeout 1d; proxy_set_header X-Real-IP $remote_addr; } }

小讯
上一篇 2025-01-29 09:19
下一篇 2025-01-18 15:41

相关推荐

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/53789.html