门罗币采集节点monerod搭建与配置

官方网址:https://web.getmonero.org/resources/user-guides/vps_run_node.html

节点搭建

官方建议系统为Ubuntu16.04,博主测试ubuntu18.04也可,运行:

mkdir monero
wget https://downloads.getmonero.org/linux64
tar -xjvf linux64 -C monero
cd monero/
cd monero-x86_64-linux-gnu-v0.17.1.1
export LC_ALL="C"
./monerod
# ./monerod --config-file=/etc/monerod.conf # 使用配置文件

配置文件

# Data directory (blockchain db and indices)
data-dir=/root/monero/.monero  # Remember to create the monero user first

# Log file
log-file=/root/monero/log/monerod.log # 保存日志的位置
log-level=1
max-log-files=1000

# P2P full node
# p2p-bind-ip=0.0.0.0            # Bind to all interfaces (the default)
p2p-bind-port=18080            # Bind to default port

p2p-use-ipv6=1
p2p-bind-ipv6-address=::
p2p-ignore-ipv4=1

# RPC open node
rpc-bind-ip=127.0.0.1            # Bind to all interfaces
#rpc-use-ipv6=1
#rpc-bind-ipv6-address=::
rpc-bind-port=18081            # Bind on default port
confirm-external-bind=1        # Open node (confirm)
restricted-rpc=0               # Prevent unsafe RPC calls
no-igd=1                       # Disable UPnP port mapping

# Slow but reliable db writes
# db-sync-mode=safe
no-sync=1 # 不同步以前的区块

# Emergency checkpoints set by MoneroPulse operators will be enforced to workaround potential consensus bugs
# Check https://monerodocs.org/infrastructure/monero-pulse/ for explanation and trade-offs
enforce-dns-checkpointing=1

out-peers=64              # This will enable much faster sync and tx awareness; the default 8 is suboptimal nowadays
in-peers=1024             # The default is unlimited; we prefer to put a cap on this

limit-rate-up=1048576     # 1048576 kB/s == 1GB/s; a raise from default 2048 kB/s; contribute more to p2p network
limit-rate-down=1048576   # 1048576 kB/s == 1GB/s; a raise from default 8192 kB/s; allow for faster initial sync
已标记关键词 清除标记
相关推荐
©️2020 CSDN 皮肤主题: 书香水墨 设计师:CSDN官方博客 返回首页