These days I try to do some stress testing and performance optimization for the project, and also make a summary of the used test tools, and make a summary of the relevant data for later use.
1 Introduction
Improving application performance is a
The problem with cannot execute binary file is encountered under Linux, which is typically caused by a non-root or a compilation environment with no execute permission (the program is replicated by other operating environments).
For the first case,
/* Small Linux thread pool written by Luoxiongwei e-mail:luo6620378li@qq.com welcom to, bugs!
The next step is to add priority to the task in the work queue to implement a priority queue. * * #ifndef __threadpools #define __threadpools #include
Yum Install Subversion
Mkdir/home/svn/pro1
Svnadmin Create/home/svn/pro1
svnserve-d--listen-port 8888-r/home/svn/
Configuration of Authz files
Configure user groups in [groups]
[Groups]
Groupname=user1,user2,user3
Then configure it on the
Linux systems have high efficiency and operational stability when they are run as Web servers. Windows systems can restrict access by external computers to server ports through the system firewall, and Linux is iptables to allow or restrict port
Linux in the maintenance process, often encounter disk space full situation, if the original disk planning is not handled well, processing disk space full of problems will be a more troublesome problem, when the system is installed directly to do
I. Installation of Nginx
1, download a package on the official website of nginx, download the address is: http://nginx.org/en/download.html
2, WinSCP (FTP Upload tool). exe FTP upload tool upload to CentOS
3, I first built a directory, to use the
Pthread_cond_wait
Multi-threaded condition variables
A condition variable is a mechanism for synchronizing a global variable shared between threads, consisting mainly of two actions: one thread waits for the condition of the condition variable to
When disk space is quickly occupied, we must find some files or folders that are more disk-intensive. Typically, it is most likely to find a place to occupy a disk space file or folder, primarily the/tmp Or/var or/home.
There are currently no
Under Linux there is a very cool command rm-f, meaning forced deletion, also this is a very dangerous command (can be understood as forbidden Mantra 2333). So I try to avoid using this instruction.Today I was compiling a C + + file accidentally
The lab server uses Redhat as its operating system, but one of the biggest problems is that it does not shut down properly, or that the power supply does not shut down after the shutdown and requires manual shutdown. So we have been accustomed to
Article source:Linux Find command ignores one or more subdirectories
Article reference: How to avoid a file directory when using Find to locate files
When Linux find is looking for, it is sometimes necessary to ignore some directory does not find,
1, TCP and UDP differences:
1 TCP provides connection-oriented transmission, the communication must first establish a connection (three times handshake mechanism), UDP provides connectionless transmission, no need to establish a connection before
There is a NTP pack in Linux that can automatically calibrate time and is very useful.
The Debian system installs the NTP school pack:
1 Apt-get Install Ntpdate
CentOS System Install NTP time pack:
1 Yum Install NTP
School Time Order:
1
When you use the LL or ls-l command to view the details of a file in Linux, you will see the following words on the first line:Total 20Drwxr-xr-x 8 User Rnd 134 APR 27 04:40./Drwxr-xr-x 6 User Rnd Apr 27 07:56. /Drwxr-xr-x 8 User rnd 4096 May 3 08:13
1. View Host Name
Hostname
2. Modify host name (invalid after reboot)
Hostname Hadoop
3. Modify host name (permanent after reboot)
Vi/ect/sysconfig/network
4. Modify IP (invalid after reboot)
Ifconfig eth0 192.168.12.22
5. Modify IP (
I belong to the Window+vm+ubuntu configuration and sometimes I need to mount the files on Windows to the virtual machine. Then each time you use the command, the following problems occur:
It's easy to solve the problem, but it takes a long time
"Let the summary become a habit"
PWD Prints the current working directory print working directoryPwd-lThe default parameter for PWD is-l, which is the same as performing the PWD and executing pwd-l results, in fact using the environment
1,STARTX: switch to the graphical interface2,PWD: View current directory3,whoami: View Current User4,CD:1. command format:CD [directory name ]2. command function:Toggle Current directory to DirName3. Common examples3.1 Example One: Enter the
① PrecautionsLinux does not differentiate files by extension nameDefault: Compressed package. gz. bz2. tar.bz2. tgz binary compression package. RPMall devices including hard drives, U disks, discs must be mounted before they can be used/bin/Storage
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