Linux multi-thread socket programming experience

Some experiences have been found in ningx (someone used it to maintain 30 thousand processing connections at the same time). These are not only servers that use models such as web, it is also suitable for all others, such as games and ftp

Organize common Linux Network commands

1. Tcpdump command1) All parameters and meanings:-A prints all groups in ASCII format and minimizes the link layer header.-C. After receiving a specified number of groups, tcpdump stops.-C check whether the current file size exceeds the size

Several methods to check whether the currently running LINUX is in the VM or on the Physical Machine

$ Facter virtual Physical $ Facter virtualVmware $ Cat/proc/scsiAttached devices:Host: scsi6 Channel: 03 Id: 00 Lun: 00Vendor: HP Model: P410 Rev: 5.14Type: raid ansi scsi revision: 05Host: scsi6 Channel: 00 Id: 00 Lun: 00Vendor: HP Model: logical

Mediawiki database download address and import Method

Mediawiki import database download: http://zh.wikipedia.org/wiki/Wikipedia:%E6%95%B0%E6%8D% AE %E5%BA%93%E4%B8%8B%E8%BD%BDMediaWiki data import Method Use the php Command that comes with MediaWiki: mwdumper.Manual: Importing XML dumps This page

Configure the MySQL 12.10 environment in Ubuntu 10.7 (cracking)

I will debug the program in Ubuntu next week, so I will take the time to configure the Myeclipse environment today. Preparation: JDK: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html MyEclipse:

Linux system programming file and IO (8): file descriptor-related operations-dup, dup2, fcntl

Objectives of this section:1. File Sharing Open the file kernel data structure A process opens the same file twice Two processes open the same file 2. copy the file descriptor (dup, dup2, fcntl)   1. File Sharing 1. A process opens two file

Ubuntu brightness cannot automatically adjust the ultimate solution

This problem has plagued me for almost two years, mainly because I was lazy and wrote a script to adjust the brightness, but it was a little inconvenient. Recently, the rise has been a bit difficult and finally the problem has been fixed.  

Modify the symbol name through objdump and objcopy

#! /Bin/bash Objdump-t $1> objdump. out Filename = 'basename $1'File =$ {filename % .*} Cat objdump. out | while read LINEDoMODIFY = 0TYPE = 'echo $ {LINE} | awk-F "" '{print $2 }''SEC_NAME = 'echo $ {LINE} | awk-F "" '{print $4 }''SYM_NAME = 'echo $

Usage of sed in Linux

Sed (stream editor) is a good file processing tool. It is a pipeline command, mainly processing in the unit of behavior, you can replace, delete, add, and select data rows. The following describes how to use sed.Sed command line format: -E: directly

Permission management commands for common Linux commands

Chmod u/g/o +/-/= r/w/x Change permission user/user group/other user increase/decrease/grant read/write/executeR = 4 w = 2 x = 1 rwxr-xr -- 754 752: rwxr-x-w- Answer: No, unless other users have 2 permissions on the folder where the file is

[Linux] Debian source update

Path of the file containing the Source:/etc/apt/sources. list Finding a proper source on the internet is troublesome. You can use a tool to update it. 1. install apt-spy: sudo apt-get install apt-spy 2. Run apt-spy: apt-spy-d stable-a asia-t 5. -

Rsync simple application

As needed, the backup should be set up as follows: 1. 1. Install rsync Run the command: yum-y install rsync to install the server.   2. Second: Configure rsync The main three configuration files need to be filled A. touch/etc/rsyncd.

[Reprinted] Vim concise tutorial [CoolShell]

  Do nothing!Read NormalMode. InsertMode. Press I. (Chen Hao Note: you will see the "-insert-" in the lower-left corner of vim, indicating that you can insert it) NormalMode. PressESCKey. InsertAndNormalSwitched. Below are some

Linux Kernel 3.11 official version released

Linus released Linux kernel 3.11. New features worth attention in this version include: Lustre Distributed File System, transparent ARM architecture Big Data Page Support; Xen and KVM virtualization on ARM64; O_TMPFILE opening identifier; dynamic

Differences between while and for in shell programming

1. CodeEcho-en cat abc.txt | ssh-oConnectTimeout =@  2. Run 3. Summary From the code, we can see that, When there are ssh and scp in the loop body, add , That is, when it encounters a space, it starts to execute the loop body. Therefore,

E: the error cannot be corrected because you require some software packages to maintain the status quo, that is, they destroy the dependency between software packages.

When installing terminator and other software, I encountered such problems. Leo @ leo :~ $ Apt-get] password-support (>= .--- Leo @ leo :~ $ Apt-get-common (=:.-1ubuntu3.) :.- Leo @ leo :~ $ Apt-get g ++: Dependency: g ++-(>=. -- (>= .-   So

Linux Kernel 3.11.4/3.10.15/3.4.65/3.0.99

Today, four new versions of Linux are released: 3.11.4 2013-10-05 [Tar. xz] [Pgp] [Patch] [View patch] [View inc] [Cgit] [Changelog] 3.10.15 2013-10-05 [Tar. xz] [Pgp] [Patch] [View

Transplantation of Linux kernel Yaffs2 File System

Author: instructor Li,Hua Qing vision embedded college lecturer. [PURPOSE] The Yaffs2 file system is a commonly used File System in embedded systems and is required for porting Android. By porting the Yaffs File System to the FS_S5PC100 platform,

Linux Netcat command: Swiss Army knife in Network Tools

  Netcat is the Swiss army knife in the network tool. It can read and write data in the network through TCP and UDP. By combining with other tools and redirection, you can use it in multiple ways in the script. What the Netcat command can do is

How to locate memory statistics and Memory leakage in Linux

During product development, You can accurately evaluate the total memory size required by the product by counting the total memory consumption of the current system, so as to select an appropriate memory chip and size, reduce product costs. In case

Total Pages: 5467 1 .... 3826 3827 3828 3829 3830 .... 5467 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.