{10.0.4.248 }}5.nginx_check.sh Script Writing #!/bin/bash A = ' ps -C nginx– No-header | WC -l ' If [$A-eq 0 ]; then /usr/local/openrestry/nginx/sbin/nginx / / nginx installation path sleep 2 if [' 0 ]; then killall keepalived fi fi 6. Start the keepalived Master/usr/local/keepalived/sbin/keepalived[[email protected] sbin]# 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 f
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, especially for multi-client multithre
, usually the full name of the class %t: Output the name of the thread that generated the log event % L: The occurrence 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 rows in the code. Example: Testlog4.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. %:
= (ADMIN) commandSamlee User Login test Specifies the relevant command:#建立测试用户及测试组 [[emailprotected]~]#groupaddadmin[[emailprotected]~]# useradd-gadminadmin[[emailprotected]~]#passwdadmin# using Samlee user test: [[ Emailprotected]~]$sudoifconfigeth0linkencap: ethernethwaddr00:0c:29:d3:e4:53 inetaddr:172.16.100.7Bcast:172.16.255.255Mask:255.255.0.0 inet6addr:fe80::20c:29ff:fed3:e453/64 scope:linkupbroadcastrunning multicastmtu:1500metric:1 rxpackets:6
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, especially for multi-client multithre
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, 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 genera
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: 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 ou
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: Specify the name of the out
, 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.%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 "%"
, 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, especially for multi-client multithreaded applications su
LocalAddress: port Scheduler Flags-> RemoteAddress: Port Forward Weight ActiveConn InActConnTCP 192.168.1.80: http rr persistent 50 # View hot standby run logs # tail-f/var/log/messageMar 12 23:35:24 linux-e1j0 avahi-daemon [2016]: Registering new address record for 192.168.1. 80 on eth1.IPv4. Mar 12 23:35:26 linux-e1j0 Keepalived_healthcheckers: TCP connection to [192.168.1.81]: 80 failed !!! Mar 12 23:35:26 linux-e1j0 Keepalived_healthcheckers: Removing service [192.168.1.81]: 80 from VS [192
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: Specify the name of the output category, the minimum width is 20, if the category name is less than 20, th
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.
.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 the log specific information%n: Output a carriage return line break, Windows platform is "\ r \ n", Unix platf
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.