declaration difference; it also summarizes a series of templates that enable the device driver to support both the 2.4 and 2.6 kernels.Labels in this article: From 2.4, the kernel, the impact of changes in the kernel-loaded module mechanism on the device driver (makefile), to 2.6: linuxMark this article!Released on: February 1, February 09, 2006Level: ElementaryAccess Status: 3751 viewsSuggestion: 0 (add comments)
1. get the kernel versionWhen the de
with VI tool, find the following data to modify)# The MySQL server[Mysqld]Port = 3306#socket =/var/lib/mysql/mysql.sock (original content, in order to be more secure with "#" Comment this line)Socket =/home/data/mysql/mysql.sock (plus this line)6. Modify MySQL startup script/etc/init.d/mysqlFinally, you need to modify the MySQL startup script/etc/init.d/mysql, the path to the right of the equal sign in the Datadir=/var/lib/mysql line is changed to your current actual storage path: Home/data/mys
1. Get the kernel version
When the device driver needs to support different kernel versions at the same time, in the compilation phase, the kernel module needs to know the version of the currently used kernel source code to use the corresponding kernel API. In the 2.4 and 2.6 kernels, the source code header file Linux/version. H is defined as follows:
Linux_version_code: the binary representation of the ker
Docker how the installation location of the for Windows pull mirrored file changes
Occurrence of the phenomenon:
Install Docker for Windows under Windows10, with Docker pull image files, the size of the C disk is getting smaller, you may have the same idea, want to change the default installation path, this article hope to solve your problem.
Reason Analysis:
The Docker installed on Windows actually cre
You can use the inotify mechanism provided by Linux 2.6 kenel to monitor file system changes, such as adding, deleting, and modifying files.
The following is an example program that can be used to monitor a directory. If you create, delete, or modify a file under this directory, a prompt will be displayed to print the
2. yaffs2
Unlike PCs (files are stored on hard disks), mobile phones use flash as storage media. HTC G1 uses NAND Flash, which is widely used and has many types (such as SLC and MLC ), the storage density is getting higher and higher (dozens of GB nandflash has been available), and the price is getting lower and lower.
Yaffs2 is a file system dedicated to flash, and yaffs2 is short for "yet another flash file
Environment: Machine is Toshiba R700 MachineThe system is Linux Mint 17.1 with Windows 7 64bit booted through the Grub boot program.Dual system installation sequence, my first installation of Windows after installing Linux default boot is Linux, because often let the baby watch cartoons, cut to the default boot is Windows.The actual
in Linux or very much see it. See what to delete what, heard is very dangerous, once so careless of Linux bad. Haha, youth ah, why so long past, then is a rookie, now or a rookie it. I'm sure it's because I'm not good at summarizing. Amitabha ~ ~ ~"Change", this ... I casually said, the modification of the document, the amount is not the editor. Haha, oh, yes, you can modify the properties of the
Source: http://blog.csdn.net/coolraining/article/details/6678759
Changes in power management methods in the new Linux system device ArchitectureLinux-2.6.32 based on
I. Power Management in each data structure of the device model
The device model of Linux is described in combination by multiple struct, such as struct device, struct device_type, struct class,Str
GRUB2 changes to the default startup item click Open Link
When a dual system is installed, there will always be a time when a system is started by default when it is powered on. After installing the Linux/windows dual system, the default is to start Linux, but what if you want Windows to be the default startup system?
In the early
Recently, there is a project to delete the Nginx service generated cache files, because it is not very understanding of the Nginx cache generation strategy, on the internet did not look closely, after discussion, eventually want to introduce the Liunx inotify function, monitoring a liunx directory of various events ( Create,delete,access, etc.).
To find out more about INotify's friends, please refer to the following two posts:
1. http://www.ibm.com/developerworks/cn/
Tags: operation/etc blog Question www post yum source inux directoryTo change the Linux Yum Source method:First step: Enter the Yum profile directory:cd/etc/yum.repos.d/Step two: Back up the configuration file (you can recover if there is a problem later):MV Centos-base.repo Centos-base.repo.bakStep three: Download the NetEase configuration (or other source configuration
. Default paper Size (lc_paper)12. An overview of the locale itself containing information (lc_identification).Second, understand the setting of localeSetting locale is the setting of 12 categories of locale classification attributes, that is, 12 lc_*. In addition to these 12 variables can be set, for the sake of simplicity, there are two variables: lc_all and lang.There is a priority relationship between them: Lc_all > Lc_* > LANGAs you can say, Lc_all is the most advanced setting or mandatory
Inotifywait is a tool that can monitor file changes in real-time, using the inotify mechanism in the Linux kernel to implement monitoring capabilities.
View Kernel version
[Email protected]oracle ~]# uname-r
2.6.32-220.el6.i686
Installing Inotify-tools
Yum Install-y Inotify-tools
Test monitoring/etc,inotifywait-m/etcUse pu
Linux's dynamic IP is often changed to change, and has not yet found a way to fix it. So after each change you need to do the following operations, extremely troublesome. (You must find a way to fix the Linux IP)1. First find the dynamic IP address after the changeIfconfig-a2. Modify the corresponding IP address in the configuration file of Nginx and httpd 3. Modify the IP address of the remote database
Zhang Yu "Linux kernel Analysis" MOOC course http://mooc.study.163.com/course/USTC-1000029000First, the experimental stepsFirst, the lab building this platform into the Linux system, opened the Xfce terminal to write code.Open the Code folder with the CD Code command, put the following input in the folder, easy to download the code, in favor of the detailed analysis later.It compiles the code by ordering th
The IP and subnet masks are permanently modified in Linux, and can be modified directly into the file with commands. It is recommended to modify it directly in the file.1, enter the network card configuration file Vi/etc/sysconfig/network-scripts/ifcfg-ethn (Ifcfg-ethn is the network card you want to modify, you can u
Download page: http://www.oracle.com/technetwork/java/javase/archive-139210.htmlOpen "Java SE 7" and open "Java SE development Kit 7u80", select "Accept License Agreement" agree Oracle Binary Code License Agreement for Ja VA SE, click on the response version to start downloading.Finally, enter the following command:1# Create JDK Catalogue,-p To create multiple entries2$sudo mkdir-p/opt/Java3 4 # Unzip the JDK to the specified catalog5$sudoZXVF ~/Download/jdk-7u80-
Tomcat modifies the Favicon.ico icon, the Linux tomcat modifies the Favicon.ico icon, and Tomcat changes the Favicon.ico icon>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>? Copyright Sweet Potato Yiu March 2, 2017http://www.cnblogs.com/fanshuyao/one, under Windows, put Favicon.ico on the root path of the project ( under the WebApp directory ), and then display the code on the Head label of the page:Java code
"s
Linux environment changes the home directory of JenkinsIn a Linux environment, the Jenkins home directory defaults to/root/.jenkinsJenkins stores all the data files in this directory. There are several ways that you can change this:1. Use your Web container's administration tool to set the jenkins_home environment parameters.Open the Tomcat Bin directory and edit
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.