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
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
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
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
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 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
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.
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
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 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
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
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
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-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
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
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
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
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