There are a lot of Linux users because of the selinux is not familiar with, so it will be closed, to avoid affecting the use of other services, the following small series to share with you how to close selinux, I hope to help you.
First
(a) Print kernel debug information: PRINTKThe PRINTK function is similar to the printf function, except that the PRINTK function runs in kernel space, and the printf function runs in user space and the PRINTK function is implemented in the Printk.c
1. Fork functionHeader file:#include Function Prototypes:pid_t fork (void); (pid_t is a macro definition whose essence is that int is defined in #include)Return value: Two values are returned if the call is successful, the child process returns 0,
First method: Use the #$% between three keys on the keyboard${varible##*string} The string after the last string is truncated from left to right${varible#*string} A string after the first string is truncated from left to right${varible%%string*} to
Linux startup processReference: http://www.ruanyifeng.com/blog/2013/08/linux_boot_process.html
The
loads the kernel, first reading the kernel files in the/boot directory. The
initiates the initialization process/sbin/init, which
centos6.7 as an exampleThe first step is to add a 20G hard disk to the R2 virtual machine and partition it with the FDISK command./and/boot directoryMKFS.EXT4/DEV/SDB1 (/boot directory)MKFS.EXT4/DEV/SDB2 (/catalogue)Mkdir/mnt/boot (New mount
1, under the Windows system, many software installations need to configure environment variables, such as installing the JDK, if you do not configure environment variables, run the JAVAC command in a directory other than the software installation,
Mvfunction : Can be used to move files or rename files.format : MV [option] source file or directory destination file or directorydescription : The MV command renames the file or moves it to a new directory. When the second parameter type is a file ,
Send the monitoring log for the day before#!/bin/Bashsource/etc/ Profile Time=`Date-D'-1 Day' "+%y%m%d"' #判断服务是否已经启动ser= '/usr/bin/pgrep SendMail 'if["$ser"!="" ] ThenEcho "The service is running"Else/etc/init.d/SendMail
Common compression commands for Linux systems1 Common compressed file extensions *.tar, *.tar.gz, *.tgz, *.gz, *. Z, *.bz2*. Z Compress program compressed files, obsolete;*.gz gzip program compressed files;*.BZ2 bzip2 program compressed files;*.tar
0 Usage Blktrace:device configuration, and event extraction utility.-store events in Long term Storge-or, pipe to blkparse utility for live tracingBlkparse:event Formatting utility-supports textual or binary dump output $blktrace-d [-R Debug_path] [
# total number of cores = number of physical CPUs x number of cores per physical CPU # Total Logical CPUs = number of physical CPUs x number of cores per physical CPU X number of hyper-threads # View the number of physical CPUs cat/proc/cpuinfo|
Linux system settings and basic operations
The following describes the basic usage, operating commands, and directory structure of Linux!
Linux Operating MethodsGraphical interface: RHEL6 uses the GNOME Desktop Environment pseudo character
CentOS sets various proxy for Internet access
Suppose we want to set the proxy to IP: PORT.1. Web surfing
Setting proxy for Web surfing is simple. In the firefox browser, Edit --> Preferences --> Advanced --> Network
Click Settings under
Linux kernel module ManagementLinux Kernel Modular Design1. Linux kernel design: single kernel, modular (dynamic loading and uninstallation)
(1) Linux: Single-core design, but fully draws on the advantages of the micro-kernel system design;
After the cluster is installed, how to test and use the cluster-Hadoop single-host (pseudo distribution)
How to test and use a cluster after the cluster is installed:
To run Hadoop, first go to the directory where hadoop is located, and first run
DHCP Service ConstructionDHCP Service Construction
First, we need to install the DHCP software package. We use the rpm package to install it with yum.
[root@localhost ~]# yum install -y dhcp.x86_64
You need to modify the configuration file:/etc/
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