CentOS 7编译安装Omnicore USDT钱包。
安装依赖环境
yum -y install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils
yum -y install gcc-c++ libtool make autoconf automake openssl-devel libevent-devel boost-devel libdb4-devel libdb4-cxx-devel
yum -y install qt5-qttools-devel qt5-qtbase-devel protobuf-devel
编译安装db4.8
wget http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz
tar -xzvf db-4.8.30.NC.tar.gz
cd db-4.8.30.NC/build_unix
../dist/configure --enable-cxx --disable-shared --with-pic --prefix=$BDB_PREFIX
make
make install
下载omnicore源码
git clone https://github.com/OmniLayer/omnicore.git
编译安装omnicore
cd omnicore/
./autogen.sh
./configure LDFLAGS="-L/home/db4/lib/" CPPFLAGS="-I/home/db4/include/" //此处要指定3步编译完的db位置
make && make install
启动钱包
omnicored -conf=/usdt/Bitcoin.conf -datadir=/usdt
钱包运行检测脚本
#!/bin/bash
. /etc/profile
ps -fe | grep "omnicored -conf" | grep -v grep
if [ $? -ne 0 ]
then
echo "not running,start process....."
omnicored -conf=/usdt/Bitcoin.conf -datadir=/usdt > /dev/null 2>&1 &
else
echo "process is already running....."
fi
将此脚本添加到Crontab中,每分钟执行一次,可实现USDT钱包停掉时自动重启。