Configure your own Maven repository in eclipse1. Installing Maven (for managing the warehouse, managing the jar package)-1. Unzip the MAVEN installation package-2. Add maven to the environment variable/etc/profile-3. Add the Conf/setting.xml file
Scripting for the special use of the while statement under the Linux Bash Program (10)1. Loop control:Break: Interrupts the entire loop statement, which is the statement following the execution of the script after exiting the loopContinue: Interrupt
Special usage One whileSyntax Formatwhile read line; DoLoop bodyDone Function: Reads each row in the/path/from/soemfile file sequentially and assigns this line to the line variableExample: Scan a/etc/passwd file for each row, if the Discovery gecos
1:lsof can find out which process is writing which filelsof/tmp/COMMAND PID USER FD TYPE DEVICE SIZE NODE NAMEBash 2425 root cwd DIR 202,3 1400832 2457601/tmp/Bash 4556 root cwd DIR 202,3 1400832 2457601/tmp/Lsof 19283 root cwd DIR 202,3 1400832 2457
This article describes the most common tools for using the shell to process text under Linux:Find, grep, Xargs, Sort, uniq, tr, cut, paste, WC, sed, awk;The examples and parameters provided are the most commonly used and most practical.I use the
Linux provides top, PS commands to view current CPU, mem usage, briefly described as follows:One, using the PS view process resource consumptionPs-auxWhen you view process information, the third column is CPU consumption.[Email protected] utx86]# Ps-
1. Common functions:
Fileobject.read ([size])The size is the length of the read, in bytes. If you do not specify a parameter, read all at onceContent, returned as a string, with a "\ n" symbol at the end of each line.code Example 1:with
Writing a:
Copy Code code as follows:
#!/bin/bash
While Read line
Todo
echo $line #这里可根据实际用途变化
Done
Writing two:
Copy Code code as follows:
#!/bin/bash
Cat Urfile | While Read line
Todo
Echo $line
The servers are:Server a:192.168.1.6, synchronizing directory:/var/wwwServer b:192.168.1.7, synchronizing directory:/var/wwwInstall UnisonFirst install OCaml, version is at least 3.07 or higherDownload Address: http://caml.inria.fr
The
We currently want to use the Zabbix every five minutes to monitor an error log file, if the monitoring to have errors generated, send an email alert. Like standard access logs, such as Nginx access log, a row represents a log that is easier to parse,
Transaction ISOLATION LEVELThe database transaction isolation level, in which only one transaction can read intermediate results for other transactions.READ UNCOMMITTED (Read UNCOMMITTED content)At this isolation level, all transactions can see the
The usage of read in the shell is detailedOriginal: http://blog.csdn.net/jerry_1126/article/details/77406500The common usage of read is as follows:Read-[pstnd] var1 var2 ...-P Prompt Statement-N Character Count-S shielded Echo-T wait time-D Input
Conditional judgmentIf condition 1;thenCOMMANDElif condition 2;thenCOMMANDElseCommand (:): Indicates that pass does not execute any commandFiRead user input for data judgment1 Echo-N"Enter your number:"2 Read Userinput3 Expr$userinput
TCP UDP commonly used network communication mode, the specific content and transmission mode can be Baidu search here no longer repeat,The main thing I do is to send out the source code, for everyone's reference.First, after the TCP establishes the
TCP and UDP are important in network transmission, as well as in Android development.First look at what TCP and UDP are.What is TCP?Tcp:transmission Control Protocol Protocol TCP is a connection-oriented, reliable, byte-stream-based transport layer (
It is a popular video encoding method. It can be compressed by 2 ~ When MPEG2 has the same picture quality ~ 4 times, that is, if the size of a DVD Video is 1 GB, it can be reduced to about MB after H264 encoding. At the same time, H264 videos can
Josh Triplett began his speech at Pycon 2015 with a "laugh point": porting Python without operating system: He and his Intel colleagues let the interpreter run on the Grub boot, BIOS, or EFI system. He has a lot of interesting things to say, and a
three basic ways in which users pass parameters to the system in JavaMain methodIn Java, the main () method is the entry method for a Java application, that is, when the program is running, the first method to execute is the main () method, which
1 Cin encounters a space return will end the input so it cannot be completed 12 34 such a one-time input2 getline () and get () both functions read one line of input, however, getline () discards the line breakand get () keeps line breaks in the
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.