CentOS builds private chain of Ethereum
Publish: 2021-05-08 14:36:06
1. This needs to be recharged, but we must pay attention to the risk. This chain is not particularly mainstream. It may be the capital disk or counterfeit currency.
2. The first part: build your own blockchain directory from 0 to 1:
1.1 start with imitation, First knowledge of blockchain
1.2 basis of blockchain: analysis of consensus mechanism
1.3 design principle and method of consensus mechanism
1.4 how to quickly clone a blockchain
1.5 how to turn bitcoin into its own private chain - bifurcated bitcoin
1.6 how to turn Ethereum into its own private chain - bifurcated Ethereum
1.7 how to turn ripple into its own private chain - bifurcated Ripple
1.8 how to turn stellar into a private chain of its own, How to develop your own blockchain wallet (windows and MAC) 1.11 how to develop your own blockchain wallet (Android and IOS) 1.12 how to develop an online wallet similar to blockchain.info 1.13 how to increase the security and robustness of your own blockchain network 1.14 how to use coin to handle recharge withdrawal business
1.15 How to use the fund pool to build a mixed currency service
1.16 how to design a new mining algorithm
this process is generally used, but it is also very difficult for ordinary people to complete. The mature projects of blockchain include Ethereum, decent, bitcoin and so on.
1.1 start with imitation, First knowledge of blockchain
1.2 basis of blockchain: analysis of consensus mechanism
1.3 design principle and method of consensus mechanism
1.4 how to quickly clone a blockchain
1.5 how to turn bitcoin into its own private chain - bifurcated bitcoin
1.6 how to turn Ethereum into its own private chain - bifurcated Ethereum
1.7 how to turn ripple into its own private chain - bifurcated Ripple
1.8 how to turn stellar into a private chain of its own, How to develop your own blockchain wallet (windows and MAC) 1.11 how to develop your own blockchain wallet (Android and IOS) 1.12 how to develop an online wallet similar to blockchain.info 1.13 how to increase the security and robustness of your own blockchain network 1.14 how to use coin to handle recharge withdrawal business
1.15 How to use the fund pool to build a mixed currency service
1.16 how to design a new mining algorithm
this process is generally used, but it is also very difficult for ordinary people to complete. The mature projects of blockchain include Ethereum, decent, bitcoin and so on.
3. Wait, Ethereum is a public chain. Do you mean the token issued above? You can set the total amount
4. Build / env.sh go run build / ci.go install. / CMD / geth
make: * * [geth] error 1
there is no such directory, or the directory has insufficient permissions
make: * * [geth] error 1
there is no such directory, or the directory has insufficient permissions
5. Yes, but it is better to use overseas servers. In addition, the server configuration should be medium or above.
6. vim vi /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
BOOTPROTO=static
IPADDR=192.168.1.1
NETMASK=255.255.255.0
GATEWAY=你的网关
ONBOOT=yes
vim vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
IPADDR=10.1.1.1
NETMASK=255.0.0.0
GATEWAY=你的网关
ONBOOT=yes
DEVICE=eth1
BOOTPROTO=static
IPADDR=192.168.1.1
NETMASK=255.255.255.0
GATEWAY=你的网关
ONBOOT=yes
vim vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
IPADDR=10.1.1.1
NETMASK=255.0.0.0
GATEWAY=你的网关
ONBOOT=yes
7. The solution is as follows
Modify / etc / udev / rules.d/70-persistent-net.rules
comment or delete the line eth0, which records the MAC address when the system was cloned, but the MAC of the newly started system has been changed, and the name = & quot; eth1" Change it to "eth0", the MAC address marked by attr. This is the MAC assigned by the virtual machine for the virtual network card. Replace the MAC in / etc / sysconfig / network scripts / ifcfg-eth0 with the above MAC
and then restart it
another way is to use eth1 instead of eth0, Copy / etc / sysconfig / network scripts / ifcfg-eth0 into / etc / sysconfig / network scripts / ifcfg-eth1
3. Modify the network card configuration of the machine
VI / etc / sysconfig / network scripts / ifcfg-eth0
you can use the graphical interface to install and configure the network
# install setuptool
Yum install setuptool
# you can find that the setup is incomplete, and then install another firewall for system service management
Yum install ntsysv
# and then install a firewall, as well as the supporting firewall settings in setup Network settings
Yum install iptables
? Install firewall settings in setup
Yum install system config securitylevel Tui
? Install network settings in setup
Yum install system config network Tui
don't forget to use service network restart
4 Modify the host name
VI / etc / sysconfig / network
attach the ifcfg-eth0 file that is easy to use in the virtual machine:
device = & quot; eth0"< br />NM_ CONTROLLED=" yes"< br />ONBOOT=" yes"< br />IPADDR=192.168.9.202
NETMASK=255.255.255.0
BOOTPROTO=yes
TYPE=" Ethernet"< br />UUID=" 4874beeb-8c63-4b56-96f2-d78de825ceb2"< br />PREFIX=24
DEFROUTE=yes
IPV4_ FAILURE_ FATAL=yes
IPV6INIT=no
NAME=" System eth0"< br />HWADDR=00:0C:29:80:64:30
LAST_ CONNECT=1355405012
GATEWAY=192.168.9.2
DNS1=8.8.8.8
USERCTL=no
Modify / etc / udev / rules.d/70-persistent-net.rules
comment or delete the line eth0, which records the MAC address when the system was cloned, but the MAC of the newly started system has been changed, and the name = & quot; eth1" Change it to "eth0", the MAC address marked by attr. This is the MAC assigned by the virtual machine for the virtual network card. Replace the MAC in / etc / sysconfig / network scripts / ifcfg-eth0 with the above MAC
and then restart it
another way is to use eth1 instead of eth0, Copy / etc / sysconfig / network scripts / ifcfg-eth0 into / etc / sysconfig / network scripts / ifcfg-eth1
3. Modify the network card configuration of the machine
VI / etc / sysconfig / network scripts / ifcfg-eth0
you can use the graphical interface to install and configure the network
# install setuptool
Yum install setuptool
# you can find that the setup is incomplete, and then install another firewall for system service management
Yum install ntsysv
# and then install a firewall, as well as the supporting firewall settings in setup Network settings
Yum install iptables
? Install firewall settings in setup
Yum install system config securitylevel Tui
? Install network settings in setup
Yum install system config network Tui
don't forget to use service network restart
4 Modify the host name
VI / etc / sysconfig / network
attach the ifcfg-eth0 file that is easy to use in the virtual machine:
device = & quot; eth0"< br />NM_ CONTROLLED=" yes"< br />ONBOOT=" yes"< br />IPADDR=192.168.9.202
NETMASK=255.255.255.0
BOOTPROTO=yes
TYPE=" Ethernet"< br />UUID=" 4874beeb-8c63-4b56-96f2-d78de825ceb2"< br />PREFIX=24
DEFROUTE=yes
IPV4_ FAILURE_ FATAL=yes
IPV6INIT=no
NAME=" System eth0"< br />HWADDR=00:0C:29:80:64:30
LAST_ CONNECT=1355405012
GATEWAY=192.168.9.2
DNS1=8.8.8.8
USERCTL=no
8. Unknown_Error
9. In Lianyungang Huaguoshan free base to participate in the real CS battle travel I went to Huaguoshan battle, to participate in the real CS field super exciting. Tell you how it feels to fight for a day. I personally participated in the battle. I heard from my friends that there is a real CS base in Lianyungang. I have never played it before. I really participated in it with the mentality of "eating crabs". I found the real CS in Lianyungang on the Internet. So I called the "Huaguo Mountain free base" and said how can I play alone? The coach said that you can come on Saturday and Sunday. There must be some people, I think so. If you go out to play on weekends, there must be a lot of people, especially Huaguo Mountain. But I didn't wait for the weekend, so I came on Thursday. Ha ha, I couldn't help it, mainly because I wanted to play. When I arrived at Huaguo Mountain, the scenery here was so beautiful. I came here in the morning. The light rain last night made the whole Huaguo Mountain surrounded by clouds and fog. When I looked at the top of the mountain from a distance, it looked like a sea of clouds. Dasheng lake was clear and quiet, and the water vapor was refreshing. Very comfortable. It's estimated that it's about 300 meters away from the gate. I saw a huge sign of the free base on the roadside, so I called for the master to stop. Ha ha, bus No.12 is very convenient. Go in and talk about it. Pay for it. After the coach's professional guidance, we entered the battlefield and began to fight. In the first drill, I understood how to play. I accepted things quickly and got started immediately. In the second drill, I scored five shots. The coach said that the team members were professional, not the instructors. The team members were the most effective experience. I'm more energetic. My record in the second game was 8 shots. By the way, 29 people played that day. This level is not high, because there are two soldiers in our team. That level is very high. Every time I encounter with him, I will be killed. Unfortunately, I can also hit him in the second game. It takes about 30 minutes for each game. After the second game, I'll be strong. In the third game, we won the flag from the unknown area back to our own base camp. We cooperated very well in that game, because someone commanded, two people covered, two accurate shooting skills were used to fight the enemy who came to win the flag, and the remaining seven who could run were arranged one by one, as long as they could relay, We can win. I was caught as the one who shot the enemy and captured the flag. Hehe, who let me shoot on time? Hehe, the other side lost. After three games, I began to see sweat, but I think sweat is full of excitement. The instructor commented that our blue team can win because of team cooperation and tactics arrangement, while the red team basically has no cooperation, so we lost. We've won three games. It's fun. At the beginning of the fourth scene, I used a machine gun to hit the other side. At the beginning, those stupid guys still rushed, but now they are still quiet. Hehe, we started to organize the charge, I covered, the soldier with three people from the back of the outflanking, small sample to a detour, when I saw the gun fight over there, I rushed up with people, came to a victory mpling. Ha ha, when I was complacent, the soldier of the team opposite NND came out. He shot me and I hung up. I didn't know where he was until I was killed in the battle. I'm angry, there's still a gap. But I haven't been exercising for a while, and I'm really out of shape. There's only one word left to gasp! But I'm very excited. The fifth battle is to protect the dignitaries. We protect a soldier, that is, the one I say is very powerful. He has high tactics, his life value is 8, but we still have 3. The other side also has a dignitaries, who are also soldiers. At the beginning of the battle, we rushed up, but we didn't know how to fight. We were beaten there and didn't dare to move. When the dignitaries appeared, I yelled to catch them alive! Ha ha, our hearts are really together. We rush up together, aim at each other and start shooting. The one over there may have lost four, but we just hang up. I will rest in the martyr's cemetery and watch the movement on the battlefield, ah! Our dignitary appeared, and that met, two people PK rely on or our fierce, that dignitary hang up! A complete victory. It's a pity that my playing time is short. It's only 4 hours in total. It's only 88 yuan for half a day. We all talked about it. When we got back to the base, we had a meal. I had three bowls of rice. I haven't eaten so much for a long time. It's delicious. It's eaten in the free base. We can't even talk about the taste. We didn't have one last one. We can't eat the last one. What's more, the weight is really enough. It's worth 20 yuan. One chicken, two fish, one rib....... I miss the taste. I have to go home. I'm happy to leave this afternoon. By the way, I left a message, a phone call and a registration. I'm already a private soldier. When I come next time or introce players, I'll be able to upgrade. I'll be a second lieutenant soon. I've heard that the general is free, and I'll live for life. It's better than a day in the gym. I'm not strong enough. Ha ha, write something for later players to see. If you have a good feeling, write it out and share it with you.
Hot content
