current position：Home>Experience part - deploying Ethereum private chain (POW)
Experience part - deploying Ethereum private chain (POW)
2022-02-03 05:29:34 【Brick moving leader】
Deploy a set of Ethereum private chain locally , Use the default first PoW Consensus
#!/bin/bash # Clear node1 & node2 echo "Clear node1 & node2 & node3." rm -rf node1/geth rm -rf node2/geth rm -rf node3/geth rm -rf node1/eth_output.log rm -rf node2/eth_output.log rm -rf node3/eth_output.log rm -rf bootnode_output.log # Init node1 & node2 & node3 echo "Init node1 & node2 & node3." geth --datadir node1 init genesis.json geth --datadir node2 init genesis.json geth --datadir node3 init genesis.json # Startup bootnode # echo "Startup bootnode." nohup bootnode -nodekey boot.key -verbosity 9 -addr :30301 2>> bootnode_output.log & sleep 1s # Startup node1 echo "Startup node1." nohup geth --datadir=node1 \ --bootnodes=enode://2cb6fe8f4a73fdc962bae49cfcc131e642a9f3b9d6cff1384d5e14ad7d25ebf71[email protected]127.0.0.1:30301 \ --networkid 2525 --port=30303 --rpc --rpcaddr 0.0.0.0 --rpcport=8545 --rpcapi 'personal,db,eth,net,web3,txpool,miner' \ --ws --wsaddr 0.0.0.0 --wsport 8546 --wsapi 'personal,db,eth,net,web3,txpool,miner' --wsorigins "*" \ 2>>node1/eth_output.log & sleep 1s # Startup node2 echo "Startup node2." nohup geth --datadir=node2 \ --bootnodes=enode://2cb6fe8f4a73fdc962bae49cfcc131e642a9f3b9d6cff1384d5e14ad7d25ebf71[email protected]127.0.0.1:30301 \ --networkid 2525 --port=30304 --rpc --rpcaddr 0.0.0.0 --rpcport=8645 --rpcapi 'personal,db,eth,net,web3,txpool,miner' \ --ws --wsaddr 0.0.0.0 --wsport 8646 --wsapi 'personal,db,eth,net,web3,txpool,miner' --wsorigins "*" \ 2>>node2/eth_output.log & sleep 1s # Startup node3 echo "Startup node3." nohup geth --datadir=node3 \ --bootnodes=enode://2cb6fe8f4a73fdc962bae49cfcc131e642a9f3b9d6cff1384d5e14ad7d25ebf71[email protected]127.0.0.1:30301 \ --networkid 2525 --port=30305 --rpc --rpcaddr 0.0.0.0 --rpcport=8745 --rpcapi 'personal,db,eth,net,web3,txpool,miner' \ --ws --wsaddr 0.0.0.0 --wsport 8746 --wsapi 'personal,db,eth,net,web3,txpool,miner' --wsorigins "*" \ --mine --minerthreads=1 --etherbase="0x3ca39a64bc1eda8669d539631b44dbd4a43ed0f8" \ -unlock '0x3ca39a64bc1eda8669d539631b44dbd4a43ed0f8' --password node3/password.txt \ 2>>node3/eth_output.log & # Jobs command # jobs # kill %1 for bootnode # kill %2 for geth of node1 # kill %3 for geth of node2 # kill %4 for geth of node3
author[Brick moving leader],Please bring the original link to reprint, thank you.
The sidebar is recommended
- A blockchain instance analysis based on POS consensus algorithm (upgraded version)
- three. JS imitates the blockchain to realize the interconnection of multiple small balls
- Look at what blockchain is. Don't be cheated again
- Basic meaning of blockchain
- A brief introduction to the basic concepts, principles, characteristics and application scenarios of blockchain
- Blockchain note 1: what is the significance of bitcoin?
- Entering the meta universe, where is the so-called opportunity?
- Blockchain game development and deployment
- Blockchain farm game development source code
- Intensive reading of MESARI cryptocurrency annual report (Part I)
guess what you like
Accessing blockchain data from scrypt smart contract (2)
A malicious kmspico installer can steal your cryptocurrency wallet
How should blockchain be applied in the logistics industry?
What does blockchain change mean
Cattle herding blockchain, blockchain technology changes production relations
5g private network + blockchain: building the "cornerstone of security and trust" of smart government
[blockchain Apocalypse: Nakamoto collection] II: working principle of bitcoin (Part 2)
[blockchain Apocalypse: Nakamoto collection] I: preface | working principle of bitcoin (Part I)
Circle and endaoment will create a usdc based disaster relief fund for communities affected by deadly tornadoes
HSBC Group and IBM successfully created multi ledger CBDC demonstration
- Bloomberg 2022 encryption Outlook: the United States may accept cryptocurrency next year
- Curtis sword (CSC), the first 3D chain game of the concept of meta universe, will be launched soon
- Defi Criticism: in addition to more speculation, it is also an amplifier of greed and fear
- 5g private network + blockchain: building the "cornerstone of security and trust" of smart government
- US media: another huge theft of cryptocurrency was exposed, and hackers stole nearly $200 million
- The chief economist of the International Monetary Fund stressed the "global policy demand" of crypto regulation
- Is NFT music an untapped opportunity?
- The 2nd edition of 1 inch price limit order agreement was officially released
- Decentralized Oracle adameral blockchain data interaction Middleware
- Coinbase releases the vision of metauniverse, or will become Facebook of the early Internet
- Aofex exchange was investigated by the police, and the cryptocurrency exchange retreated into the countdown
- Blockchain talent shortage, world chain job effectively improves the matching rate of people and posts
- DAPP Industry Report in 2021: daily living addresses exceeded 2.7 million, and NFT trading volume exceeded US $23 billion
- Happy bitcoin bear market day: three years have passed since BTC bottomed at $3100
- Teach you how to use Nansen to play NFT
- Win10 uses geth client to build Ethereum private chain
- "Balcony, blockchain and robot" modern automobile thinks about the future with art
- Mars weekly | NBA star Durant became the spokesperson of coinbase brand; Solana launched $150 million chain game fund
- First class position: in depth interpretation of decentralized trading platform Bancor
- The current situation of Dao: investigating Dao ecology from community construction, governance and world integration under the chain
- Technology weekly · why is Web3 related to blockchain
- Blockchain mainstream consensus mechanism
- Technical magic of blockchain
- Decentralized Oracle adameral blockchain data interaction Middleware
- Is it difficult to settle claims in hospital? Blockchain technology realizes "report upon hospitalization and compensation upon discharge"
- Implement the national standardization development outline and put the blockchain on a standardized path
- Understand pledge as service: opportunities and risks, current situation and future
- Talk about Web3 Decentralized work: will the Internet create human prosperity?
- Vitalik: how to improve the transaction anti censorship of the block proposer's scheme
- [Hackathon] BSV programming marathon champion plan to build a dynamic bitcoin network
- Research Report on Solana: practical applications, advantages and challenges
- A hundred flowers bloom in application, presenting the five pole pattern of North Zhejiang, Jiangsu, Shanghai and Guangdong - industrial application of China's blockchain industry development report in 2021
- Popular science article ｜ can Ethereum and Boca use the same address? Moonbeam "unified account" helps you achieve
- Bloomberg 2022 encryption Outlook: the "fate" of bitcoin, Ethereum and encrypted dollar
- Sailian blockchain education provides block chain technology training for Weichai Power
- Sailian blockchain Education: does the school district blockchain have a future?
- Is the development of school district block chain promising?
- Sailian blockchain education was invited to give a training lecture on blockchain technology in Shandong science and engineering district
- School district block chain technology, what do you learn? Blockchain training institutions or self-study?
- What exactly does blockchain learning learn? Do you need to go to blockchain training institutions?