리플 노드 구축 (Rippled)

1 minute read

설치

  • OS: Ubuntu 18.04
  • Rippled Build Version : 1.6.0
#update repositories:
sudo apt -y update

#install utilities:
sudo apt -y install apt-transport-https ca-certificates wget gnupg

#Add Ripple's package-signing GPG key to your list of trusted keys:
wget -q -O - "https://repos.ripple.com/repos/api/gpg/key/public" | \
  sudo apt-key add -
   
#Check the fingerprint of the newly-added key:
apt-key finger  

#Add the appropriate Ripple repository for your operating system version:
echo "deb https://repos.ripple.com/repos/rippled-deb bionic stable" | \
    sudo tee -a /etc/apt/sources.list.d/ripple.list
    
#Fetch the Ripple repository
sudo apt -y update

#Install the rippled software package:
sudo apt -y install rippled

Config 설정

  • Path : /etc/opt/ripple/rippled.cfg
chown -R rippled:rippled <ripple 데이터 폴더> :리플 데이터 쌓을 곳에 소유자 변경이 필요
[server]
port_rpc
port_ws
port_peer

[port_rpc]
port = 51234
ip = 0.0.0.0
protocol = http

[port_ws]
port = 51233
ip = 0.0.0.0
protocol = ws,wss

[port_peer]
port = 51235
ip = 0.0.0.0
protocol = peer

#-------------------------------------------------------------------------------

[node_size]
tiny # 노드 크기 변경
 
[ledger_history]
1000 # 쌓을 만큼


[node_db]
type=NuDB
path=/ripple-data/rippled/db/nudb # 쌓을 곳으로 변경
online_delete= 1000 # 쌓을 만큼 
advisory_delete=0

[database_path]
/ripple-data/rippled/db # 쌓을 곳으로 변경

[debug_logfile]
/ripple-data/rippled/debug.log # 쌓을 곳으로 변경

[sntp_servers]
time.windows.com
time.apple.com
time.nist.gov
pool.ntp.org

[validators_file]
validators.txt

[rpc_startup]
{ "command": "log_level", "severity": "warning" }

[ssl_verify]
1

명령어

# 노드 상태 확인, 시작, 재시작, 중지
sudo systemctl status rippled.service
sudo systemctl start rippled.service
sudo systemctl restart rippled.service
sudo systemctl stop rippled.service 

/opt/ripple/bin/rippled server_info #서버 정보 확인

로그 확인

  • https://xrpl.org/understanding-log-messages.html

출처
설치
설정 파일

Categories:

Updated: