1. mount command
Basic command format
Mount [-T vfstype] [-O options] device dir
Among them, the-T vfstype manual is better understood.
The-O opthions option mainly includes the following three
Loop: used to connect a file to the
1. Download arm-linux-gcc-3.4.5-glibc-2.3.6.tar.bz2 from windows, decompress the package, upload it to Linux, download it from Linux, or decompress the package.Tar zxvf arm-linux-gcc-3.4.5-glibc-2.3.6.tar.bz2
2. in Linux, CP the extracted file
Here, I would like to share with my brother the steps for porting QT to mini2440. If there are similarities, please forgive me. This may be caused by drawing on the experiences of J's predecessors on the Internet, if you forget it, you cannot write
In essence, mutex is a lock that provides protection for access to shared resources.
1. Initialization:
In Linux, the thread mutex data type is pthread_mutex_t. Before use, initialize it:
For the mutex of static allocation, you can set it to pthread_
Our network management platform is based on ACE, ODBC, and SNMP ++ libraries that can be used across platforms, but it has not been compiled and tested in Linux. This is the log recorded during last year's porting test. Note that the ace, unixodbc,
Under the/usr/lib directory, we can see many file formats, such as libxxx. So and libxxx.. Libxxx. A is called a static link library or a link library. libxxx. So is called a shared link library or a dynamic link library.
=== Archives ===We often
Basic commands
Cat: Read the file content to the standard output.Sort: Sort text rowsUniq: ignore or report duplicate rowsWC: number of lines, words, and bytes of the Statistical FileGrep: print the rows matching the specified mode.Head: the header
The following is a good introduction to mutex:
1. Initialization:In Linux, the thread mutex data type is pthread_mutex_t. Before use, initialize it:For the mutex of static allocation, you can set it to pthread_mutex_initializer or call pthread_mutex_
There are not many profound things that are well documented. Although simple, it is easy to get confused if you haven't done any tests.Int nrecvbuf = 32*1024; // set it to 32 KSetsockopt (S, sol_socket, so_rcvbuf, (const char *) & nrecvbuf, sizeof
RedHat Linux is the most widely used Linux operating system in the world. Because it has the best graphic interface, it is very convenient to install, configure, and use, and runs stably, so it is highly appreciated by new users and old players. Now,
Inter-process communication (IPC) methods mainly include the following:Pipeline/FIFO/shared memory/Message Queue/signal
1. there are also named and non-named pipelines (namely anonymous pipelines) in the pipeline. Non-named pipelines (I .e.
I. File Read speed
In Linux, reading files is implemented by calling sys_read (FD, Buf, count) by the system. Therefore, to increase the speed, it is the simplest way to call the sys_read encapsulation, for example, read () or fread () is used
If you need to reprint it, please indicate the source, http: // www. Chuanjiang. CN.
In addition, I have word electronic document format, if necessary, please contact me: asima127@gmail.com
1 install Redhat Enterprise Linux 3
1.1 prepare the
The following error occurs when you install ipvsdb:
[S @ localhost ~] $/Usr/local/pgsql/bin/postmaster-D/usr/local/pgsql/DataFatal: cocould not create shared memory segment: Invalid ParameterDetail: failed system call was shmget (Key = 5432001,
When installing Linux, I don't know how much swap space is allocated, so I will allocate one randomly. In actual use, for example, installing Oracle10g requires a lot of swap space, if swap space is insufficient, how can we increase the size of swap
(1) threads are also resources. Use pthread_join and pthread_detach to recycle memory.
(2) mutex will form a queue for the threads waiting for the lock, and the spinlock will constantly query the lock, similar to the processing of nonblock.
(3)
---------------------------- Program Development --------------------------
0001 debug the core file (bjchenxu) in Linux)
GDB
: the executable program that generates core dump due to an error.
: name of the core dump file. The default value is
---------------------------- Mysql-related articles --------------------------
0001 where is the Mysql Data Inventory (bjchenxu)
1. If the RPM package is used for installation, the directory name of the database should be in the/var/lib/MySQL
Source... don't remember
[Reprint]
1. Linux entry and exit
Go to Linux:
You must enter your account. You can create the following two accounts during system installation:
1. Root-Super User Account (System Administrator), which can be used to do
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