viabtc

编程入门 行业动态 更新时间:2024-10-14 08:29:56

<a href=https://www.elefans.com/category/jswz/34/1727913.html style=viabtc"/>

viabtc

第一个方案

install rpm
rpm -ivh --force --nodeps --replacepkgs mysql57-community-release-el7-11.noarch.rpm
rpm -ivh --force --nodeps --replacepkgs rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm

install libdevel
yum -y install rpmforge-release libgcc glibc-common glibc-static glibc libstdc++ mpfr xmlrpc-c xmlrpc-c-client cpp libstdc++-devel openssl openssh bind-libs libgomp kernel-headers glibc-headers glibc-devel gcc gcc-c++ bind-utils openssh-clients openssh-server make cmake libpcap curl cyrus-sasl cyrus-sasl-devel zlib-static cyrus-sasl-lib openssl-devel openssl-static lz4-static lz4-devel mysql-community-client mysql-community-devel mysql-community-libs psmisc tree

check libmysqlclient.so
if [ ! -f /usr/lib64/libmysqlclient.so ] ; then
ln -s /usr/lib64/mysql/libmysqlclient.so /usr/lib64/libmysqlclient.so
fi

install curl
install http-parser
install jansson
install mpdecimal
installlibev
install librdkafka
make viabtc_exchange_server
cd viabtc_exchange_server/depends/hiredis/
make
cd viabtc_exchange_server/network/
make
cd viabtc_exchange_server/utils/
make
cd viabtc_exchange_server/accesshttp/
make
cd viabtc_exchange_server/accessws/
make
cd viabtc_exchange_server/alertcenter/
make
cd viabtc_exchange_server/marketprice/
make
cd viabtc_exchange_server/matchengine/
make
cd viabtc_exchange_server/readhistory/
make






Install Must Service
install mysql
install redis + redis-sentinel (Cannot set auth pass)
install java
install zookeeper
install kafka
install nginx (proxy WebSocket)

第二个方案

引用

viabtc_exchange_server,是交易所源代码。我们现在就编译一下这款产品。

$ sudo apt install -y libev-dev libjansson-dev libmpdec-dev libmysqlclient-dev libcurl4-gnutls-dev libldap2-dev libgss-dev librtmp-dev libsasl2-dev
  • 1
# librdkafka: 0.11.3+; DO NOT INSTALL BY APT: version too old (0.8.x);
# if you do, remove them by: sudo apt remove librdkafka1 librdkafka-dev 
  • 1
  • 2
$ wget .11.3.tar.gz -O librdkafka-0.11.3.tar.gz
$ tar zxf librdkafka-0.11.3.tar.gz
$ cd librdkafka-0.11.3
$ ./configure
$ make
$ sudo make install
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6

COMPILATION

引用

$ git clone .git
$ cd viabtc_exchange_server$ make -C depends/hiredis
$ make -C network$ vi utils/makefile #modify INCS
# INCS = -I ../network -I ../depends
$ make -C utils$ vi accesshttp/makefile #modify INCS & LIBS
# INCS = -I ../network -I ../utils -I ../depends
# LIBS = -L ../utils -lutils -L ../network -lnetwork -L ../depends/hiredis -Wl,-Bstatic -lev -ljansson -lmpdec -lrdkafka -lz -lssl -lcrypto -lhiredis -lcurl -Wl,-Bdynamic -lm -lpthread -ldl -lssl -lldap -llber -lgss -lgnutls -lidn -lnettle -lrtmp -lsasl2 -lmysqlclient
$ make -C accesshttp$ vi accessws/makefile
{modify INCS and LIBS like accesshttp/makefile}
$ make -C accesswsvi alertcenter/makefile
{modify INCS and LIBS like accesshttp/makefile}
$ make -C alertcenter$ vi marketprice/makefile
{modify INCS and LIBS like accesshttp/makefile}
$ make -C marketprice$ vi matchengine/makefile
{modify INCS and LIBS like accesshttp/makefile}
$ make -C matchengine$ vi readhistory/makefile
{modify INCS and LIBS like accesshttp/makefile}
$ make -C readhistory

更多推荐

viabtc

本文发布于:2024-03-10 12:03:14,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1727912.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:viabtc

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!