|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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),我們將及時刪除。
-
- BitMEX 聯合創始人 Arthur Hayes 出售 35 萬個 PENDLE 代幣,損失 79 萬美元
- 2024-09-21 00:25:17
- BitMEX 聯合創始人 Arthur Hayes 在重大交易失誤中出售了 35 萬個 Pendle PENDLE/USD 代幣,價值約 126 萬美元
-
- 比特幣 (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)社群的一些最大投資者。