(353.8 MiB) TX bytes:211382468 (201.5 MiB) Interrupt:163Configure the IP address (effective immediately, but not permanently):Ifconfig eth0 192.168.122.22Configure IP to eth0 NIC: 192.168.120.56Ifconfig eth0 192.168.122.22 netmask 255.255.255.0 (or 192.168.122.22/24)Configure IP address for eth0 NIC: 192.168.120.56, plus child mask: 255.255.255.0To start/close the specified network interface:Ifconfig eth0 onIfconfig eth0 DownSet the maximum transmission unit: [[email protected] ~]# if
:8d:a8:06:ad:2b:ba:d7:7c:1a.Is you sure want to continueconnecting (yes/no)? yeswarning:permanently added ' node1.lw.com ' (RSA) to the list of known hosts. [email protected] ' s Password:now try logging into the machine, with "ssh" [email protected] ' ", and check in:. Ssh/authoriz Ed_keys to make sure we haven ' t added extra keysthat you weren ' t expecting.Test it:[[emailprotected]~]#ssh192.168.6.104 ' Ifconfig ' Eth1link encap:EthernetHWaddr00:0C:29:12:62:A0 inetaddr:192.168.6.104Bcast:192.
one external portMode 3 (broadcast)broadcast strategy: All messages are transmitted on all slave interfaces. This mode provides fault-tolerant capability. We set the two NIC to Mode1 mode with centos6.81>. Set the two network card to be bound to a virtual network card, this function may be affected by the NetworkManager service, to first shut down the NetworkManager service, and turn off boot.[[Email protected] network-scripts]# service NetworkManager stopStopping NetworkManager daemon: [OK][Em
the keepalived service on Node2 and NODE3 respectively:[[Email protected] ~~]# Service keepalived startLog generated at startup in the/var/log/messages file, you can observe the logs in it. The master effect is as follows: Backup will be slightly different.2. View the status in Node2 (MASTER):[Email protected] ~]#ifconfigeth0 Link encap:ethernet HWaddrxx: 0C: in: CE: .:D 7 inet addr:192.168.103.102Bcast:192.168.103.255Mask:255.255.255.0Inet6 Addr:fe80::20c
%20b
%20on%20a.id=b.
ID)%20inner%20join%20admin%20as%20c%20on%20c
. id=b.id)%20inner%20join%20admin%20as%20d%20on%20d.id=c.id)
%20inner%20join%20admin%20as%20e%20o
N%20d.id=e.id
With the execution of such a constructed statement, the final query gets the data form
1 2 3 4 5 6 7 8 9 10 11 12 13 14-15 16
1,a.id a.name a.pwd b.id b.name b.pwd c.id c.name c.pwd d.id d.name d.pwd e.id e.name e.pwd
The 3
Node2 are different virtual hosts that provide Web servers for both back ends;
[[email protected] ~]# ifconfig eth1 192.168.27.10/24 Up # Configure IP address for eth1[Email protected] ~]# ifconfigEth0 Link encap:ethernet HWaddr 00:0c:29:b2:ad:bainet addr:172.16.27.88 bcast:172.16.255.255 mask:255.255.0.0Inet6 ADDR:FE80::20C:29FF:FEB2:ADBA/64 Scope:linkUp broadcast RUNNING multicast mtu:1500 metric:1RX packets:11122303 errors:0 dropped:0
. Client Authentication login: (SSH client)To view service-side IP addresses:
Copy Code code as follows:
# SSH 192.168.100.29/sbin/ifconfig eth0
-----------------------
Address 192.168.100.29 maps to Bogon, but this does not map back to the address-possible break-in attempt!
Eth0 Link encap:ethernet hwaddr 00:0c:29:7a:4f:30
inet addr:192.168.100.29 bcast:192.168.100.255 mask:255.255.255.0
Inet6 ADDR:FE80::20C:29FF:FE7A:4F30/64 Scope:li
% L
line number in output code
3.3 We can also control the minimum width, maximum width, and alignment by adding modifiers between the percent sign (%) and the pattern character, as follows:%20C: Specifies the name of the output category, the minimum width is 20, and the default right alignment if the category name is less than 20. %-20C: Specifies the name of the output categ
The few that are not commonly used:
The name of the file where the%F output log message is generated. Bad performance, not recommended
The name of the method in which the%M output log message is generated. Bad performance, not recommended
The NDC (nested diagnostic context) environment associated with the current line threads relative is used in multi-client multithreading applications
The MDC (mapped diagnostic context) environment associated with the current line threads relative the%x output
Link: http://blog.csdn.net/guoquanyou/article/details/5689652
Do the project is log4j output format parameters annoying, simply put the relevant parts of the API roughly translated, the original see http://logging.apache.org/log4j/docs/api/org/apache/log4j/PatternLayout.html
Parameters
Description
Example
%c
Lists the full name of the logger namespace, and if you add the {
log4j configuration File Parameters Example
Output Display Media
Supp
see on the second machine Docker0 IP is the 172.17.0.2/16,docker container that obtains IP from Docker0 's network, and on the second machine, the Docker container's IP range is limited to 172.17.2.1/24 network segment.
Test host1
View IP to ensure connectivity to Host2 DOCKER0IP
root@controller:~# ifconfig docker0
docker0 Link encap:ethernet hwaddr 00:0c:29:d3:5a:fe inet addr
: 172.17.0.1 bcast:172.17.255.255 mask:255.255.0.0
inet6 addr:fe80::
pattern characters. For example:
1)%20c: Specifies the name of the output category, the minimum width is 20, and if the category name is less than 20, the default is right-aligned.
2)%-20c: Specifies the name of the output category, the minimum width is 20, if the category name is less than 20, the "-" number specifies left-aligned.
3)%.30c: Specifies the name of the output category, the maximum widt
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, equivalent to the combination of%c.%m (%f:%l), including the class name, the thread that occurred, and the number of lines in the code. Example: Testlog4.main (testlog4.java:10)
%x: The NDC (nested diagnostics environment) associated with the current line threads relative, especially in multiple client multi-threaded applications such as Java Servlets.
Per
Do the project is log4j output format parameters annoying, simply put the relevant parts of the API roughly translated, the original see http://logging.apache.org/log4j/docs/api/org/apache/log4j/PatternLayout.htmlParameter Description Example%c lists the full name of the logger namespace, and if the addition of the {Suppose the current logger namespace is "A.B.C"%c A.B.C%C{2} B.C%20C (if the name space length is less than 20, then the left with a spac
relative NDC (nested diagnostic environment), especially in multiple client multi-threaded applications such as Java Servlets.
#%%: Output A '% ' character
#%F: The name of the file where the output log message was generated
#%l: line number in the output code
#%m: Output code specified in the message, the resulting log specific information
#%n: Output a carriage return line break, Windows platform is "/r/n", UNIX platform is "/n" Output log message Wrapping
# You can control the minimum width,
message specified in the output code, the resulting log specific information%n: Output a carriage return line break, Windows platform for "\ r \ n", Unix platform for "\ n" Output log message WrappingYou can control the minimum width, the maximum width, and the alignment of text by adding modifiers between% and pattern characters. Such as:1)%20c: Specifies the name of the output category, the minimum width is 20, and if the category name is less than
multiple client multi-threaded applications such as Java Servlets. %: Output A "%" character %F: output log message produced when the file name %l: Output code in the line number %M: output code specified in the message, the resulting log specific information %n: output a carriage return line feed, Windows platform is "\ r \ n", the UNIX platform is "\ n" output log message wrapping You can control its minimum width, maximum width, and text alignment by adding modifiers between% and pattern ch
Guide
RHEL7 inside the way the name of the network card from the eth0,1,2 into the enoxxxxx format. En is for enthernet (Ethernet), O is for onboard (built-in), and that string of numbers is automatically generated by some sort of index number on the motherboard to ensure its uniqueness. Compared with the original naming method, this new way is relatively long, difficult to remember, but the advantage is that the number is unique, do the system migration is not prone to error.
1. M
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.