monero的github地址: https://github.com/monero-project
cd ~/downloads
将 monero-linux-x64-v0.15.0.1.tar.bz2 解压到 ~/downloads 目录下
tar -xjvf monero-linux-x64-v0.15.0.1.tar.bz2
mkdir /root/.bitmonero/
将配置文件拷贝过去
cp bitmonero.conf /root/.bitmonero/
/etc/profile
中添加export PATH=$PATH:/root/downloads/monero-x86_64-linux-gnu-v0.15.0.1
source /etc/profile
bitmonero.conf
内容
# Configuration for monerod
# Syntax: any command line option may be specified as 'clioptionname=value'.
# Boolean options such as 'no-igd' are specified as 'no-igd=1'.
# See 'monerod --help' for all available options.
data-dir=/data/monero
log-file=/data/monero_main.log
log-level=1
rpc-bind-port=18081
rpc-bind-ip=0.0.0.0
confirm-external-bind=true
show-time-stats=1
后台启动
DNS_PUBLIC=tcp://8.8.8.8 monerod --config-file=/root/.bitmonero/bitmonero.conf --detach
如果一直没有发现peer节点, 可以使用
DNS_PUBLIC=tcp://8.8.8.8 monerod --config-file=/root/.bitmonero/bitmonero.conf --detach --seed-node=node.supportxmr.com
tail -f 300 /data/monero_main.log
curl -X POST http://127.0.0.1:18081/json_rpc -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":"0","method":"get_info","params":""}'