CentOS7 modifying the network card name eth0
CentOS7 modifying the network card name eth0
The centos7 virtual machine I installed in VMWare workstation has two network cards. The default network card names are eno16777736 and eno33554984
[root@controller ~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1
link/loopback 00:00:00:00:00:00 brd 00: ...
Posted by kodstationen on Sat, 07 Dec 2019 09:47:01 -0800
dlfcn library related learning in Linux
Blog move, original address: Learning dl Library in https://langzi989.github.io/2017/10/16/Unix/
In Linux, static link library and dynamic link library are two ways of code sharing between processes. Linux provides system calls to load and process dynamic connection libraries in the < dlfnc. H > library, which is very conv ...
Posted by CloudSex13 on Sat, 07 Dec 2019 08:07:01 -0800
Building a Load Balancing Cluster Based on Address Translation (LVS-NAT) Mode
This post is a case post. For an overview of the principles and related overviews of LVS Load Balancing Clusters, please refer to the post: LVS Load Balancing Cluster for Centos 7
1. Introduction to Cases
1. Case Environment
2. Experimental results
Using NAT-mode clustering technology, the LVS load dispatcher is a gateway server where all ...
Posted by scottreid1974 on Sat, 07 Dec 2019 03:02:18 -0800
DR mode of LVS load balancing cluster deployment
I. working principle of DR mode
As shown in the figure, the working principle of LVS-DR has been explained in the figure. Let's list the characteristics of LVS-DR mode:
1. RIP can use private address or public network address. If public network address is used, RIP can be accessed directly.
2. All requested packets must pass through ...
Posted by KC_Geek on Fri, 06 Dec 2019 16:53:46 -0800
Practice: shell programming practice
Preface
mac record and port scan script
Develop system monitoring script
I. sharing of script programming steps
1.1 script programming steps
1.2 demand analysis
According to the requirements of system management, the functions, levels, commands and statements of the script are analyzed
1.3 command test
Test the commands to be used one by ...
Posted by ro1960 on Fri, 06 Dec 2019 16:35:11 -0800
jenkins triggers the automatic construction of docker image, uploads it to harbor and publishes it
I. making Dockerfile file
1. Deploy on 172.19.2.51
mkdir -pv /opt/git
git clone http://172.19.2.140:18080/lvqingshan/gcgj.git
cd /opt/git/gcgj
scp app@172.19.2.1:/home/app/portal-tomcat/webapps/portal.war ./
scp app@192.168.37.34:/home/app/portal-tomcat/conf/server.xml ./
vim Dockerfile
FROM tomcat:7.0.77-jre8
ADD server.xml /usr/local/tomcat ...
Posted by Valect on Fri, 06 Dec 2019 15:07:19 -0800
Remember the experience of deleting / boot directory once and repairing it manually
2018 / 09 / 19 server room
The story is as follows: one of the disgusting things that my colleagues found was that the original person in charge gave 500M space to the / boot partition of the server. I would think it's not small. However, after many kernel upgrades since 16 years, GG has not been uninstalled.As a result, a lot of compilation an ...
Posted by zoreli on Fri, 06 Dec 2019 13:53:22 -0800
java using JNI to call C under Linux++
java using JNI to call C under Linux++
1.JNI introduction
JNI is Java Native Interface(Java local interface), which is a protocol. Its main function is to realize java calling C / C + + code (Class Library), or C / C + + calling java code
2. prepare JNI
First, use java h to generate. H header file according to. java file, ...
Posted by beermaker74 on Fri, 06 Dec 2019 11:59:34 -0800
tcp socket communication optimization and troubleshooting under Linux
tcp socket communication optimization and troubleshooting under Linux
@Date 2018.12.09
I. optimization
1. TPC receiving window
Problem: when the receiving window queue of TCP is blocked - > the sender continues to send - > the receiver loses - > the sender retransmits - > the network becomes bad
Solution: the receiver tells the sen ...
Posted by googlehunter on Fri, 06 Dec 2019 08:29:03 -0800
How to configure multiple JDK environment variables under Linux(CentOS7)
I. Linux version
2. Copy and paste multiple jdks, as follows
cp -R jdk1.7.0_80/ jdk1.7.0_80-2
cp -R jdk1.7.0_80/ jdk1.7.0_80-3
3. Configure multiple JDK environment variables
Add the following after the / etc/profile file
# JDK1 environment configuration
export JAVA_HOME=/usr/local/program/jdk1.7.0_80
export JRE_HOME=$JAVA_HOME/jre
export ...
Posted by lasse48 on Fri, 06 Dec 2019 02:21:17 -0800