Some important configuration files of the three-linux system of Linux Learning

Source: Internet
Author: User
Tags uuid

Some important configuration files of the three-linux system of Linux Learning

1. Network Card configuration file

/etc/sysconfig/network-scripts/ifcfg-eth0

Description

Device=eth0 #网卡名称

Hwaddr=xx:xx:xx:xx:xx:xx #网卡的mac地址, total 48 bits This is represented by a 12-digit hexadecimal number

Type=ethernet #网络类型为以太网

Uuid=bc0ccb72-8f79-4c6f-a958-ffe55f6595e3 #唯一的一个用户标识, equivalent to ID number

Onboot=yes #控制网卡是否开机启动

Nm_controlled=yes #是否通过networkmanager管理网卡设备

Bootproto=dhcp #开机获取网络的协议, NONE,STATIC,DHCP,BOOTP.

2. Host name configuration file

/etc/sysconfig/network

3. DNS Service configuration file

/etc/resolv.conf is used to specify DNS as the domain name resolution server

4, the hosts analysis

/etc/hosts for configuring host parsing

The Hosts file is a file that is responsible for fast resolution of IP addresses and domain names in Windows systems and is saved in ASCLL format. When you type a domain name (such as www.baidu.com), the computer first looks at the hosts file to see if there is a record of the domain's IP address. If so, access the IP directly, or if no more DNS servers are queried to request resolution of the IP address of the domain name.

5. fs File system static information (set boot automatically mount HDD)

/etc/fstab

Description

First column: UUID or device name

Second column: mount point

Column three: type of file system ext2 ext3 ext4 XFS

Fourth column: Mount parameters

Fifth column: Whether to back up

Sixth column: Whether to boot disk check

6,/etc/rc.local

Automatically run the command or script automatically when you start the system, set the RunLevel and load related startup file settings for the INIT process at startup

7,/etc/inittab

Run-level configuration file (omitted here)

Description

0-halt (do not set Initdefault to this) shutdown

1-single User Mode single

2-multiuser, without NFS (the same as 3, if you don't have networking) multi-user mode without network Service

3-full multiuser mode full command line multi-user modes

4–unused reserved (not used)

5-x11 graphical interface

6-reboot (do not set Initdefault to this) reboot

8,/etc/sysconfig/i18n

The character set of the system

Where en_US is the English character set, can be modified to Chinese character set ZH_CN

9. SELinux configuration file/etc/selinux/config

(SELinux is a security mechanism, details can be referred to above)

10. SSH Service related configuration file/etc/ssh/sshd_config

Instance of the CentOS 6.9 64-bit version of the detailed SSH service configuration file contents

Because of its relatively safe and reliable encryption, the current SSH service is more commonly used remote login mode.

SSH is the abbreviation for secure Shell, which is developed by the IETF Network Working Group, and SSH is a security protocol based on the application layer. SSH is currently a more reliable protocol that provides security for Telnet sessions and other network services. The use of SSH protocol can effectively prevent the information leakage in the remote management process. SSH was originally a program on a UNIX system, and later expanded quickly to other operating platforms. SSH can compensate for vulnerabilities in the network when it is used correctly. The SSH client is available on a variety of platforms. Almost all UNIX platforms-including HP-UX, Linux, AIX, Solaris, Digital UNIX, Irix, and other platforms-can run SSH.

The Linux system profiles listed above are relatively important and commonly used configuration files that can be modified to function as needed. In the Linux system all files, in the Linux system there are many configuration files, for the system services, applications and other important role.

Part of the content is referenced from https://www.aliyun.com/jiaocheng/198741.html

Some important configuration files of the three-linux system of Linux Learning

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.