Construction of test environment for CentOS Ethereum
Publish: 2021-05-15 20:53:51
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
make: * * [geth] error 1
there is no such directory, or the directory has insufficient permissions
2. 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
3. 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.
4. Unknown_Error
5. 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.
6. What environment do you want? The key is what language to run, what database, and what kind of protection is needed?
7. Method / step this requires the Linux server to support the NC command. If it has not been installed, it will be displayed as follows
we can use the yum command to install it directly. My system is CentOS 6.5 system
if you can't use it, you can directly type the NC command to display its user
if you need to test whether the port of a server can be accessed outside normally,
for example, I want to test whether the 80 port of 180.97.33.107 IP is opened. You can use the command
NC - Z - w1180.97.33.107 80
you can see that TCP is used by default, If you want to test whether the UDP port is open, you can add - U together. For example, I test the UDP 53 port of 202.96.128.86
NC - U - Z - W 1 202.96.128.86 53
you can see that the successful one will display relevant information, but if the port is not open or blocked by firewall, it will not return relevant information.
we can use the yum command to install it directly. My system is CentOS 6.5 system
if you can't use it, you can directly type the NC command to display its user
if you need to test whether the port of a server can be accessed outside normally,
for example, I want to test whether the 80 port of 180.97.33.107 IP is opened. You can use the command
NC - Z - w1180.97.33.107 80
you can see that TCP is used by default, If you want to test whether the UDP port is open, you can add - U together. For example, I test the UDP 53 port of 202.96.128.86
NC - U - Z - W 1 202.96.128.86 53
you can see that the successful one will display relevant information, but if the port is not open or blocked by firewall, it will not return relevant information.
8.
then:
chmod-r777data, - R is to traverse all the directories under the data set to 777, Specifically, from the perspective of security, the more strict the authority, the more secure
in addition, if you find that there is no data folder in the corresponding directory, you can use the MKDIR command to create a file
mkdirdata
other similar problems < / pre >
The initial estimate is that the permissions of the files are too strict, leading to the CMS installation program having no way to operate
solution:
use the Chmod command to give the permissions to these directories or files:
for example, the first one:
< pre t = "code" L = "PL" > first CD to the corresponding directory:then:
chmod-r777data, - R is to traverse all the directories under the data set to 777, Specifically, from the perspective of security, the more strict the authority, the more secure
in addition, if you find that there is no data folder in the corresponding directory, you can use the MKDIR command to create a file
mkdirdata
other similar problems < / pre >
please adopt, otherwise, please ask
9. Copyright notice: This article is the original article of the blogger and cannot be reproced without the permission of the blogger. https://blog.csdn.net/iamhuanggua/article/details/60141775
the construction of test environment is a necessary skill for a qualified QA. Next, combined with CI and CD two different software proction practices, summarize how to deploy a set of Web integration test environment from scratch
1. Server preparation. According to the scale of the project and the middleware used, prepare one or more servers whose resource configuration can meet the requirements, and generally select a distribution of CentOS under Linux as the server
2. Install the database and complete the establishment of the database table. Take MySQL as an example
install MSYQL in Yum mode and start MySQL service The installation of Yum can be referred to http://blog.csdn.net/iamhuanggua/article/details/60140867
yuminstall - y MySQL server MySQL MySQL devel
create database and tables. The standard system, generally has the ready-made SQL script, the execution script may complete the database and the table establishment
3. Install and configure JDK, Tomcat, nginx...
install JDK. Install the latest version of JDK in Yum mode: Yum install JDK.
the construction of test environment is a necessary skill for a qualified QA. Next, combined with CI and CD two different software proction practices, summarize how to deploy a set of Web integration test environment from scratch
1. Server preparation. According to the scale of the project and the middleware used, prepare one or more servers whose resource configuration can meet the requirements, and generally select a distribution of CentOS under Linux as the server
2. Install the database and complete the establishment of the database table. Take MySQL as an example
install MSYQL in Yum mode and start MySQL service The installation of Yum can be referred to http://blog.csdn.net/iamhuanggua/article/details/60140867
yuminstall - y MySQL server MySQL MySQL devel
create database and tables. The standard system, generally has the ready-made SQL script, the execution script may complete the database and the table establishment
3. Install and configure JDK, Tomcat, nginx...
install JDK. Install the latest version of JDK in Yum mode: Yum install JDK.
10. After setting up, the local computer will install the corresponding client or browser, set up the corresponding proxy settings, and then visit Google website
google.com
google.com
Hot content