实验环境
4核8G,Ubuntu 18.04,系统盘20G,数据盘50G
挂载数据盘
1.查看信息
df -h
2.查看磁盘
fdisk -l
3.进行分区
fdisk /dev/vdb
选择新建分区n,后面全部enter,最后w保存
4.格式化分区
mkfs.ext4 /dev/vdb1
5.挂载vdb1分区
mount /dev/vdb1 /opt
6.设置开机自动启动
echo '/dev/vdb1 /opt ext4 defaults 0 0' >> /etc/fstab
因为将alaya服务安装在系统盘上会导致系统盘不够用,导致服务宕机,故需将alaya服务布置在数据盘上,即/opt下
安装并运行 NTP 服务
cd /opt
sudo apt-get update &&
sudo apt-get install -y gnupg2 curl software-properties-common ntp &&
sudo systemctl enable ntp && sudo systemctl start ntp
# 验证 NTP 时间同步
ntpq -4c rv | grep leap_none
备注:
NTP 服务用于时间同步,系统时间不正确将会影响 Alaya 节点正常运行 显示 associd=0 status=0615 leap_none , sync_ntp, 1 event, clock_sync,其中 leap_none 为红色,表示 NTP 时间同步正常。
安装 Alaya 文件#
当前网络所使用版本和网络ID如下:
网络 | ChainID | 当前版本 |
---|---|---|
主网 | 201018 | 0.16.2 |