明星网页网站制作,温州谷歌seo,可以仿做网站吗,企业网站建设制作公司配置选择先是看了aws、谷歌云、阿里云这个配置都要1-2wrmb一个月#xff0c;太贵了问了很多朋友#xff0c;打算用hetzner#xff0c;50欧一个月足以我选的配置#xff1a;64gb#xff0c;2tb ssd开好后在邮箱收到信息链接后按以下步骤安装系统#xff1a;https://0o0.me…配置选择先是看了aws、谷歌云、阿里云这个配置都要1-2wrmb一个月太贵了问了很多朋友打算用hetzner50欧一个月足以我选的配置64gb2tb ssd开好后在邮箱收到信息链接后按以下步骤安装系统https://0o0.me/server/hetzner-reinstall-with-raid0.html系统选ubuntu 22搭建RPC节点搭建eth rpc指令mkdir /data
cd /data
wget https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-1.11.2-73b01f40.tar.gz
tar -zxvf geth-linux-amd64-1.11.2-73b01f40.tar.gz
mkdir prysm
cd prysm
curl https://raw.githubusercontent.com/prysmaticlabs/prysm/master/prysm.sh --output prysm.sh
chmod x prysm.sh
./prysm.sh beacon-chain generate-auth-secret
cd /data/
cd geth-linux-amd64-1.11.2-73b01f40
输入完按两次回车:
nohup ./geth --datadir /data/eth/ --maxpeers 75 --cache2048 --authrpc.jwtsecret /data/prysm/jwt.hex --http --http.addr 127.0.0.1 --http.port 18181 1
cd /data/prysm/
输入完按两次回车:
nohup ./prysm.sh beacon-chain --execution-endpointhttp://localhost:8551 --jwt-secret./jwt.hex --suggested-fee-recipient0x91a0982397BEB2B65DFF9a6436695e362135cBa6 --accept-terms-of-use
查看eth执行层日志 tail -f /data/geth-linux-amd64-1.11.2-73b01f40/nohup.out
查看eth共识层日志 tail -f /data/prysm/nohup.out等待同步最新块over~大概要1周内使用老版本执行层同步eth执行层如果只想太慢可以用老版本用老版本同步到分叉的那个块再运行新版本运行老版本之前要先关掉新版本的进程并且删除eth文件夹ps -ef | grep geth
kill -9 123456
rm -rf /data/eth
wget https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-1.10.24-972007a5.tar.gz
tar -zxvf geth-linux-amd64-1.10.24-972007a5.tar.gz
cd geth-linux-amd64-1.10.24-972007a5/
nohup ./geth --datadir /data/eth/ --maxpeers 75 --cache2048 --http --http.addr 127.0.0.1 --http.port 18181 11 使用Python3执行脚本等两个层都同步完成之后就可以用python3来调用自己的rpc节点了像我搭建的节点ipc地址/data/eth/geth.ipchttp地址http://127.0.0.1:18181/这里会出现pip3不存在的情况需要先安装pip3然后再安装web3wget https://bootstrap.pypa.io/get-pip.py get-pip.py sudo python3 get-pip.pypip3 -Vpip3 install web3python3 demo 代码from web3 import Web3
my_provider Web3.IPCProvider(/data/eth/geth.ipc)
my_provider Web3.HTTPProvider(http://127.0.0.1:18181/)
w3 Web3(my_provider)
# 当前区块高度
blockNumber w3.eth.blockNumber
print(blockNumber)更多的操作可以在网上找资料还可以用nodejs写用golong的话最快博客原文 https://sumubai.cc/post/96