整理Centos常见的配置文件

1、网卡配置文件 
/etc/sysconfig/network-scripts/ifcfg-eth0

2、DNS客户端的配置文件(网卡重启失效)
/etc/resolv.conf

3、本地系统的DNS解析文件
/etc/hosts

4、配置开机设备自动挂载的文件(可以用blkid查询UUID)
/etc/fstab

5、存放开机自启动程序命令的文件
/etc/rc.local

6、配置系统的环境变量/别名等的文件
/etc/profile
/etc/bashrc(最优先生效)

7、 登录系统前显示系统版本和内核的文件(建议清空)
/etc/issue
/etc/issue.net

8、配置用户登录系统之后显示提示内容的文件
/etc/motd

9、查看系统版本
/etc/redhat-release

10、Linux内核参数设置文件
/etc/sysctl.conf

11、软件启动程序所在的目录(CentOS7以前)
/etc/init.d/

12、设置开机运行级别以及启动相应级别脚本的文件(CentOS7以前)
/etc/inittab
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
分享到:
关键词:Linux运维

网友留言(0 条)

发表评论