In order to handle a large number of customer connection requests when the Linux socket server is short programming, the use of nonblocking I/O and multiplexing is required, select, poll, and Epoll are the I/O multiplexing provided by the Linux API,
1) Start the slogan: -Jaccept# -J accept#3306 -j ACCEPT2) Then Save:#/etc/rc.d/init.d/iptables Save3) To view open ports:#/etc/init.d/iptables Status-------------------------------------------------------Additional instructions: Turn off the
Linux Package Management:
Package Manager Features: Packaging, package management (install, upgrade, uninstall, query, checksum)
Currently, there are two common tools that are commonly used in Linux.
Deb:debian Linux uses
Swap partition Swap:When the CPU is running out of memory, it temporarily consumes a portion of the hard disk space to store memory information, which is the swap partition.To create a new swap partition swap:1 Create a new partition by setting the
SSH is an important way for Linux remote connection, how to configure the SSH service to install Linux system, how to open ssh? Let's take a look at it below (this example shows how to open the SSH service for the CentOS system).Query \ Install SSH
Sed is one of the Three Musketeers known as Linux text Processing.SED operates on a line-by-row basis for text, but by default SED does not modify the original file (you can add parameters to modify the original file) because SED creates its own
Tasks scheduled in Linux, scheduled to perform certain tasks or periodically perform certain tasksTask Schedule:Perform a task at a time in the future: at, BatchTo perform a task periodically: crontabAfter completing the task, Liunx will send a
1. After inserting the USB drive, enter the Fdisk-l command under Linux, as shown belowIndicates that the device has been identified and that the name of the device is SDB1.2. Set up a mounted USB mount directory (can be customized
This article mainly introduces the use of Zip/unzip Compression decompression command and parameter description, the need for friends can refer to the following1. Compress the MyData directory below the/home directory to Mydata.zipZip-r Mydata.zip
Brief introductionThere are many kinds of text editors under Linux, VI is the most commonly used, and it is also standard for each version of Linux. Note thatVI is just a text editor that can color characters and can be auto-complete, but unlike
This records the following commands such as chmod, Chown, CHGRP, unmask use formats, common options, and what usages they have.
Rights Management Related commands
1. chgrp Change the user Group command of the fileChanges the user
1. Summarize the detailed usage method of the task plan (at, crontab) on Linux system;
at: Executes the command at the specified timeAt [option] ... TimeTime:(1) Absolute timeHH:MM,Mmdd[cc]yy, Mm/dd/[cc]yy, dd.mm.[cc]yy or
#lscpuThread (s) per Core:2Core (s) per Socket:6Socket (s): 2-----------------------------------------------Before you can determine whether Hyper-threading is currently turned on , you need to determine the other data:1, number of physical CPUs:
Git basic tutorial
The following is actually a basic tutorial for Git use within the company. I will record it here.
Modify Git configurationsWindows operating system line feed Configuration
git config --global core.autocrlf input
User name and
Install JDK 8 in CentOS
Install JDK 8 in CentOS
Install JDK 8
1. Go to renewal.
2. Create a/usr/java folder, place jdk-8u60-linux-x64.tar.gz in the folder, and switch to the/usr/java directory.
3. Execute the command tar zxvf
Linux Process understanding and practice (1) Basic concepts and programming Overview (fork, vfork, cow)Process and program what is a program? A program is a set of commands to complete a specific task. What is a process? [1] from the user's
Linux disk and file system management (2) _ file system detectionFile system check: The file system check tool fsck (file system check) is required because the hardware or software may crash or suddenly shut down the computer due to power supply)
Vagrant sets up the LNMP environment of Ubuntu
Install Vagrant and Virtualbox.
mkdir Ubuntu_lnmpvagrant init ubuntu/trusty64
Open vagrantfile to open these two configurations
config.vm.network "private_network", ip: “192.168.10.10"config.vm.provider
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