ITPub博客

首页 > Linux操作系统 > Linux操作系统 > rh131笔记---unit1-system initialization

rh131笔记---unit1-system initialization

原创 Linux操作系统 作者:tonykorn97 时间:2008-07-14 20:40:18 0 删除 编辑
1,如果/dev/hda硬盘上的MBR损坏,重新安装grub
/sbin/grub-install /dev/hda[@more@]

2,grub.conf文件中可以创建MD5密码,创建方法:
[root@ttonykorn97 ~]# grub-md5-crypt
Password:
Retype password:
$1$3KBGX$MmawvUW6MdGW7EgW5isTK.
[root@ttonykorn97 ~]#


3,显示运行级别与切换运行级别
[root@ttonykorn97 ~]# runlevel
N 5
[root@ttonykorn97 ~]# init 3
[root@ttonykorn97 ~]# runlevel
5 3
[root@ttonykorn97 ~]#

runlevel显示的第一个数字为上一次的运行级别,N表示没有。第二个数字表示当前的运行级别。init 后面跟数字切换到需要的运行级别。


4, 和服务相关的基本命令
system-config-services
ntsysv
chkconfig
service

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/312079/viewspace-1007263/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2007-12-05

  • 博文量
    1854
  • 访问量
    2088310