[未完]linux配置文件整理
来源:互联网 发布:知乎 扒皮 编辑:程序博客网 时间:2024/06/14 17:46
Linux 常用配置文件
大纲如下:
暂时先这些后续补全
/boot/grub/grub.conf 为grub自身的菜单选项,以及启动内核时向内核传递的参数.
注:/etc/grub.conf文件为此文件的软链接
# grub.conf generated by anaconda## Note that you do not have to rerun grub after making changes to this file# NOTICE: You have a /boot partition. This means that# all kernel and initrd paths are relative to /boot/, eg.# root (hd0,0)# kernel /vmlinuz-version ro root=/dev/sda2# initrd /initrd-[generic-]version.img#boot=/dev/sdadefault=0timeout=5splashimage=(hd0,0)/grub/splash.xpm.gzhiddenmenutitle CentOS 6 (2.6.32-696.el6.x86_64) root (hd0,0) kernel /vmlinuz-2.6.32-696.el6.x86_64 ro root=UUID=ca9400eb-b947-4a5f-a358-ffe4f64a7389 nomodeset rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=us LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_NO_LVM rd_NO_DM rhgb quiet initrd /initramfs-2.6.32-696.el6.x86_64.img
default 默认启动的系统,以title为序号从0开始计数
timeout grub启动菜单默认等待的时间
splashimage 指定grub引导选项的背景图片
hiddenmenu 隐藏菜单
title 定义菜单项名称,并分割每个启动选项
root 定义系统内核所在的分区,以grub读取的分区为标准,表示方法与Linux系统的表示方法有差异
kernel 指定内核所在位置,及加载内核时向内核中传递的启动参数
initrd 指定镜像文件所在位置
/etc/inittab为启动时定义系统启动运行级别的文件.
# inittab is only used by upstart for the default runlevel.## ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.## System initialization is started by /etc/init/rcS.conf## Individual runlevels are started by /etc/init/rc.conf## Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf## Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,# with configuration in /etc/sysconfig/init.## For information on how to write upstart event handlers, or how# upstart works, see init(5), init(8), and initctl(8).## 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)# id:5:initdefault:
此文件有效的配置只有一行,其余带有井号的都为注释文件.
格式为:label:runlevel:action:process
==lable 标识符==,一般为两位字母或数字,可以随意指定
==run-levels 运行级别==,可以指定多个
==action是描述其后的process的运行方式的==。
==process 运行脚本的命令==
阅读全文
0 0
- [未完]linux配置文件整理
- Linux常用命令整理(未完)
- linux配置文件的区别整理
- Linux常用的配置文件整理
- Axis C++在Redhat Linux上安装(未完待整理)
- MongoDB一些整理(未完)
- 【整理】DOM(未完)
- UML整理-未完待续
- shell 常用指令整理 RedHat配置文件 - linux
- Nginx配置文件简要说明(未完)
- sk_buff(整理)(未完)
- 常用JS整理,未完待续~
- 常用JS整理,未完待续~
- 正则表达式整理(未完)
- redis.py整理(未完)
- 整理一下常用的Linux命令(1)(未完待续)
- Linux - epoll 模型【未完】
- linux常用操作 -未完
- android如何让一个imagebutton在一个线性布局中水平居中
- 模板偏特化 and traits机制
- Java 类——权限修饰符
- Git教程 —— 分支管理
- Leetcode 337. House Robber III
- [未完]linux配置文件整理
- 布局管理器——表格布局
- 数字三角形
- 配置mybatis解决log4j未正常打印sql的问题
- Retrofit:打造自己的Converter之byte[]
- POJ 1848 Tree 笔记
- 在win7,pycharm编译器下配置第一个django程序
- 【实训】Android中xml动画定义
- 计算几何练习2