A large amount of time_wait processing in Linux

Linux: RedHat as4 After the socket program closes the connection, the port is not released immediately. The default time is 60 seconds later. Run the netstat-An command to check whether a large number of time_wait instances exist. If the

Tmpfs in Linux

The/dev/SHM will be loaded when the Linux system is started by default. It is called tmpfs. Some people say it is the same as ramdisk (Virtual Disk), but it is actually different. Like a virtual disk, tmpfs can use your RAM, but it can also use your

Check the number of characters in Linux

1. view the kernel version: 1) [root @ Linux download] # Cat/proc/versionLinux version 2.6.18-194. EL5 (mockbuild@builder16.centos.org) (GCC version 4.1.2 20080704 (Red Hat 4.1.2-48) #1 SMP Fri APR 2 14:58:35 EDT 2010 2) [root @ Linux download] #

Configure two Tomcat applications on the same Linux Server

Configure two Tomcat applications on one server. The catalina_home environment variable cannot be configured in/etc/profile. 2. Keep the default settings for the First tomcat configuration. modify several options in the server. xml file under the

Centos3 Linux server environment Configuration Optimization

Original post:Centos3 Linux server environment configuration optimization explanation Wikipedia, free encyclopedia Directory[Hide] 1 Content Overview1.1 adjustments and settings after centos3 Installation1.2 Upgrade OpenSSL and

Detailed description of Linux fork () function instances

Fork function learning:   # Include # Include # Include # Include Main () { Pid_t PID; pid = fork (); If (PID Printf ("error in fork! "); Else if (pid = 0) Printf ("I am the child process, my process ID is % DN", getpid ()); Else Printf ("I am the

Common ubuntu (Linux) commands (1)

Common Ubuntu commands Sudo apt-Get install software name install software command Sudo Nautilus open the file (with root permission) Switch su root to "root" Ls to list current directory files (excluding hidden files)Ls-A: List the current

How to exclude other files in a Linux or tar package

In the backup. Sh file, write the following:Backup = "/home/gfdpsdev/backup/dps_backup"Time = $ (date + % F)Backup_path =/home/gfdpsdev/backup/dps_backup/$ timeIf [! -P $ backup_path]ThenMkdir-P "$ backup_path"FiCD backupTar-x *. List-zcvf $

Use of Linux conditional locks

In Linux, multi-threaded programming will certainly encounter situations where conditional variables are required. In this case, you must use the pthread_cond_wait () function. However, the execution process of this function is hard to understand.   

Static QT program compilation in Linux/Ubuntu

In general, the program compiled with QT depends on the system QT library, that is, it cannot be used to move to other systems without the QT library installed. Will prompt missing ...... Library files and other errors. This is the result of dynamic

Linux Power Management Research Note-acpid Working Principle

Linux Power Management Research Note-acpid Working Principle   Please indicate the source when reprint: http://blog.csdn.net/absurd/   In the design of handheld devices, power management has always been one of the important research topics.

A simple web server in Linux

A simple web server in Linux can be used to process static HTTP requests. How to Use SOCKET and HTTP #include #include #include #include #include #include #include #include #include #include #defineFILE_MAX_SIZE100000#define back_log10#define PORT808

Sigaction Structure Analysis of Linux signal mechanism, signal function, and signal capturing

From: http://hi.baidu.com/phenix_yw/blog/item/6eb4ca391d1479f23a87ce19.html   Signal installation function sigaction (int signum, const struct sigaction * Act, structSigaction* Oldact) The second parameter is a pointer to the sigaction structure

Linux programming: Signal

Create a daemon function: Int daemon_init (void){Int max_fd, RET;Int iret;Struct sigaction Act; Int I;If (iret = fork ()){Printf ("An error occurred while creating the daemon! /N ");_ Exit (4 );}Else if (iret! = 0){_ Exit (0 );}The most critical

Select functions in Linux

The Select system call enables our program to monitor the State Changes of multiple file handles (file descriptor. The program stops at select and waits until one or more of the monitored file handles change their status. There are a lot of files in

Linux Kernel scheduling mechanism

Linux Kernel scheduling mechanism Preemptible and non-preemptible kernelsRelationship between preemptible Linux kernel and Real-Time SystemA good system process scheduling mechanism must meet the requirements of three different applications: 1.

Linux Kernel code tree

Linux-2.6.29 |-Arch: Contains code related to the hardware architecture |-Block: hard disk scheduling algorithm, not driver |-Firmware: firmware |-Documentation: Standard official documentation |-Dirver: Linux Device Driver |-Fs: The file system

Basic Linux operations

1. view the number of CPUs CAT/proc/cpuinfo | grep 'cpu cores' Because CAT/proc/cpuinfo does not display a real number 2. Diff T1: AaaBbb CCC1112233DdDddd T2: AaaBbbbCC1111A2233TttttADF Diff T1 T2 The output is: 2, 5c2, 5 // The

Create and use dynamic link libraries in Linux

As we all know, there are a lot of Dynamic Link Libraries in Windows systems (Files suffixed with. dll, DLL is dynamic link library ). Unlike the static function library, the dynamic link library contains functions that are not part of the execution

Linux dynamic link library advanced applications

In the article "create and apply dynamic link libraries in Linux", I introduced the basic knowledge of Linux dynamic link libraries. the main point is: You can use dlopen, dlsym, dlclose, and other dynamic link library operation functions to load

Total Pages: 5467 1 .... 4843 4844 4845 4846 4847 .... 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.