1. Each character device in the kernel corresponds to a CDEV structure variable, and the following is its definition: linux-2.6.22/include/linux/cdev.h struct Cdev { struct Kobject kobj; struct module *owner; const struct File_operations *ops;
Cause
Recently used nohup created a background process, the default log output to the Nohup.out file, the program ran no longer tube, after about a week, found that the hard disk space is not enough, so find the reason, found that the Nohup.out
First, when we use a single process single connection and use ReadLine modified client program, to connect using ReadLine Modified server-side program, there will be an interesting phenomenon, look at the output:
Run the server side first, then run
As we have said before, the sender can be a K-K to send the data, the receiving end of the application can be two K two k to extract the data, of course, it is possible to take 3 K or 6K data, or only a few bytes of data, that is, the application to
One, what is the socket
The socket can be viewed as a programming interface between the user process and the kernel network protocol stack.
Sockets can be used not only for interprocess communication between native computers, but also for
Like Message Queuing, shared memory has its own data structure, as follows:
struct Shmid_ds {
struct Ipc_perm shm_perm; /* Ownership and Permissions * *
size_t Shm_segsz; /* Size of Segment (bytes) * *
time_t Shm_atime; /* Last Attach time * *
Introduction: In this article, we summarize 5 experiences on the main features of multithreaded programming on Linux to improve the habit of multithreaded programming and avoid the pitfalls of development. In this article, we've interspersed some of
Maybe you know how to use command netstat or route on a Linux system to find (or even add/remove) routes that already exist. But when you do these things you may not know how IP routing works. This article will help you understand the rationale of
Putty Automatic Landing
Putty+keepass can implement Putty automated landing, which is quite handy for fast response and management of Linux.
KeePass is a password management software, easy to use, online download a lot of sources.
After the
Linux will check the hardware information of the network card when it is started, and find that the MAC address and other information do not match the configuration file, add new configuration information in the configuration file. When you replace
1. First check if VNC software is installed
[Root@ocm1 ~]# Rpm-qa|grep VNC
vnc-server-4.1.2-14.el5_3.1
2. Start VNC Service
Use the Vncserver command to start, format: Server:1, this is the city: 1 is the desktop number, each connection requires
First, what is ProxyServer (proxy server), the role of proxy
In the real world we often go to help others do things, such as to help people pay electricity or something, in this case you are not the owner of the meter, but the agent (agents)
One, what is the signal
With Windows we know that when we do not end a program properly, we can force the task Manager to end the process, but how does this actually happen? The same functionality is done on Linux by generating signals and
Software installation in a Linux environment, it is not an easy thing to do; If you compile from the source code after the installation, of course, the matter is more complex; now the tutorials for installing a variety of software are very common;
Using Ubuntu for some time, before continuing with the UNIX and Linux Authority tutorials, make a summary of your own process and experience using Ubuntu, hoping to help beginners a little bit.
1. Get ubuntu6.06 System CD
The official website has
Apache needs to be set up as a virtual Web site space mode.
The new SuSE Apache has been changed to modular.
So as long as you modify a few files can be established in the account, the site corresponds to the location.
Instead of modifying the
Introduction
The work of the time system requires the collaboration of hardware and software as well as the operating system, and in the last part we have seen that most of the time functions rely on kernel system calls, and GlibC only makes one
Linux system (5) DR mode of LVS cluster, lvsdrPreface
The DR mode is one of the three load balancing modes in the lvs cluster. in the previous article, I wrote about the establishment and Principles of the NAT mode. Why do we need the DR mode and IP
Change the mysql password in linux
(Debian system)
1. serviceMySQLstop2. mysqld_safe -- skip-grant-tables3. Open another console and continue the following steps4. log on to mysql-u root with a blank password5. show databases;6. use mysql;7. update
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