To provide high network availability, we may need to bind multiple NICs to a virtual Nic to provide external services, so that even if one of the physical NICs fails, the connection will not be interrupted. In Linux, it is called bonding, IBM is
Before installing the environment or helping others handle the Centos system, to "seat the check", reduce problems caused by incompatibility between the Linux system version and the software, taking a proper look at the Linux release version and
When the system slows down, we may first focus on the cpu metrics. Sometimes we find that the cpu usage is not high at all, but the system is still stuck, in this case, you may need to consider another thing that affects performance-the disk's IO
First, install the ntfs-3g package on linux, so that the linux system can recognize the ntfs format Disk
Create the directory to be mounted
Mkdir/sda
Run the following command to start mounting:
1
mount
-t ntfs-3g
/dev/sda5
/sda
Now, you can see
My centos 5.5 NIC Driver is r8169, and the latest driver is r8168 on the official website. This makes me feel weird. Doesn't r8169 represent the driver version, or r8169 is not officially developed. Just in case. The following describes how to
Generally, you do not need to modify the OpenSSH client configuration file. For a given user, there are two configuration files :~ /. Ssh/config (user-specific) and/etc/ssh/ssh_config (Global Sharing ). To read these files in this order, for a given
As we all know, linux devices are very special. The system always reads the device in the same way, and the difference between devices is done by the device driver. Because of this, it is very easy to manage devices. Linux also provides virtual
Whereis command
Function Description: The whereis command locates executable files, source code files, and help files in the file system. The attributes of these files should belong to the original code, binary file, or help file. The whereis
Understanding what is a swap Partition
Swap is a virtual memory partition in Linux. Its main function is to release some space in the physical memory for use by the current program when the physical memory is insufficient, the space released by the
In actual work, the company does not directly give the root user to the employee, but temporarily obtains the root permission of the system through the employee's own account.
1. My current test environment is: red hat linux 6
[Root @ rhel1 xcg] #
Ln
Name: ln-make links between files
Function Description: there is a so-called link in the linxu system. There are two types of links:
==========================================================
1. Edit the shell program for log cutting and customize the Directory
[Plain] view plaincopy
# Vi/data/nginx/cut_nginx_log.sh
Enter the code:
[Python] view plaincopy
#! /Bin/bash
# This script run at 00:00
Function cutAccess ()
{
Dir = $1
To use temporary files, consider the following:Ensure that the file names of temporary files do not conflict with each other.Ensure that the contents of temporary files are not peeked, deleted, or modified by other users or hackers.The mkstemp and
YUM proxy settings: OK edit/etc/yum. conf. After adding # Proxyproxy = http: // username: password @ proxy_ip: port, you can also use proxy_username and proxy_password to configure the proxy user name and password, all users use a Global Proxy when
Comments: Common CentOS commands that are frequently used in our work have been carefully organized.The following describes common CentOS commands.I. View cpu using common CentOS commandsCopy the Code as follows:More/proc/cpuinfo | grep "model
Run the command: netstat-tunlp will display all ports and all corresponding programs. You can use the grep pipeline to filter out the desired keyword segments. For programs occupying port 22: Copy code example: [root @ leiwan tmp] # netstat-tunlp |
Forward the port XX that accesses the local machine to the port of another machine.Net. ipv4.ip _ forward = 1 in the vi/etc/sysctl. conf configuration file. The default value is 0, which allows iptalbes FORWARDI directly edited the file and changed
Use ls-l to view the number of hard links of a document:
[Root @ localhost tmp] # ls-liTotal 1042291_drwxr-xr-x2root root 4096 Dec 11 etc7-rw-r -- r -- 2 root 1602 Oct 30 hl_passwd
Use the following statement to view the hard links of a file.
We often encounter this problem. We used ssh to log on to a remote Linux server and run some time-consuming tasks. As a result, the task failed midway through due to unstable network conditions.This is because when a user logs out or the network is
First, format the new hard disk.
Step 1:
Copy codeCode example: [root @ rac1 ~] # Fdisk/dev/sdb
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory
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