1、设置-网络适配器--自定义:特定虚拟网络(VMNET8(NAT)模式)
2、编辑-虚拟网络编辑器-VMNET8
(NAT模式)--NAT设置:网关IP(设置为本机ipconfig/all所显示的网关ip所在网段的某个ip)
如:ipconfig/all显示:
IPv4 地址 . . . . . . . . . . . . : 10.10.10.12(首选)
子网掩码 . . . . . . . . . . . . : 255.255.255.0
默认网关. . . . . . . . . . . . . : 10.10.10.1
DNS 服务器 . . . . . . . . . . . : 10.10.10.1
则设置为:
10.10.10.122或10.10.10.133......
同时,子网IP写为:10.10.10.0 子网掩码:255.255.255.0
3、vi /etc/sysconfig/network-scripts/ifcfg-ens33
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=static
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=ens33
UUID=ef96c2f5-354a-4a17-a1ea-e0cee6397619
DEVICE=ens33
ONBOOT=yes
IPADDR=10.10.10.132
NETMASK=255.255.255.0
GATEWAY=10.10.10.122
DNS=10.10.10.1
4、service network restart
5、ping baidu.com 通过
6、安装更新必要的包
yum update
yum install lrzsz zip unzip telnet
yum -y install make zlib zlib-devel gcc-c++ libtool openssl openssl-devel
rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
yum install nginx
yum install git
7、安装bitcoin程序
git clone https://github.com/bitcoin/bitcoin.git
cd bitcoin
git tag
git checkout v0.18.0
./autogen.sh
yum install -y boost-devel qt-devel protobuf-devel qrencode-devel libevent-devel libtool openssl-devel libdb-devel
./configure (这里可能会失败)
wget http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz
tar xf db-4.8.30.NC.tar.gz
cd db-4.8.30.NC/build_unix
../dist/configure --enable-cxx --disable-shared --with-pic --prefix=/home/download/bitcoin/db4/
make
make install
cd bitcoin
./configure LDFLAGS="-L/home/download/bitcoin/db4/lib/" CPPFLAGS="-I/home/download/bitcoin/db4/include/"
make
make install
bitcoind -datadir=/home/data/btc -conf=bitcoin.conf -daemon
tail -f /home/data/btc/debug.log