Processes and ThreadsConcept: In Linux, threads are generally considered "lightweight processes", processes are stand-alone units of an application, and threads cannot exist independently, and must be created by a process. The advantages of line
Bad mood, less talk, first of all, the test environment of Windows here:
Windows XP SP3 + SFU3.5 (Windows service for UNIX)
The Linux side uses NFS to share/home/syniapp This directory, my exports file content is:
/home/syniapp 168.168.2.155
Linux systems can view memory usage through the Cat/proc/meminfo command:memtotal:3934164 KBmemfree:307128 KBbuffers:148556 KBcached:1051540 KBswapcached:213796 KBactive:2309512 KBinactive:990744 KBActive (anon): 1710288 KBInactive (anon): 458576
When you deploy a project on Linux, you start Tomcat, and you often see only the following display:
If there is a bug in the project or something unusual, it is difficult to see the error message, how to see the same as the windows of Tomcat or
The elephant will be installed in a refrigerator, a total of three steps, a refrigerator door open, two elephants into, three refrigerator door close, simple and rough. Unfortunately, our process and the conversion of the thread is not the elephant
First, the use of the Select () function to achieve non-blocking wait time, using the structure of struct Timeval {}, here is not much to say.
Second, use Gettimeofday () can obtain the subtle level (0.000001 seconds) of the system time, call two
Introduction to the top commandDuring system maintenance, you may need to look at the CPU usage at any time, and analyze the system condition according to the corresponding information. In CentOS, you can view CPU usage through the top command. When
DHCP service under Linux
Operating system: redhat6.0
I. Structure description
1 gateway Address: 192.168.107.1, subnet mask: 255.255.255.0
2) DHCP server (Redhat 6.0).
IP configuration for DHCP:
3) a client computer. IP is automatically assigned
It's been two years with Linux, but there are still a lot of commands that can't be remembered. In this blog to record some difficult to remember the Linux commands for easy access, this article will be updated for a long time
Xdg-open and in the
1 Shutdown Command shutdown
As if the default in Ubuntu's terminal is the current user's command, just a regular user, so you can use Sudo-sh in the terminal to execute commands under administrator root.
1) shutdown–help
You can see how the shutdown
1. Installation dependency Pack and Chinese man Handbook
sudo apt-get install manpages-posix manpages-posix-dev
sudo apt-get install
Generally execute these two on it, if you have not switched to Chinese, open the file
sudo
Scenario: When installing CENTOS7 on Vmware12.pro, just go in and find no graphical interface. When the installation is not connected to the network, so Baidu query to solve the problem:
1. Networking issues:
1.1 First configure the virtual
Create a cron service for the current user
1. Type CRONTAB-E edit crontab service file
For example, the contents of the file are as follows:
*/2 * * * */bin/sh/home/admin/jiaoben/buy/deletefile.sh
Save File and exit
*/2 * * *
The previous article simply said the basic operation of Linux multithreaded programming, this article to simply say that the synchronization between the threads and mutual exclusion. First of all multithreading synchronization and mutual exclusion
This article is the simple implementation of a Linux under the TCP network programming small example. Total is divided into two parts: customer service end of the implementation and server-side implementation. The implementation of the function is
Why should SACK be designed?
TCP may experience poor performance when multiple packets are lost from one window of data. With the limited information available to cumulative acknowledgments, a TCP sender can only learn about a single lost PA Cket
Linux System Monitoring Tools
1.top Process Monitoring
The top command under Linux is a performance monitoring program that many system administrators use to monitor Linux performance, and this command is available on many Linux or Unix-like
Accumulation of problems in embedded Linux startup process
Bowen Original Address: http://blog.csdn.net/dzassn/article/details/1953993
1.Bad Magic Number
# # Booting image at 33000000
... Bad Magic number
OMAP5912 OSK # (TFTP download good kernel
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