Common requirements:1. Disable remote login of root account;2. Modify the SSH default port 22 to 2222 to improve security;3. Authorize an ordinary user to use sudo su to switch to the root account, and no need to enter a password;4. Allow only hosts
1.linux user-State and kernel-stateThe Intel x86 architecture has 0~3 four levels of execution, 0 highest and 3 lowest, and Linux uses only 0 and 3, respectively, to represent the kernel State and user state. In Linux, only the kernel state can
df-See how much free disk space the different file systems have, the disk utilization of the mounted file system (shown in K only). df-h Display disk space in a readable manner (K,m,g visually based on file size)Show Inode usage: The inode is a data
1. list files without any options: You cannot see the file type, size, modification date and time, permissions, and links to such specific information.2. list file listing with-l option: can show whether it is a file or a directory, its size, the
The command MV for renaming files or folders under Linux can be renamed, and files or folders can be moved.Example: Renaming directory A to BMV A BExample: Move the/a directory to/b and rename to Cmv/a/b/cIn fact, in the text mode to rename the file
System# uname-a # View kernel/Os/cpu info # head-n 1/etc/issue # view OS version # Cat/proc/cpuinfo # View CPU Info # hostname # View Meter Computer name # LSPCI-TV # List all PCI devices # LSUSB-TV
Linux uses the rename command to rename files in batches.
Using rename commands in linux to rename files in batches
Command Format:
Usage:Rename [-v] [-n] [-f] perlexpr [filenames]
Parameter description:
V displays the details of file rename.
N.
Sing Xing sorts out common gcc parameters in Linux, and sing Xing linuxgcc Parameters
First, gcc and g ++ are the gnu c and c ++ compilers respectively, and they generally need to be divided into four steps during compilation:
① Pre-processing: for
Study Linux notes (6) -- process operations, linux --Process scheduling and management:
A process is the basic organizational unit of program resources in the operating system, including program resources, data memory, address space, and other
Enable CentOS7 on a GUI
The new CentOS 7 version is somewhat different from the previous version. taking the startup running level as an example, our previous modifications to the/etc/inittab configuration file have become history. The
Disable Centos disk write function
A Linux file has three times by default.
Atime: the access time to this file.
Ctime: the time when inode of this file changes.
Mtime: the time when the file was modified.
If there are multiple
Study Linux notes (5)-Mysql ApplicationCheck whether mysql is installed:
# Rpm-qa mysql;If the installation has been completed, delete the command:
# Rpm-e -- nodeps mysql (-- nodeps is forcibly deleted)
Also, use the command line to back up
CentOS5.x kernel Optimization
It mainly analyzes the items in/etc/sysctl. conf in detail. All the content is collected and sorted through the network for your convenience.
System Optimization items:
Kernel. sysrq = 0
# Use the sysrq key combination
Apache Environment + Nginx environment in CentOS
Both Apache and Nginx have unique advantages in certain architecture environments and user needs. For example, it may be easier to use Apache for dynamic pages and regular operation proficiency,
CentOS7 build LEMP website environment
Generally, the Nginx system architecture is used for large website construction environments, which is more vulnerable to threads and pressures than Apache. However, Apache environments are sufficient for
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