inet 192.168.108.199/24 BRD 192.168.108.255 scope global eth0 inet 192.168.108.100/32 Scope Global Eth0 inet6 fe80::20c:29ff:feed:fa67/64 scope link Valid_lft Forever Preferred_lft Forever It should be explained that the virtual IP address is configured on the interface, as the second address of this interface, so the use of the ifconfig command is not visible.Test VIP Drift ProcessWhen the Direct1 fails, the test VIP will drift to direct2.Yo
: Go to the directory we mounted on the client, create a test file, and check whether the file we created is displayed on the server.
NFS client
[Root @ user nfs] # ifconfig> test.txt
[Root @ user nfs] # cat test.txt
Eth0 Link encap: Ethernet HWaddr 00: 0C: 29: 97: 5D: 78
Inet addr: 192.168.0.39 Bcast: 192.168.0.255 Mask: 255.255.255.0
Inet6 addr: fe80: 20c: 29ff: fe97: 5d78/64 Scope: Link
Up broadcast running multicast mtu: 1500 Metric: 1
RX packets:
prompt in the ocean of strings: "You have purchased and registered the shared data protection expert advanced Edition Software, thank you for your support! ". This prompt is no longer clear. Double-click it and you will be directed to the corresponding code. We still perform analysis in the order of first flow and then algorithm, just like the previous analysis process.
An amazing burst"First, find the place where the registration process starts, follow the registration success prompt to look u
protected]the authenticity of host ' 172.16.30.10 (172.16.30.1 0) ' can ' t be established. RSA key fingerprint is b7:1f:51:1f:7e:71:a9:fc:c6:c3:6d:cd:b8:1a:76:8e.Is you sure want to continue connecting (yes/no)? yeswarning:permanently added ' 172.16.30.10 ' (RSA) to the list of known hosts. [email protected] ' s password://Enter the root password of the remote host now try logging to the machine, with "ssh" [email protected] ' ", and check In:. Ssh/authorized_keys see it on the instructions se
: The name of the file where the output log message was generated%l: Line numbers in the output code%m: The specified message in the output code, resulting in the log specific information%n: Output a carriage return line break, Windows platform is "\ r \ n", Unix platform for "\ n" Output log information line-wrappingYou can add modifiers between% and pattern characters to control their minimum width, maximum width, and text alignment. Such as:1)%20c:
editing the configuration file of the NIC, restarting the network service, or restarting the system.The DNS pointer to the configuration file is:/etc/resolv.confFile format: nameserver 192.168.0.1The DNS server can have three, that is, you can type three times in this file.
3, command line mode, immediate effect, restart failure.There are three main types of configuration commands for network interfaces:A, ifconfigB, IPC, Nmcli (CentOS7)A. Use of the Ifc
characters to control their minimum width, maximum width, and text alignment.
Such as:
1)%20c: Specify the name of the output category, the minimum width is 20, if the category name is less than 20, the default is the right alignment.
2)%-20c: Specify the name of the output category, the minimum width is 20, if the category name is less than 20, the "-" number specifies left-aligned.
=10.1.253.253Prefix=16[email protected] network-scripts]# cat ifcfg-eth0:1Device=eth0:1Bootproto=noneipaddr=192.168.253.253Prefix=24[Email protected] network-scripts]#Step Three: Restart the Network Service (to ensure that the NetworkManager service is in a stopped state)Note the system will turn on the NetworkManager service by default, if you want to enable the single-NIC dual IP, it is best to close it, otherwise it will not take effect[[Email protected] network-scripts]# service NetworkManag
#主 must be the same as #优先级: Master and prepare 11111192.168. 174.140/ #VRRP ha virtual address}} Configuration of alternate nodesglobal_defs { router_id nodeb}vrrp_instance vi_1 {State BACKUP interface eth0 90 11111192.168. 174.140/ }} Back to top of the testDouble-click Hot SpareBoth devices start Nginx and keepalived, the browser each accessBrowser access: http://192.168.174.140/, which shows the master page.The same IP appr can be us
can add modifiers between% and pattern characters to control their minimum width, maximum width, and text alignment. Such as:1)%20c: Specify the name of the output category, the minimum width is 20, if the category name is less than 20, the default is the right alignment.2)%-20c: Specify the name of the output category, the minimum width is 20, if the category name is less than 20, the "-" number specifies
class in which the output log information belongs, usually the full name of the class in which it is located%t: Output The name of the thread that generated the log event%l: The location of the output log event, which corresponds to the combination of%c.%m (%f:%l), including the class name, the thread that occurred, and the number of rows in the code. Example: Testlog4.main (testlog4.java:10)%x: The NDC (nested diagnostic environment) associated with the output and current line threads, especia
=yesPeerdns=yesPeerroutes=yesIpv4_failure_fatal=noIpv6init=yesIpv6_autoconf=yesIpv6_defroute=yesIpv6_peerdns=yesIpv6_peerroutes=yesIpv6_failure_fatal=noname=eno16777736uuid=5b96b479-11f3-4aec-b984-129de5721e7bdevice=eno16777736Onboot=noChange Onboot=no to Onboot=yes and save exit restartReboot and use IP addr show to see1:lo: Link/loopback 00:00:00:00:00:00 BRD 00:00:00:00:00:00inet 127.0.0.1/8 Scope host LoValid_lft Forever Preferred_lft ForeverINET6:: 1/128 Scope HostValid_lft Forever Preferre
client, then create a test file and see if the file we created appears on the server side.Client for NFS[Email protected] nfs]# ifconfig >test.txt[email protected] nfs]# cat Test.txtEth0 Link encap:ethernet HWaddr 00:0c:29:97:5d:78inet addr:192.168.0.39 bcast:192.168.0.255 mask:255.255.255.0Inet6 ADDR:FE80::20C:29FF:FE97:5D78/64 Scope:linkUp broadcast RUNNING multicast mtu:1500 metric:1RX packets:13460 errors:0 dropped:0 overruns:0 frame:0TX packets:
: The output log information belongs to the class, which is usually the full name of the class. %M: Outputs the method name that generates the log information. %F: The name of the file where the output log message was generated. %L:: The line number in the output code. %m:: The specific log information specified in the output code. %n: Outputs a carriage return newline character, the Windows platform is"/r/n", the UNIX platform is"/ N". %x: The NDC (nested diagnostic environment) associated with
NDC (nested diagnostic environment) associated with the output and current line threads, especially for multi-client multithreaded applications such as Java Servlets.Percent: Output a "%" character%F: The name of the file where the output log message was generated%l: Line numbers in the output code%M: The specified message in the output code, resulting in the log specific information%n: Output a carriage return line break, Windows platform is "\ r \ n", Unix platform for "\ n" Output log inform
produced.log4j.appender.a1.layout.conversionpattern=%-4r%-5p%d{yyyy-mm-dd HH:mm:ssS}%c%m%nThe meaning of several symbols in the log Information format:-X: Left-aligned when the information is output,----need to study%d: the date or time of the output log time, the default format is ISO8601, or the format can be specified later, for example:%d{yyy-mmm-dd hh:mm:ss,sss},Output similar to: October 18, 2002 22:10:28, 921; %d{absolute} is not included date%p: Output log information priority, that is,
Parameters
Description
Example
%c
Lists the full name of the logger namespace, if the {
log4j configuration File Parameters Example
Output Display Media
Suppose the current logger namespace is "A.B.C"
%c
A.b.c
%C{2}
B.c
%20c
(If the namespace length is less than 20, the left is padded with spaces)
%-
/profile:vim /usr/lvsshell.sh#!/bin/bashecho 1 > /proc/sys/net/ipv4/ip_forward ipvsadm -Cipvsadm -At 192.168.220.100:80 -s rripvsadm -at 192.168.220.100:80 -r 192.168.100.11 -m3, LVS-DR mode installation 3.1, ready to work--lvs ServerIn order to let you know the different ways of LVS, this time we use the VIP way, instead of two net cards (of course you can also use two net card way). The VIP way is the usual way that we will talk about the LVS + keepalived combined working mode. The so-called V
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.