The purpose of the experiment is to bind the two NICs, and solve the load balancing and automatic switching.
Linux operating system 6.5,bond0,eth1,eth2.
Bond0 10.10.9.126 eth1 no eth2.
The configuration is as follows:
cd/etc/sysconfig/network-scripts//Enter the network configuration file
CP ifcfg-eth0 ifcfg-bond0/Copy ifcfg-eth0 renamed to ifcfg-bond0 the original Ifcfg-eth0 continues to exist
Configure IFCFG-BOND0Device=bond0Bootproto=noneOnboot=yesipaddr=10.10.9.126dns=202.106.196.
grep command1. Function:The grep command in a Linux system is a powerful text search tool that uses regular expressions to search for text and print matching lines. The grep full name is the global Regular expression Print, which represents the globally regular expressions version.2. Permission to use:all users. 3. Format: grep [options]4. Main parameters:[Options] Main parameters:-A,--text: Do not ignore binary data.-a,--after-context: Displays the number of rows,-C: Outputs only the count of
, new version gawk is turned on by defaultI. Several ways to exclude lines in text that contain a word (contiguous string)Grep-v ' xxx ' textGawk '!/xxx/{print $} ' textGrep-p ' \b (?!. *xxx). *\b ' TextNote 1:pcre,perl compatable Regular expressionNote 2:0 wide assertion, the so-called "0 wide", that is, the condition itself does not occupy any character bit, unless the special designation, regardless of the positive and negative match, does not display the condition itself content; where [^x]
Preparatory work:Own private warehouses:Respository: There is a full jar in it;Settings.xml the inside of a sentence, to ensure that the use of their own creation of the warehouse:-----------------------------------------------------------------------------------1. Create the project:2. Modify some of the details of the project:1. Change to UTF-8:2. Modify into jdk1.7:Javacompile-> also change to jdk1.7:So the project is created.But found the project error: found Web-inf below the index.jsp erro
1.BASH (Bourne again Shell)cmd1; cmd2 equals to CMD1CMD22.echo Music; The semicolon is not printed because the semicolon defaults to the command-bound symbol3. Use Pgrep to identify process environment variables[Email protected] shell]$ pgrep compiz4924[[email protected] shell]$ cat/proc/4924/environorbit_socketdir=/tmp/ orbit-carltonhostname=oc3408554812.ibm.comimsettings_integr# omitted many4. Print out the color font#! /bin/bashecho-e "\e[1;31m This is red test \e[0m"5. Analysis of environmen
directory permissions.X:execute; If the file has permission to execute the file, and if it is a directory, the user has permission to enter the directory.1. Read-only access to the directory does not allow the CD to enter the directory, you must have execute permissions to access it.2, only the execution permission can only enter the directory, you can not see the contents of the directory, to see the directory of the file name and directory name, you need to read permissions.3, a file can be d
in the line below, and change to uppercase W. Indicates that only the current directory name is displayed.If ["$color _prompt" = yes]; Then PS1 = ' ${debian_chroot:+ ($debian _chroot)}\[\033[01;32m\]\[email protected]\h\[\033[00m\]:\[\033[01;34m\] \w \[\033[00m\]\$ ' else PS1 = ' ${debian_chroot:+ ($debian _chroot)}\[email protected]\h:\w \$ 'Vim installation Configuration1. Installing Vim,apt-get install Vim2. Set Vim to suit the style of writing code, VIM/ETC/VIM/VIMRC, the file is a pu
each period to for(k=1; k) + { - if(Array[j] = =0)//if the No. 0 cycle, the tree height is 1 the { *Height =1; $ }Panax Notoginseng if(k%2==0)//even cycles plus 1 - { theHeight + =1; + } A Else//double Odd Cycles the { +Height *=2; - } $ } $ //Output Tree Height -printf"The%d period tree height is:%d\n", array[j],height); - the } - Wuyi Ge
( ) . authenticated (). and (). Httpbasic ();} }In fact, is to formLogin() kill, and return to the previous basic Auth authentication method, as shown.Now we can use the following command to decrypt it.
such as decryption:Curl http://xx.xx.xx.xx:7100/decrypt-d secret-u User:password
After the basic auth is restored, the previous service requires the encrypted Connection Configuration Center to function again.1.5. MavenAfter upgrading to spring boot 2.x, it is not
functional interface.See, Lambda and functional interfaces appear, and the function interface itself is for lambda service.So, what is a functional interface? It is simply that an interface (abstract class) has only one method to implement, and we are called a functional interface.To express this concept, an annotation is used to express the concept in Java8, public @interface Functionalinterface {}This annotation is just a markup annotation, and the only thing that can be provided is to indica
derivation of Swift. In fact, the type defined on the left side of the code is just the type that the programmer wants, and the right side is the type of the program . That is, the type of the variable or constant will derive the corresponding type according to the result of the right-hand code execution.You can use the Hotkey option to click View Type. Strict: in swift, no direct operation is allowed between any different types of data .If you want to allow operations between different types
interface, press C to enter command mode, and then enter the following command:find --set-root/vmlinuz> Kernel/vmlinuz> INITRD/initrd.gz3.Linux under BootIf you can use Linux, it's better than the basics, and here's just the process:
Assume that the above three files are placed in the home directory, and the home directory is on the (hd0,0) partition;
To reboot into the GRUB command mode, use the following command:> Linux (hd0,0)/ your Vmlinuz file path > initrd (hd0,0)/ your initr
course, the same, so output result: true;Example 3:1 Final String str1 = "a"; 2 Final String str2 = "B"; 3 String str3 = "AB"; 4 String STR4 = str1 + str2; 5 System.out.println (STR3 = = STR4); // output results? The first line: "A" is stored as a constant in the string pool, and its reference address is assigned to the STR1; final causes the variable STR1 to be treated as a constant the second line: "B" is stored as a constant in the string pool, and its reference address is assigned to the ST
1 #!/usr/bin/env python2 #Coding:utf-83 4 " "There are four numbers: 1, 2, 3, 4, how many three digits can be made up of each other without repeating numbers? What's the number? " "5n = 16num = [4, 2, 3, 1]7List_num = [I * + j * + K] forIinchNum forJinchNum forKinchNumif(I! = j) and(j! = k) and(I! =k)]8 Print('a three-digit number that can make up a different, non-repeating number of%s'%Len (list_num))9 Print('They are%s, respectively'%list_num)Ten One #sort by from small to large A forIinchxr
[email protected]Example 6:How can I visually see when the file was last modified, such as the Yy-mm-dd form?--time-style=styleWith-l, show times using style Style:full-iso, Long-iso, ISO, locale, +format. FORMAT is interpreted like' Date '; If FORMAT is Format1Style is prefixed with ' posix-', style takes effect only outside the POSIX locale# LL--time-style=long-4drwxr24096- -Geneva: + ImagesExample 7:How do I make the terminal output different colors according to the different files?--color[=
.Fields DomainRefers to member variables defined in a struct or union8.Function declarations function name declaration and definition9.Functions Function Name Call10.Global Variables Global Variables11.Keywords keywords (not including built-in type names)Auto Break Case Const continueDefault do else enum externFor goto if inline registerRestrict Returnsizeof staticstructSwitch Typedefunion volatilewhile12.Labels Label13.Local variable declarations local variable definition14.Local variable refer
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.