This article will give a detailed explanation of the mutex, and use a mutex solution in the previous article, two semaphores to solve only after the child thread finished processing and statistics of the input, the main thread can continue to
In the Linux system, all devices are files, so our U disk is also a file. Disk devices are abstracted into SDA files, and U disk devices are abstracted into SDB files.
1. View all the device files.
In the Linux file system, all the device files
Function Description:Gets or sets the resource usage limit. Each resource has an associated soft and hard limit, which is the limit that the kernel imposes on the resource, and the hard limit is the maximum value of the soft limit. The 0~ call
Maximum number of ===== threads = =
The maximum number of threads for a single process in a Linux system has its maximum limit Pthread_threads_max
This restriction can be viewed in/usr/include/bits/local_lim.h
For linuxthreads This value is
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
struct stat { mode_t st_mode; file type. File Permissions ino_t st_ino; I node number dev_t st_dev; dev_t st_rdev; Device file serial number nlink_t st_nlink; link uid_t st_uid; gid_t st_gid;
Nonsense not much to say that directly on the steps1, modify the php-fpm.conf configuration fileModify/usr/local/php/etc/php-fpm.conf (of course this is related to your PHP path) configuration file
Start Pid=run/php-fpm.pid
; Pid file
;
Why do you want to set up?In the development process, some of the development packages within the company are sometimes used, and it is obvious that it is inappropriate to put these packages externally. In addition, these internal dependencies may
fuser FunctionFuser can show which program is currently using a file on the disk, mount point, or even network port, and give the program process details.Fuser Displays the process ID using the specified file or file system. By default, each file
Linux's IP commands are similar to Ifconfig, but the former is more powerful and intended to replace the latter. With the IP command, you can easily perform some network administration tasks with just one command. Ifconfig is a command that has been
Transferred from: http://www.cnblogs.com/itech/archive/2011/06/08/2075145.htmlFirst, uptimeThe uptime command is used to see how long the server has been running and how many users are logged in to quickly learn about the load on the server.The
SU User name (if no user name is preset to root) For example, assuming the current user User01, want to transition to User02, then enter the command: SU user name (if not entered user name is preset to root) example, assuming the current user User01,
(1) ACL permissions1. See if the partition ACL permission is on: Dumpe2fs-h/dev/sda3-H displays only the information in the Super block, not the details of the disk block group2. Temporarily turn on partition ACL permissions: Mount-o
1: Nic File/etc/sysconfig/network-scripts/ifcfg-eth0[[email protected] scripts]# Cat/etc/sysconfig/network-scripts/ifcfg-eth0device=eth0 # # Physical device name, Eth0 is the first NIC; e Th1 for the second NIC Hwaddr=00:0c:29:84:0c:21 # # network
IptrafThe Iptraf is an interactive, brightly colored IP LAN monitoring tool. It can display the amount of data transferred between each connection and the host. Here is the screen.
$ sudo iptraf
Install Iptraf:
# Centos (Basic software
Ideas: 1, virtual machine to increase the capacity of the disk;2, increase the capacity of the disk to the system partition;Preparation phase:Download gparted software: https://sourceforge.net/projects/gparted/files/gparted-live-stable/First step:
/root/.ssh (The following is the root permission operation)1. Generate key.$ ssh-keygenAll the way to the return, until the Id_rsa is generated, id_rsa.pub1.1 chmod Id_rsa.pub2. Modify the/etc/ssh/ssh_config file (root user)//normal user Vim
1. Delete DirectoryRM-RF Directory Name-R is recursive down, no matter how many levels of directory, delete-F is directly forcibly deleted, without any hint of meaningReference: https://zhidao.baidu.com/question/210217197.html2. View port numberUFW
Supplement: about man, Common commands in see also and vim
1.When checking the/etc/issue file, use man issue to find that see also in manual contains the words motd (5), agetty (8), and mingetty (8. And the meaning of the issue (5) at the beginning
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