During the project, the IP address of the host is changed every time the server is restarted because the company's LAN uses the automatic IP address acquisition method. To solve this problem, the solution is as follows:
1. Modify Nic configuration
Vi editor usageThe vi editor is a standard editor for all Unix and Linux systems. It is not inferior to any of the latest text editors. Here we just briefly describe its usage andA small part of commands. The vi editor is identical for any version
We usually use dd commands to test disk I/O performance.
Run the following command on SSH:
Dd if =/dev/zero of = test bs = 64 k count = 4 k oflag = dsync
After the command is executed, the system will automatically create a 268M file. The
In centos, you can use the rm command to delete files. However, if you want to delete a file with garbled file names, you cannot directly use the rm command because the file name cannot be output at all. However, the find command can be used to
I am using 8 M broadband for China Telecom, and the Internet is also expensive. Record the network configuration process of CentOS 6.4. The following statements are executed with the root permission. Enter the su press enter in the command line and
Prepare to learn about ORACLE. when setting up the environment, always prompt that SWAP space is insufficient. Specifically, record the method for adding SWAP space!
To add a swap partition file in Linux, follow these steps:
1. Check the current
Taskset is a CPU adjustment tool that can allocate system tasks to a specified CPU.
This document takes nodejs as an example.
Step 1: query the nodejs Process
Pgrep node1927719283
Step 2: Lock the CPU
Taskset-pc 0 19277 (0 indicates CPU0,
Use vim/vi to encrypt and decrypt files in CentOS1. Use vim/vi encryption:Advantage: After encryption, if you do not know the password, you will not be able to see the plaintext, including root users;Disadvantage: it is obvious that encryption is
A long time ago, an ftp server was installed with vsftpd, but the user data source was not modified. By default, users in the system were used. The ssh port is enabled without any restrictions. After a user logs on to the server, most of the content
Which command
Function Description: The which command is used to search for the location of a system command in the PATH specified by the PATH variable and return the first search result. That is to say, you can use the which command to check
More
Function Description: the more command is similar to cat. The cat command displays the content of the entire file on the screen from top to bottom. More will display one page at a time to facilitate users to read one page at a time. The most
We know that rm is generally used to delete files in Linux, but the rm command does not actually clear the contents of the data block that saves the file, instead, it only releases the index nodes and data blocks occupied by the file. Therefore, the
For Linux user operation records, the command history is generally used to view historical records. However, if important data is deleted due to misoperations, The history command will not be useful. So how should we implement the historical
Recently, I have been studying how to automatically log on to linux servers. This article describes how to automatically log on to the ssh key.
Update:. After finishing this article last night, I found a complete description of ssh authentication on
ACL permission Control
Set ACL permissions: setfacl
View ACL permissions: getfacl
ACL permission control is designed to provide specific permission settings beyond the read, wirte, and execute permissions of the traditional owner, group, and other.
I. IntroductionThe crontab command schedules the execution of some commands at certain intervals. After the operating system is installed, the task scheduling command is started by default. The crond command periodically checks whether there is any
By default, linux does not allow the root user to log on to the linux host through telnet. To allow the root user to log on, you can use one of the following three methods:
1. Modify the login file
Remote Logon Restrictions in RedHat are reflected
Linux device management
The main task of device management in Linux is to control the device to complete the input and output operations, so it is also called the input and output (I/O) subsystem.
Its task is to shield the details of the
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