Step 1: Build the environment
1. Add Zend repository to/etc/APT/sources. List
VI/etc/APT/sources. List
Add at the end of the file
Deb http://repos.zend.com/deb/pe PE non-free
Save the file.
2. Run the command to add
Switch from network:
SIGABRT is to abortProgramIt can be captured, but cannot be blocked. After the processing function returns, all opened file descriptors will be closed and the stream will be flushed. The program will end and core dump will
Today I started to learn about Linux. I chose to install rh9 on the VM in Win2000.
Command:(1) first, add a user. Run the useradd command, and then run the passwd command to modify the password.# Useradd Allen# Passwd AllenThe system creates a
Although JDK environment variables have been configured many times before, they are all configured by others.CodeIt is not until this time that a problem occurs that you have to think about why this configuration is required.
If you use JDK in the
Copy local file to remote server
SCP filename user @ server: new_filename
SCP-r dir user @ server: new_dir
It will make one connection from local to remote
Copy remote file to local
SCP user @ server: Dir/file_name
Use of mutex locks and conditional variables in Linux multithreading------------------------
# Include # Include # Include # Include
Pthread_mutex_t count_lock;Pthread_cond_t count_nonzero;Unsigned count;Void * decrement_count (void *
How to Create a swap file
1) create a large enough fileDd If =/dev/Zero of =/localdisk/swapfile BS = 1024 COUNT = 4096000(The value of count is equal to 1024 x the size of the file you want, 4096000 is 4G) 2) convert this file into a swap
Over the past few days, I have been debugging the Atmel at91sam9x25 serial port. Using it will always lead to oops. Oops content is as follows:
[1023.510000] unable to handle kernel Null Pointer Dereference at virtual address 00000000[1, 1023.520000]
As computer peripherals become more and more abundant, device management has become an important task of modern operating systems, which is the same for Linux. Each time a new version of the Linux kernel is released, a number of device drivers will
Most of the time, we are studying how to read the source code. But in some cases, for example, if the source code is not open or the source code is very expensive, we have to understand the program behavior. In this case, it is very important to
Contains 3 folders
The directory structure is as follows:
INC/Hello. h
Main/Main. C, makefile
Src/Hello. c
The file content is as follows:
Hello. h:
Void Hello (char name []);
Main. C:
# Include # include ".. /INC/hello. H " // The second hello. h
The file is in two folders:
INC/Hello. h
Main/Hello. C, Main. C, makefile
File Content:
Hello. h
Void Hello (char name []);
Hello. c
# Include void Hello (char name []) { printf ("Hello % s! /N ", name); }
Main. c
# Include # include ".. /INC/
Null pointers are generally used for validity detection. In fact, there is a conventional rule, that is, invalid pointers are not necessarily null, just for the sake of simplicity, as long as the pointer is invalid, the rule sets it to null. The
I was not going to start my computer today. I was too sleepy and wanted to go to bed. However, a buddy sent me a text message and asked me a question. So I turned on my computer, I did not expect it to be a very representative problem. By the way,
Reprinted please indicate Author: alanx Email: zhangsuozhu@tom.com QQ: 8540426Http://hi.baidu.com/alanx/
When the kernel is ready for sending packets, the following function will be called. The most important structure is struct sk_buff. Please
1. Add-d_file_offset_bits = 64 to the compilation option to solve the limit on 2 GB files in Linux.
// Example. c# Include Int main (INT argc, char * argv []){File * FP;If (FP = fopen ("test. dat", "W +") = NULL)Return;Int A = 0;Char data [1024] = "
Linux is a required command. Linux provides a large number of commands that can effectively perform a large amount of work, such as disk operations, file access, directory operations, process management, and file permission settings. Therefore,
Introduction to Linux program design-thread operations
7)Create a thread in LinuxThis article describes how to create and use threads in Linux. threads in Linux are a very complicated problem.It is good for me to learn about threads from time to
Code segments protected by mutex, whether read/write, one thread occupies some time, other threads must wait.
The read/write lock can be read by multiple threads at the same time, as follows:
When the read/write lock is in the write lock status,
SVN is an open-source version control software. People who have worked in team development must be familiar with it, and those who have never used it will also use the corresponding software .. google is doing better in version control...
The Google
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