In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
Today, I will talk to you about how to install the go language and ethereum in linux. Many people may not know much about it. In order to make you understand better, the editor has summarized the following for you. I hope you can get something from this article.
Install go language
# cd / usr/local/go
# wget https://dl.google.com/go/go1.10.1.linux-amd64.tar.gz
# tar-xvf go1.10.1.linux-amd64.tar.gz
# sudo vi / etc/profile
Export GO_HOME= "/ usr/local/go/go"
Export JAVA_HOME= "/ usr/local/jdk1.8.0_144"
Export CATALINA_HOME= "/ usr/local/apache-tomcat-9.0.0.M22"
Export PATH=$PATH:$GO_HOME/bin:$JAVA_HOME/bin:$CATALINA_HOME/bin
Export CLASSPATH=$JAVA_HOME/jre/lib/tools.jar:$JAVA_HOME/bin/tools.jar:$JAVA_HOME/common/lib/servlet-api.jar
# source / etc/profile
# go version
Go version go1.10.1 linux/amd64
Then install ethereum# cd / usr/local/ethereum
# wget https://github.com/ethereum/go-ethereum/archive/v1.8.3.tar.gz
# tar-xvf v1.8.3.tar.gz
# cd go-ethereum-1.8.3/
# make geth
Run geth
$nohup / usr/local/ethereum/go-ethereum-1.8.3/build/bin/geth-- cache 256-- identity "itari"-- gcmode archive-- datadir / usr/local/ethereum/private/data0-- networkid 898-- port 30303-- rpc-- rpcaddr 0.0.0.0-- rpcport 8545-- rpcapi "db,web3,eth,personal,miner,net,txpool"-- rpccorsdomain "*" &
-- cache 256This parameter sets the memory size in M, which defaults to 128.If it is set to 1024, it will hang up in a while.
Interactive command
$/ usr/local/ethereum/go-ethereum-1.8.3/build/bin/geth attach ipc:/usr/local/ethereum/private/data0/geth.ipc
Note: the path / usr/local/ethereum/go-ethereum-1.8.3/build/bin/geth must be specified after the Hong Kong server is installed
After reading the above, do you have any further understanding of how linux installs go language and ethereum? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.