Position: Home page » Ethereum » Construction of CentOS Ethereum development environment

Construction of CentOS Ethereum development environment

Publish: 2021-04-21 01:55:58
1. 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
2. You can directly install the system
centos7 is a server operating system. If you need a server environment, you can directly install the system without any other environment
if you want to develop some software, you can directly install the relevant software environment on the system.
3. Download the G + + compiler, use the VIM editor to save the source code suffix as. CPP. If you are connected to the Internet, you can download it directly using Yum install G + +
4. 1. Download the ADT version of Android studio. 2. Then unzip it. 3. Open Android studio in the command line and execute bash xxxx.sh in bin. Update it according to your system. 4. Update it later (domestic network problems, here need to set the image address).
5. Set the basic configuration of studio
OK
code

-
ask questions
5. 1. Before downloading and installing VM ware, I used VirtualBox to configure it. Although I first emphasized open source, as a beginner, I found that compared with its cumbersome configuration, one click configuration of VM ware was more convenient. It should be enough to debug with VM ware. At present, it does not need to be applied to the proction environment. And listen to friends say VirtualBox is very slow, so
6. How to build a high availability cluster under centos7. High availability cluster is a kind of server cluster technology which aims at recing the time of service interruption. By protecting the uninterrupted service provided by the user's business program, it can minimize the impact of software / hardware / man-made failures on the business. How to build a high availability cluster under the new CentOS. Environment: in this paper, two machines are used to realize the al hot standby high availability cluster. The IP of the host name node1 is 192.168.122.168, and the IP of the host name node2 is 192.168.122.169. 1、 To install cluster software, you must install PCs, pacemaker, corosync, fence agents all. If you need to configure related services, you should also install the corresponding software. 2. Configure firewall. 1. Forbid firewall and SELinux to modify / etc / sysconfig / SELinux. Make sure SELinux = disabled. Then execute setenforce0 or reboot server to take effect. 2. Set firewall rules. 3 The host names of each node are mutually parsed, and the two host names are respectively modified as node1 and node2. In centos7, directly modify / etc / host name to add the local host name and host table, and then restart the network service. Configure the host table of two hosts, add four nodes in / etc / hosts, time synchronization between nodes, and time synchronization between node1 and node2, which can be realized by NTP. 5、 The key free access of SSH is configured between nodes. The following operations need to be performed on each node. Both hosts need to be able to communicate with each other, so both hosts have to generate and the public key to each other. The hosts file on each node has to resolve the host name of each other. 192.168.122.168node1192.168.122.169node26. Manage the high availability cluster through the pacemaker. 1. Create cluster users. In order to facilitate the communication between nodes and configure the cluster, The user who creates a hacluster on each node must have the same password on each node.
7. Unknown_Error
8. Install LNMP or lamp environment. I like to install LNMP one click installation package. I like to install a control panel with a background page.
9. https://www.vmware.com/go/getworkstation-linux
Guide for Debian : sudo apt install gcc
sudo apt update&&sudo apt upgrade
sudo apt install linux-headers-$(uname -r)
sudo reboot
sudo apt install make
sudo chmod 544 ./VMware-Workstation-Full-14.0.0-6661328.x86_64.bundle
sudo ./VMware-Workstation-Full-14.0.0-6661328.x86_64.bundle
.
Guide for ArchLinux : Two solutions . One is to download vmware patch from Internet .The other is to use LTS kernel .
sudo pacman -R linux
sudo pacman -Syy linux-lts
sudo reboot
sudo pacman -S linux-lts-headers gcc make
sudo chmod 544 ./VMware-Workstation-Full-14.0.0-6661328.x86_64.bundle
sudo ./VMware-Workstation-Full-14.0.0-6661328.x86_64.bundle
While you're using unpopular graphical interface ,such as fluxbox :
sudo pacman -S gksu
sudo cp -f /bin/gksu /usr/lib/vmware/bin/vmware-gksu
Guide for CentOS Fedora opensuse : Similar to above
10. Create a new virtual machine in VMware. In the new virtual machine wizard, select the "custom (Advanced)" option and click the "continue" button. 2. Select the version of VMware, workstation 9.0; For the movement and replication of virtual machines, the VMware version should also be considered). Click the "continue" button. 3 operating system installation from: select "I'll install the operating system later", and click the "continue" button. 4 client operating system we choose "Linux" option, version choose "CentOS", mouse click "continue" button. 5. Under "virtual machine name", fill in the name, such as "CentOS", and under "location", fill in the path to save the virtual machine, such as "G: & # 92"; Click the Continue button. 6 select the number of virtual machine processors and cores, and then click continue. 7 to adjust the memory size of virtual machine, you can input numbers or use slider to adjust; This tutorial sets the memory size to 1024MB; Click the Continue button. 8. For virtual machine network connection, select "use network address translation (NAT)", and click the "continue" button. 9 virtual machine I / O controller select "SCSI controller: LSI (logic)" and click the "continue" button. Select "create a new virtual disk" and click "continue". 11 virtual machine disk interface select SCSI and click continue. 12 set the maximum disk space "20g" of the virtual machine, use a single file to store the virtual disk (the number of files is less when ing or moving the virtual machine), and click the "continue" button. 13 set the virtual machine disk file name "CentOS. Vmdk", and click the "continue" button. 14 use the slider here to check our configuration of the virtual machine. After confirmation, click the "finish" button.
Hot content
Inn digger Publish: 2021-05-29 20:04:36 Views: 341
Purchase of virtual currency in trust contract dispute Publish: 2021-05-29 20:04:33 Views: 942
Blockchain trust machine Publish: 2021-05-29 20:04:26 Views: 720
Brief introduction of ant mine Publish: 2021-05-29 20:04:25 Views: 848
Will digital currency open in November Publish: 2021-05-29 19:56:16 Views: 861
Global digital currency asset exchange Publish: 2021-05-29 19:54:29 Views: 603
Mining chip machine S11 Publish: 2021-05-29 19:54:26 Views: 945
Ethereum algorithm Sha3 Publish: 2021-05-29 19:52:40 Views: 643
Talking about blockchain is not reliable Publish: 2021-05-29 19:52:26 Views: 754
Mining machine node query Publish: 2021-05-29 19:36:37 Views: 750