1. Preface
Test the execution time of a program, including user CPU time, system CPU time, clock time. Before the acquisition time is in the program's main function with a time function, this can only be a rough calculation of the execution of the
This article uses the command Debian and CentOS General, the file directory default and lnmp the same, please make the appropriate changes.
An example of www.xxx.com binding on the Wwwroot catalogue of VPS1 in this paper
1.VPS1 Data Packaging (
Monitoring Application Interface: News interface, weather interface Processing method: Automatically restart Tomcat when application interface is not available, and send alert email to relevant people
#!/bin/bash #---------------------------
One, what is Pidof order?
Copy Code code as follows:
Explanation in the #man pidof:
Pidof-find the process ID of a running program.
pidof– is used to find the PID of a running program.
Pidof is actually the same program as
The sort command helps us sort according to different data types, and its syntax and common parameter formats:Sort [-bcfmnrtk][source file][-o output file]Supplemental Note: Sort can be sorted against the contents of a text file in units of behavior.
But on the server, many use Linux server, the source program uses UTF-8, so it is easy to generate character encoding problems.
If you just transcoding the CSV file to UTF-8, then there is no problem on the Windows Server,
On RedHat5.5, in an
One or two important catalogues:Apache has two important directories: 1, configuration directory/etc/httpd/conf;2, document directory/var/www:
Two modes of configuration:Apache's two configuration modes under Fedora: Text mode (Terminal command
^m in the Linux editor vim to delete the end of a lineSometimes, when you open a file in Linux that you've edited in Windows, you see ^m characters at the end of the line. It always feels awkward.The deletion method is as follows:In the Vim command
Whether a device driver in a Linux system is properly installed is a few aspects of general inspection:1, System log. Embedded system is more direct DMESG, see there is no device keyword-related error information (universal system can check
(a) replaced by the VI editor.You can use the: s command to replace a string in Vi/vim.: S/well/good/replaces the current line with the first well being a good: S/well/good/g replaces the current line all well is good: N, $s/well/good/replaces the
1. Installing DoxygenCurrently the latest version of the Doxygen is doxygen1.8.13, the installation package can be downloaded on the official website, the URL is:http://www.stack.nl/~dimitri/doxygen/download.html#latestsrc .When downloading from the
1. Delete the 0-byte file:Find-type f-size 0-exec rm-rf {} \; In Exec, {} represents the file to find, \;2. View the processSort by memory from large to small: ps-e-o "%c:%p:%z:%a" |sort-k5-nrRank by CPU utilization from large to small: ps-e-o
Run the pit countless, and finally use Create_ap to open WiFi hotspot.You can use a project hosted on GitHub, address https://github.com/oblique/create_ap/Installation as shown in the Https://github.com/oblique/create_ap/tutorial, after installation
The code block accessing the shared resource is called the "critical section", and the critical section needs to be protected by some kind of mutex mechanism: spin lock, semaphore, etc.Mutually exclusive access: When an execution unit accesses a
Example: The system to find the file/var/log/messages processThe kernel knows the inode number, according to the inode can be found/corresponding disk block, the disk block has/below the directory and corresponding inode number, and then according
Recently, a VPS customer complained that MySQL hangs for no reason, and a customer complained that the VPS often crashed, landing to the terminal to look at, are common out of the memory problem. This is usually due to the fact that a large amount
Modify/etc/sysconfig/i18n files, such as Lang= "en_US." UTF-8 ", Xwindow will display the English interface, LANG= "ZH_CN." GB18030 ", Xwindow will display the Chinese interface. There's another way. CP/etc/sysconfig/i18n $HOME/. i18n Modify $HOME/.
Table of content:
Garbled problem
Use Gedit to select the correct character encoding to open the file
File transcoding
Summarize
§ garbledFedora is installed by default with the UTF-8 character encoding, which has 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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service