1. Create a script under/etc/rc. d/init. d/to comply with the service script standard;
For example:
VI/etc/rc. d/init. d/GFS
#! /Bin/bash#
Case "$1" inRestart)Echo "umount/Data"Umount/DataEcho "Mount/Data"Touch/var/lock/subsys/GFSMount-T gfs2
Mail: bookworepeng@Hotmail.com
QQ: 196568501
Phone: 13410905075
Author: drivermonkey
-Welcome to the discussion
1) create a root file system. To create a root file system, copy the required root file to a directory and compress it with
How to modify a Linux Command Prompt
How to modify the Linux Command Prompt:Modify the Linux Command Prompt to modify the Linux environment variable PS1. You can use VI to edit the/etc/profile file and add:Export PS1 = '[\ U @ \ H \ W] \ $'You can
P {margin-bottom: 0.21 ;}
10Month22Day, the red flag of the Chinese section celebrates the Red FlagLinuxI was very disappointed that I didn't get a formal invitation for the tenth anniversary. Why?
This year4Month, Red FlagLinux6.0SP3After the
I. Background 1. knowledge points
This blog is intended to introduce the following knowledge points:
Curl obtains the HTTP content;
Execute the PHP file in shell;
Execute shell commands in PHP (through the exec function );
PHP implements the tail-F
There are many ways to adjust the brightness of the laptop screen in Ubuntu Linux. Some adjust the brightness but not the backlight brightness, and some adjust the backlight brightness on my computer ...... I have found this method for a long time.
This article from: http://www.ibm.com/developerworks/cn/linux/l-cn-mthreadps/index.html
Recommendation 1: recursive locks are not supported by Linux by default.
Suggestion 2: When a condition variable is triggered without a waiting thread, it
Three Linux socket addresses
Common socket address of sockaddr
typedef unsigned short sa_family_t;struct sockaddr { sa_family_t sa_family; /* address family, AF_xxx */ char sa_data[14]; /* 14 bytes of
Arm-Linux porting (4)-root file system construction
K-style
Reprinted please indicate from Hengyang Normal College 08 electric 2 k-style http://blog.csdn.net/ayangke,QQ:843308498 mailbox: yangkeemail@qq.com
Related tool versions:
Busybox-1.7.0
To achieve FTP server configuration in Linux, most Linux release packages use the Washington University FTP (wu-ftpd), which is a server software with excellent performance, because of its many powerful functions and ultra-high throughput, over 60%
Reference: http://www.lampchina.net/article/htmls/201006/Mjg4MDMy.html
Note: Some functions in the references cannot be compiled.
Compiling environment: gcc 4.4.3
In windows, we can specify _ declspec (dllexport) to control the export function. In
From: http://blog.chinaitlab.com/html/31/1365331-180901.htmlLinux Command for viewing system information
System
# Uname-a # view kernel/operating system/CPU Information
# Head-n 1/etc/issue # view the operating system version
# Cat/proc/cpuinfo #
After nearly two months, I finally moved to the nearest point. I have a detailed understanding of the scull driver in chapter 3 of Linux Device Drivers (3rd edition), and I will analyze the scull driver, for later viewing.
1. Create a character
This article is excerpted from (occasionally minor changes) "Linux device driver development details" (edited by Song Baohua; People's post and telecommunications press.-- Living Park
Chapter 2 Linux terminal device driver
14.1 terminal Devices
In
1. Download source codeHttp://download.dre.vanderbilt.edu/Next to the ace-6.0.0.tar.gz package, we started a zip package. After decompression, we found various x permissions and line feed issues.
2. Compile and installTar-zxvf ACE-6.0.0.tar.gzCD ace_
In Linux, there are commands dedicated to UUID generation:Uuidgen [-r] [-t].A 32-bit string can be generated. This is obtained in the command line. There is a/uuid. h in/usr/include/lib, which defines the data uuid and the unsigned character pointer.
Bytes
The previous section introduced some basic concepts of process scheduling, and briefly introduced how to assign the priority and time slice of processes to CFS scheduling without preemption. However, the kernel does not simply allocate time
Sysfs File System
The sysfs file system is introduced in the linux 2.6 kernel as a medium for interaction between user space and kernel space. Compared with the old proc file system, it is based on the kernel data structure, so the organizational
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