操作比较简单:
首先可以到网站上看看最新版的版本号:https://geth.ethereum.org/downloads/
wget https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-1.9.25-e7872729.tar.gz
tar -zxvf geth-linux-amd64-1.9.25-e7872729.tar.gz
在解压的文件中会有geth
文件,就是以太坊客户端,使用./geth
就可以执行geth的命令
比如:生成配置文件:
./geth --rpc --rpcaddr '0.0.0.0' --rpcport 8545 --datadir /root/ethereum/ethdir_1 --port '30303' --rpcapi 'db,eth,net,web3,personal' --miner.etherbase 0x4346D0Fb50cE45c249fE4f7Eddb8E735f338408B --miner.threads 1 --testnet --cache 1024 dumpconfig > /root/ethereum/config.toml