
内存:2 GB RAM
CPU:单核
磁盘:5 GB SSD 存储
带宽:56 Kbps 下载/56 Kbps 上传
Ubuntu Linux 20.04 (LTS) x64
升级系统
sudo apt update && sudo apt upgrade -y
接着安装
sudo apt install curl tar wget clang pkg-config libssl-dev jq build-essential git make ncdu -y
安装go
ver="1.18.2"
cd $HOME
wget "https://golang.org/dl/go$ver.linux-amd64.tar.gz"
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz"
rm "go$ver.linux-amd64.tar.gz"
添加环境
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile
source $HOME/.bash_profile
检查go版本
go version
go安装成功,如下所示(此为输出信息,无需复制)
go version go1.18.2 linux/amd64
下载并安装celestia
cd $HOME
rm -rf celestia-node
git clone https://github.com/celestiaorg/celestia-node.git
cd celestia-node/
git checkout tags/v0.3.0-rc2
make install
检查celestia
安装成功如下图所示(此为输出信息,无需复制)
Semantic version: v0.3.0-rc2
Commit: 89892d8b96660e334741987d84546c36f0996fbe
实例化一个轻节点
celestia light init
创建钱包
make cel-key
创建钱包第二步
./cel-key add developer --keyring-backend test --node.type light
成功后会输出一下开头类似信息(每个人地址不一样)
- address: celestia1mupdr4qu8wh57s467ewj6vk3mqlxrp0nagpr45
设置守护进程
sudo tee <<EOF >/dev/null /etc/systemd/system/celestia-lightd.service
[Unit]
Description=celestia-lightd Light Node
After=network-online.target
[Service]
User=$USER
ExecStart=$HOME/go/bin/celestia light start --core.grpc https://rpc-mamaki.pops.one:9090 --keyring.accname developer
Restart=on-failure
RestartSec=3
LimitNOFILE=4096
[Install]
WantedBy=multi-user.target
EOF
查看是否设置内容
cat /etc/systemd/system/celestia-lightd.service
启动守护进程
systemctl enable celestia-lightd
systemctl start celestia-lightd
检查守护进程状态
systemctl status celestia-lightd
换一个ssh窗口查看日志内容
journalctl -u celestia-lightd.service -f
可以去discord的#faucet 输入以下信息(地址替换成你自己的)
$request celestia1mupdr4qu8wh57s467ewj6vk3mqlxrp0nagpr45
本文只对守护进程设置做了一点改动。利用screen也可以实现后台运行节点。

内存:2 GB RAM
CPU:单核
磁盘:5 GB SSD 存储
带宽:56 Kbps 下载/56 Kbps 上传
Ubuntu Linux 20.04 (LTS) x64
升级系统
sudo apt update && sudo apt upgrade -y
接着安装
sudo apt install curl tar wget clang pkg-config libssl-dev jq build-essential git make ncdu -y
安装go
ver="1.18.2"
cd $HOME
wget "https://golang.org/dl/go$ver.linux-amd64.tar.gz"
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz"
rm "go$ver.linux-amd64.tar.gz"
添加环境
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile
source $HOME/.bash_profile
检查go版本
go version
go安装成功,如下所示(此为输出信息,无需复制)
go version go1.18.2 linux/amd64
下载并安装celestia
cd $HOME
rm -rf celestia-node
git clone https://github.com/celestiaorg/celestia-node.git
cd celestia-node/
git checkout tags/v0.3.0-rc2
make install
检查celestia
安装成功如下图所示(此为输出信息,无需复制)
Semantic version: v0.3.0-rc2
Commit: 89892d8b96660e334741987d84546c36f0996fbe
实例化一个轻节点
celestia light init
创建钱包
make cel-key
创建钱包第二步
./cel-key add developer --keyring-backend test --node.type light
成功后会输出一下开头类似信息(每个人地址不一样)
- address: celestia1mupdr4qu8wh57s467ewj6vk3mqlxrp0nagpr45
设置守护进程
sudo tee <<EOF >/dev/null /etc/systemd/system/celestia-lightd.service
[Unit]
Description=celestia-lightd Light Node
After=network-online.target
[Service]
User=$USER
ExecStart=$HOME/go/bin/celestia light start --core.grpc https://rpc-mamaki.pops.one:9090 --keyring.accname developer
Restart=on-failure
RestartSec=3
LimitNOFILE=4096
[Install]
WantedBy=multi-user.target
EOF
查看是否设置内容
cat /etc/systemd/system/celestia-lightd.service
启动守护进程
systemctl enable celestia-lightd
systemctl start celestia-lightd
检查守护进程状态
systemctl status celestia-lightd
换一个ssh窗口查看日志内容
journalctl -u celestia-lightd.service -f
可以去discord的#faucet 输入以下信息(地址替换成你自己的)
$request celestia1mupdr4qu8wh57s467ewj6vk3mqlxrp0nagpr45
本文只对守护进程设置做了一点改动。利用screen也可以实现后台运行节点。
Deploy a Token
1、open this website with chrome.2、accept and then click next, done.3、click the small button(create new file),name new file with ERC20.solYou can get:4、copy this code to ERC20.sol// SPDX-License-Identifier: MIT // WTF Solidity by 0xAA pragma solidity ^0.8.4; interface IERC20 { /** * @dev 释放条件:当 `value` 单位的货币从账户 (`from`) 转账到另一账户 (`to`)时. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev 释放条件:当 `value` 单位的货币从账户 (`owner`) 授权给另一账户 (`spender`)时. */ event Approva...
Deploy a contract
1、open this website with chrome.2、accept and then click next, done.3、click the small button(create new file),name new file with Function.solYou can get:4、copy this code to Function.sol// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; contract FunctionTypes{ uint256 public number = 5; constructor() payable {} // 函数类型 // function (<parameter types>) {internal|external} [pure|view|payable] [returns (<return types>)] // 默认function function add() external{ number = number + 1; } //...
Deploy a Token
1、open this website with chrome.2、accept and then click next, done.3、click the small button(create new file),name new file with ERC20.solYou can get:4、copy this code to ERC20.sol// SPDX-License-Identifier: MIT // WTF Solidity by 0xAA pragma solidity ^0.8.4; interface IERC20 { /** * @dev 释放条件:当 `value` 单位的货币从账户 (`from`) 转账到另一账户 (`to`)时. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev 释放条件:当 `value` 单位的货币从账户 (`owner`) 授权给另一账户 (`spender`)时. */ event Approva...
Deploy a contract
1、open this website with chrome.2、accept and then click next, done.3、click the small button(create new file),name new file with Function.solYou can get:4、copy this code to Function.sol// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; contract FunctionTypes{ uint256 public number = 5; constructor() payable {} // 函数类型 // function (<parameter types>) {internal|external} [pure|view|payable] [returns (<return types>)] // 默认function function add() external{ number = number + 1; } //...
Share Dialog
Share Dialog

Subscribe to boater

Subscribe to boater
>700 subscribers
>700 subscribers
No activity yet