Official Go implementation of the Ethereum protocol
geth提供了很多镜像
geth提供了以下端口
geth镜像,默认储存数据文件在/root/.ethereum
--datadir
, 可以使用这个选项来指定另外的数据目录geth systemd文件
[Unit]
Description=Podman in Systemd
[Service]
Restart=on-failure
ExecStartPre=/usr/bin/rm -f /%t/%n-pid /%t/%n-cid
ExecStart=/usr/bin/podman run --conmon-pidfile /%t/%n-pid --cidfile /%t/%n-cid -d \
-it --name eth \
-p 8545:8545 -p 30303:30303 \
-v /data/container/data/eth/data:/data/eth:Z \
ethereum/client-go:stable \
--http \
--http.addr 127.0.0.1 \
--allow-insecure-unlock \
--http.api personal,eth,net,web3 \
--cache=12288 \
--maxpeers 80 \
--maxpendpeers 80 \
--nousb \
--datadir /data/eth
ExecStop=/usr/bin/sh -c "/usr/bin/podman rm -f `cat /%t/%n-cid`"
KillMode=none
Type=forking
PIDFile=/%t/%n-pid
[Install]
WantedBy=multi-user.target
http.api 列表获取方法 ,其实也可以乱写,启动的时候会在日志里面提示你,有效的api是哪些。
geth日志需要怎么获取? ,虽然按照他们的提示,用了输出重定向,但是和容器的兼容有点问题,还需要再研究,但是可以确认的是,官方移除了早期的
--logfile
选项。
报错信息:检测不到usb设备: Failed to enumerate USB devices hub=ledger vendor=11415 failcount=3 err="failed to initialize libusb: libusb: unknown error [code -99]"
解决方法:增加--nousb选项