corresponding to the key would be output.The MDC class for more details.
%
The sequence% outputs a single percent sign.
More Description:
Format modifier
Left Justify
Minimum width
Maximum width
Comment
%20c
False
20
None
Left pad and spaces if the category name is less than characters long.
%-20c
True
20
: Represents the name of the method
You 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, if the category name is less than 20.2)%-20c: Specifies the name of the output category, the minimum width is 20, if the category name is less than 20, the "
Under the Linux system, the first network card is called Eth0, the second network card is called eth1, here we give the first network card to set up multiple IP, also that is to add multiple subnets, such as eth0:0, eth1:1 This network interface, Linux can support up to 255 IP subnet cards.
First, use the command to temporarily add IP
1) Check the eth0 configuration:
Ifconfig
Eth0 Link encap:ethernet hwaddr 00:0c:29:0c:d1:64
inet addr:192.168.36.189 bcast:192.168.36.255 mask:255.255.255.0
Inet6
%l: line number in output code%M: The 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:%20C: Specifies the name of the output category, the minimum width is 20, an
selection, delete the ellipse in the selection, as shown in Figure 20a. After canceling the selection, copy, Flip, deform, move to the right place, and become the doll's other eye. (Figure 20b)
Figure 20a
Figure 20b
Common sense tells us that when people are angry, their pupils shrink, and we can use this to fully express the anger of the doll. The process is very simple, a new layer, with an elliptical tool to draw a red circle, through the copy, Flip, move and other processes, to complete t
.main (testlog4.java:10)
%x: The NDC (nested diagnostic environment) associated with the output and the current line threads, especially for multi-client multithreaded applications like Java Servlets.
percent: Output a "%" character
%F: The name of the file where the output log message was generated
%l: The line number in the output code
%m: The message specified in the output code, the resulting log details
%n: Output a carriage return newline character, The Windows platform is "\ r \ n",
Before the SUSE Linux network card renaming problem, is installed on the virtual machine RAC, by replicating the virtual machine need to complete. Unlike Redhat Linux and Oralce Linux, the following records them for reference.
1, the new node network configuration
#启动节点之后没有任何IP配置信息
bo2dbp:~ # Ifconfig
Lo Link encap:local Loopback
inet addr:127.0.0.1 mask:255.0.0.0
Inet6 addr::: 1/128 scope:host
Up loopback RUNNING mtu:16436 metric:1
RX packets:174 errors:0 dropped:0 overruns:0 frame:0
T
treeB.aprioriC K-meansD SvmBy default, the FTP server's control port is (), and the port when uploading the file is ().(A). Ports greater than 1024B 20C 80D 2 1(+) A. Ports greater than 1 024B 20C 80D 21stUse the ping command to perform network detection, and in the case of a series of tests, the first thing to do is () in accordance with the from near principle.(A). Ping Default GatewayB.ping Local IPc.pi
What about Linux's network card changed from eth0 to eth1?Linux the NIC is changed from eth0 to eth1, how to fixWith WMware installed Linux, after successful installation, the network card used is eth0, there is no eth1. But after a period of time, do not know why eth0 can not be used, the system has automatically generated a ETH1 network card, which can be used to see the ifconfig command.[Email protected] ~]$ ifconfigeth1 Link encap:ethernet HWaddr 00:0c:29:a9:22:9dinet addr:192.168.1.108 bcas
] keepalived-1.2.13]# make make installConfigure the keepalived above the Mangent1[Email protected] ~]# vim/etc/keepalived/keepalived.confModify:Global_defs {router_id lvs_devel_R1}Vrrp_instance Vi_1 {State MASTERInterface eth0virtual_router_id WuyiPriority 100 Master should be higher than the standby valueAdvert_int 1Authentication {Auth_type PASSAuth_pass 1111}virtual_ipaddress {192.168.1.10 Drift IP Address}}All subsequent sections are deleted or commented out[Email protected] ~]# service ke
described below
Miimon is the time interval unit of the link monitoring is the millisecond, miimon=100 means that every 100 milliseconds to detect connectivity between the network card and the switch, such as the use of additional links in general. mode=0 represents a load balancing method, both NICs work and require a switch for support. mode=1 indicates redundancy, the NIC has only one job, one problem enables the other. mode=6 represents a load balancing method, both NICs wor
We often use virtual machine installations (the Linux version I use is CentOS6.5) and then configure the server's Web environment for program debugging. By default, Linux uses dynamic IP, and every time Linux is started, its IP address is likely to change, in order to debug the program, we generally set the Linux server as a static IP.1 Viewing network conditionsGeneral virtual Machines We set the bridge mode, which is equivalent to the virtual machine and the local computer to connect to a swit
A colleague's friend is taking part in the written examination, encountered such a problem let him help solve, the result colleague found me to help him to fix. Really feeling: communication developed in some ways, I really do not know is not good ah! The topic is as follows, generally we use ifconfig to view the network card information, what command can you pass, let it only output IP address 192.168.42.128Seemingly simple problems, and implementation is not too simple. Look at the following i
:255.255.255.0Inet6 ADDR:FE80::20C:29FF:FEFB:E489/64 Scope:linkUp broadcast RUNNING multicast mtu:1500 metric:1RX packets:36 errors:0 dropped:0 overruns:0 frame:0TX packets:139 errors:0 dropped:0 overruns:0 carrier:0collisions:0 txqueuelen:1000RX bytes:4321 (4.2 KiB) txbytes:13153 (12.8 KiB)Interrupt:10 Base address:0x1400#ifconfig eth0 192.168.1.3 netmask 255.255.255.0(2) Route commandThe route command is used to set routing information for a Linux s
[[email protected] ~]#/etc/init.d/network start[[email protected] ~]#/etc/init.d/network restart NIC status query[Email protected] ~]# service network statusConfigured devices:Lo eth0Currently active devices:Lo eth0Temporary configuration of network card information without rebooting.[[email protected] ~]# ifconfig eth0 10.1.1.10 netmask 255.0.0.0 View NIC interface information, all interfaces are listed by default[Email protected] ~]# ifconfigEth0 Link encap:ethernet HWaddr 00:0c:29:13:5d:74ine
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.