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 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 l
-%-4r [%t]%-5p%c%x-%m%nAttached: Description of format parameters
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
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
), 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, 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 th
resolv.conf changes directly after the effect, note, not nameservers,In addition, this configuration file is also knowledgeable, the students can be man resolv.conf view.########################### # #6) View IP, gateway or routing, DNS configuration:##########################[A. View IP configuration Method][[email protected] ~]# Ifconfig = = "Direct command name indicates all network card IPEth0 Link encap:ethernet HWaddr 00:0c:29:1d:28:d5inet addr:10.0.0.190 bcast:10.0.0.255 mask:255.255.255
] Popup interface eth1:determining If IP address 192.168.1.111 is alreadyDevice eth1 ... Determine [Email protected] network-scripts]# IP a1:lo: Qdisc noqueue State UNKNOWN link/loopback 00:00:00:00:00:00 BRD 00:00:00:00:00:00 inet 127.0.0.1/8 Scope host lo inet6:: 1/128 Scope host Valid_lft forever Preferred_lft Forever2:eth0: L T Broadcast,multicast,up,lower_up> MTU Qdisc Pfifo_fast State up Qlen link/ether 00:0c:29:df:72:d D BRD Ff:ff:ff:ff:ff:ff inet 192.168.229.133/24 BRD 192.168.229.255
Tags: ifconfig network configuration link sys ICA virtual network sysconf ETH funcOne: File configuration network card when power on, automatically enableFirst we use IP addr to view IP information[Email protected] network-scripts]# IP Addr1: Lo: 16436qdisc noqueue State UNKNOWN Link/loopbackxx:xx:xx:xx:xx:xxBrdxx:xx:xx:xx:xx:xxinet127.0.0.1/8Scope host lo inet6::1/ -Scope host Valid_lft forever Preferred_lft forever2: eth0: theQdisc Pfifo_fast State up Qlen +Link/etherxx: 0c: in: -: -: F1 BRD
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 information line-wrapping%M the name of the method representedcan be in % a modifier is added to the pattern character to c
the client.
%
Output A percent sign
General Format Configuration:
Configuration
Alignment Mode
Minimum Length
Maximum length
Description
% 20c
Right
20
If the namespace length is less than 20, enter space on the left
%-20c
Left
20
If the namespace length is less than 20,
Article Title: Original: Linux server load balancer technology based on LVS. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Implementation of LVS-based Linux server load balancer technology-basic NAT and dr lvs cluster construction
This is the first actual LVS configuration example. The entire structure is based on NAT operations. In this example, the struct
RHEL6.3 failed to start the NIC After cloning the VM. The company installed RHEL6.3 in the test environment. After cloning the VM, the cloned VM Nic cannot start. The following error is reported: www.2cto.com [root @ localhost Desktop] # service network restartShutting down loopback interface: [OK] Bringing up loopback interface: [OK] Bringing up interface eth0: Error: No suitable device found: no device found for connection 'System eth0 '. [FAILED] When you execute the ifconfig command, you wil
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.