|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
There is no indication that the signature belongs to the owner.
没有迹象表明签名属于所有者。
Primary key fingerprint: 15E6 6D94 1F69 7E28 F493 81F4 2641 6DC3 F306 74B0
主密钥指纹:15E6 6D94 1F69 7E28 F493 81F4 2641 6DC3 F306 74B0
“`
“`
If the checksum is verified, extract the files and move them into (/usr/local/bin) directory.
如果校验和通过验证,则提取文件并将其移动到 (/usr/local/bin) 目录中。
Then clean up the working directory.
然后清理工作目录。
“`
“`
> tar xvf lighthouse-v5.2.1-x86_64-unknown-linux-gnu.tar.gz
> tar xvf lighthouse-v5.2.1-x86_64-unknown-linux-gnu.tar.gz
> sudo cp lighthouse /usr/local/bin
> sudo cp 灯塔 /usr/local/bin
> rm -r lighthouse lighthouse-v5.2.1-x86_64-unknown-linux-gnu.tar.gz.asc lighthouse-v5.2.1-x86_64-unknown-linux-gnu.tar.gz
> rm -r 灯塔 lighthouse-v5.2.1-x86_64-unknown-linux-gnu.tar.gz.asc lighthouse-v5.2.1-x86_64-unknown-linux-gnu.tar.gz
“`
“`
Create an account called `lighthouse` without server access for lighthouse(the consensus layer software) to run as a background service. This type of user account will not have root access so it restricts potential attackers to only the lighthouse service in the unlikely event that attackers manage to infiltrate via a compromised client update.
创建一个名为“lighthouse”的帐户,无需服务器访问权限,以便 lighthouse(共识层软件)作为后台服务运行。这种类型的用户帐户不具有 root 访问权限,因此在攻击者通过受损的客户端更新渗透的情况下,它将限制潜在的攻击者只能使用 lighthouse 服务。
> sudo useradd –no-create-home –shell /bin/false lighthouse
> sudo useradd –no-create-home –shell /bin/false 灯塔
Create a directory for lighthouse (the consensus layer software) to store the blockchain data of the consensus layer. Then set the owner of this directory to lighthouse (the user account) so that this user can read and write to the directory.
创建lighthouse(共识层软件)目录,用于存储共识层的区块链数据。然后将该目录的所有者设置为lighthouse(用户帐户),以便该用户可以对该目录进行读写。
> sudo mkdir -p /var/lib/lighthouse
> sudo mkdir -p /var/lib/灯塔
> sudo chown -R lighthouse:lighthouse /var/lib/lighthouse
> sudo chown -R 灯塔:灯塔 /var/lib/lighthouse
Create a systemd configuration file for the lighthouse service to run in the background.
创建一个 systemd 配置文件,以便 lighthouse 服务在后台运行。
> sudo vi /etc/systemd/system/lighthouse.service
> sudo vi /etc/systemd/system/lighthouse.service
Paste the configuration parameters below into the file:
将以下配置参数粘贴到文件中:
“`
“`
[Unit]
[单元]
Description=Lighthouse Consensus Client (Holesky)
描述=Lighthouse共识客户端(Holesky)
After=network.target
之后=网络.目标
Wants=network.target
想要=network.target
[Service]
[服务]
User=lighthouse
用户=灯塔
Group=lighthouse
组=灯塔
Type=simple
类型=简单
Restart=always
重新启动=始终
RestartSec=5
重启秒=5
ExecStart=/usr/local/bin/lighthouse \
ExecStart=/usr/local/bin/灯塔 \
–chain holesky \
–链霍尔斯基\
–datadir=/var/lib/lighthouse \
–datadir=/var/lib/灯塔\
–log.file.directory=/var/lib/lighthouse/logs \
–log.file.directory=/var/lib/lighthouse/logs \
–authrpc.jwtsecret=/var/lib/jwtsecret/jwt.hex \
–authrpc.jwtsecret=/var/lib/jwtsecret/jwt.hex \
–full \
-满的 \
–port 30303 \
–端口30303\
–http \
–http \
–http.api eth,web3,net,txpool,debug,trace \
–http.api eth、web3、net、txpool、调试、跟踪 \
–http.addr
–http.addr \
–http.port 8547 \
–http.端口8547 \
–ws \
–ws \
–ws.addr
–ws.addr \
–ws.port 8548 \
–ws.端口 8548 \
–metrics 127.0.0.1:6060
–指标127.0.0.1:6060
[Install]
[安装]
WantedBy=default.target
WantedBy=default.target
“`
“`
Once you’re done, save with ESC → ENTER → :wq → ENTER
完成后,使用 ESC → ENTER → :wq → ENTER 保存
Understand and review your configuration summary and amend if needed.
了解并检查您的配置摘要并根据需要进行修改。
lighthouse configuration summary:
灯塔配置总结:
Start lighthouse
启动灯塔
Reload the systemd daemon to register the changes made, start lighthouse and check its status to make sure its running.
重新加载 systemd 守护进程以注册所做的更改,启动 lighthouse 并检查其状态以确保其正在运行。
> sudo systemctl daemon-reload
> sudo systemctl 守护进程重新加载
> sudo systemctl start lighthouse.service
> sudo systemctl 启动 lighthouse.service
> sudo systemctl status lighthouse.service
> sudo systemctl status lighthouse.service
Expected output: The output should say lighthouse is “active (running)”. Press CTRL+C to exit and lighthouse will continue to run. It should take around 6 hours for lighthouse to sync on the Holesky testnet.
预期输出:输出应显示灯塔处于“活动(正在运行)”状态。按 CTRL+C 退出,lighthouse 将继续运行。 Lighthouse 在 Holesky 测试网上同步大约需要 6 小时。
Use the following command to check the logs of lighthouse’s syncing process. Watch out for any warnings or errors.
使用以下命令检查 lighthouse 同步过程的日志。注意任何警告或错误。
> sudo apt install ccze -y
> sudo apt install ccze -y
> sudo journalctl -fu lighthouse -o cat | ccze -A
> sudo Journalctl -fu 灯塔 -o cat |西泽-A
Expected output
预期产出
Press CTRL+C to exit.
按 CTRL+C 退出。
See here(https://lighthouse-book.sigmaprime.io/advanced-topics/logs.html) for more details on how to interpret and understand lighthouse journalctl logs
请参阅此处(https://lighthouse-book.sigmaprime.io/advanced-topics/logs.html),了解有关如何解释和理解 lighthouse journalctl 日志的更多详细信息
If the lighthouse service is running smoothly, we can now enable it to fire up automatically when rebooting our node.
如果灯塔服务运行顺利,我们现在可以让它在重新启动节点时自动启动。
> sudo systemctl enable lighthouse.service
> sudo systemctl 启用 lighthouse.service
Expected output:
预期输出:
> Created symlink /etc/systemd/system/default.target.wants/lighthouse.service → /etc/systemd/system/lighthouse.service.
> 创建符号链接 /etc/systemd/system/default.target.wants/lighthouse.service → /etc/systemd/system/lighthouse.service。
免责声明:info@kdj.com
所提供的信息并非交易建议。根据本文提供的信息进行的任何投资,kdj.com不承担任何责任。加密货币具有高波动性,强烈建议您深入研究后,谨慎投资!
如您认为本网站上使用的内容侵犯了您的版权,请立即联系我们(info@kdj.com),我们将及时删除。
-
- 比特币 (BTC) 价格预测:分析师 Michaël van de Poppe 预计 10 月份将创下历史新高 (ATH)
- 2024-09-21 00:25:01
- 著名加密货币分析师和交易员 Michael van de Poppe 分享了他对比特币未来的深刻分析。今天早些时候,他发推文解释说,比特币价格正在遵循计划
-
- Polkadot 和 AI 伙伴步履蹒跚,而 BlockDAG 测试网的推出将预售推至 7350 万美元
- 2024-09-21 00:25:01
- 在最近的加密新闻中,Polkadot 和 AI Companions 一直在掀起波澜,尽管出于不太有利的原因。 Polkadot 触及 12 个月低点,AI Companions 价格下跌 13%。尽管这些代币面临不确定性,但 BlockDAG 随着最近测试网的推出,正在获得动力。
-
- 加拿大皇家造币厂发行完全来自单一矿山的最新枫叶金币 (GML)
- 2024-09-21 00:25:01
- 加拿大皇家造币厂正在发行完全来自单一矿山的最新枫叶金币 (GML),并将向加拿大好市多 (Costco Canada) 提供
-
- Fantom (FTM)、Immutable X (IMX) 和 Basic Attention Token (BAT) 体验鲸鱼活动激增
- 2024-09-21 00:25:01
- 过去一天,Fantom (FTM)、Immutable X (IMX) 和 Basic Attention Token (BAT) 的加密鲸鱼活动大幅增加。
-
- 声称精通:主宰 $UNI 空投
- 2024-09-21 00:25:01
- UNISWAP 空投分步指南:如何获得 UNISWAP 空投资格?
-
- MicroStrategy 完成 10.1 亿美元的可转换票据增发,以收购更多比特币
- 2024-09-21 00:25:01
- 由 Michael Saylor 领导的 MicroStrategy 公司在其比特币积累战略上迈出了重要一步,最近完成了可转换优先票据发行,筹集了总计 10.1 亿美元的资金。
-
- XRP 鲸鱼累积 2.28 亿美元,投资者等待重大举措
- 2024-09-21 00:25:01
- XRP 最近表现出显着的弹性,将其位置维持在关键支撑位之上,尽管价格大幅波动仍然迫在眉睫。
-
- GoodEgg (GEGG):人工智能驱动的社交约会模因硬币,正在改变一切
- 2024-09-21 00:25:01
- 加密货币的世界总是在不断发展,人工智能驱动的代币的最新趋势正在引起人们的广泛关注。 GoodEgg(GEGG)是一种基于人工智能的社交约会模因硬币,吸引了来自人工智能超级智能联盟(FET)社区的一些最大投资者。
-
- BlockDAG 交易所上市:投资回报率预测迈向 30,000 倍的大跃进
- 2024-09-21 00:25:01
- BlockDAG 已成为今年加密货币市场的突破之星,其每一步举措都引起了轰动。网络给人们留下了深刻的印象