1, prohibit the root user login ssh
The code is as follows:
#vi/etc/ssh/sshd_config
Put
The code is as follows:
Permitrootlogin Yes
To
The code is as follows:
Permitrootlogin No
Restart the sshd service
The code is as follows:
#service
Aliyun How to Mount Snapshots (Linux)
If you want to copy data from a snapshot from a previous point in time, you can mount the snapshot to the instance, copy the data, and then uninstall the snapshot.
Attention:
Only snapshots in the same area
Step 1: Configure the selection
Aliyun recommends the following configuration combination scenarios to meet the needs of most users.
Getting Started : 1 cores 1 GB 1 MB, suitable for the primary stage of a personal site with less traffic
1, installation Xen
The code is as follows:
Yum install xen* kernel-xen* virt-manager vnc* xen-lib python-virtinst
Kernel-xen: Can run the Xen Linux core
Xen: The main Xen suite, including configuration files, startup scripts, and some function
Because the original installation system design is unreasonable, some zoning is too small, as well as network communication failures and other causes of log file speed growth and other reasons can be displayed as disk space full, resulting in the
In Linux, each file has a specific attribute. Mainly includes the file type and the file permission two aspects. Can be divided into 5 different types: Normal files, directory files, linked files, device files, and piping files.
The so-called file
This article summarizes the following commands:
Wc:word Count
-L: Shows only the number of rows
-W: Show Only words
-c: Show byte size only
Cut: (remove sections from every line of files) deletes a fixed portion of each row of the file, used to
Linux system, if you need to prohibit specific IP address access to ensure the security of the system, simply through the operation of Iptalbes to achieve, the following small set to introduce how Linux to prohibit an IP address access, interested
Overview
The operating system startup process has been relatively vague, think about the experience of checking hardware, loading the operating system, loading
A few processes, such as a user environment, but are actually more complex. After all
When a field in a database, such as an ID, is an integer, the new insert data needs to be sorted from the total maximum value of the current database plus 1.
The maximum ID for the current production database is 150, so it is necessary to start
Linux Delete directory is very simple, many people are still accustomed to using rmdir, but once the directory is not empty, into deep distress, now use the RM-RF command.
Direct RM is OK, but add two parameters-rf namely: RM-RF directory Name
-R
Firewalls can be divided into several different levels of security. In Linux, because there are many different firewall software to choose from, security can be low and high, the most complex software can provide almost impermeable protection
Grammar
1. The operation of the chain
Create a new chain (-N).
Deletes an empty chain (-X).
Change the principle of a built-in chain (-P).
Lists the rules in a chain (-l).
Clears all rules in a chain (-f).
The packet-byte (byte) register (-Z) of all
Mount | grep partition name to see if the partition supports disk quotas
Mount-o Remount,usrquota,grpquota/home temporarily enabled quota
Vim/etc/fstab
Default,usrquota,grpquota permanently Enable quota
Quotacheck-avug scan file system and
The management of LVM
Let's first introduce the DM, and the rationale of the logical Volume:
Dm:device Mapper Device Mapping, a mechanism for providing logical devices
1, the combination of multiple physical devices into a logical device
2, the
Each partition in a Linux system is a file system.
File system refers to the existence of physical space in a file management software (personally think)
After the Linux 2.4 kernel, it began to support a large number of file systems;
Log file
Summary: Hard disk and hard disk partitions in Linux are represented as devices, in our popular parlance, is how to represent or describe the hard disk and or hard disk partitions, but this description should be scientific and specific; For example,
Linux Simulation network environment, mainly using the TC command to rewrite the kernel information to simulate the network card packet delay and loss rate.
Divided into three parts:
1 Install the Linux system, you can use the redhat5.x Enterprise
Want to record a nice Linux desktop and share it with others? To show a friend how to use Linux? Is it hard to describe a Linux problem? Istanbul can meet your requirements. With Istanbul, you can record all the processes on the Linux screen.
I am a debian+win7 dual system, startup encountered a number of small problems, in the search related blogs and friends of the help of successful repair, recorded in order to have a rainy day, but also hope to be able to help meet the same problem
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