RHEL 启动顺序问题请教
时间:2010-12-30
来源:互联网
RH133里面说,启动过程是这样:
boot loader
kernel
init
rc.local
但对于rc.local讲述非常模糊,百度谷歌了一下,也只有少数在rc.local中添加脚本失败的帖子。
添加启动脚本,正规的做法是怎样的呢,官方这方面的描述在哪里能找到呢?
boot loader
kernel
init
rc.local
但对于rc.local讲述非常模糊,百度谷歌了一下,也只有少数在rc.local中添加脚本失败的帖子。
添加启动脚本,正规的做法是怎样的呢,官方这方面的描述在哪里能找到呢?
作者: 是我别封号 发布时间: 2010-12-30
额,动手做了一下,发现可以。。。
复制代码
- [root@RHEL5TST tmp]# more /etc/rc.local
- #!/bin/sh
- #
- # This script will be executed *after* all the other init scripts.
- # You can put your own initialization stuff in here if you don't
- # want to do the full Sys V style init stuff.
-
- touch /var/lock/subsys/local
- /tmp/tst.sh
- [root@RHEL5TST tmp]# cat /tmp/tst.sh
- #!/bin/bash
- ps -ef >>/tmp/ps.txt
- [root@RHEL5TST tmp]# ls -l /tmp/ps.txt
- -rw-r--r-- 1 root root 6030 Dec 30 09:29 /tmp/ps.txt
作者: 是我别封号 发布时间: 2010-12-30
回复 是我别封号
往里面加就行了
前几天有人问 mysql的
/usr/local/mysql/bin/mysqld_safe --user=mysql &
别漏了后面的 &
往里面加就行了
前几天有人问 mysql的
/usr/local/mysql/bin/mysqld_safe --user=mysql &
别漏了后面的 &
作者: taojie2000 发布时间: 2010-12-30
QUOTE:
回复 是我别封号
往里面加就行了
前几天有人问 mysql的
/usr/local/mysql/bin/m ...
taojie2000 发表于 2010-12-30 09:47
往里面加就行了
前几天有人问 mysql的
/usr/local/mysql/bin/m ...
taojie2000 发表于 2010-12-30 09:47
脚本后面不要吧?我是看教程,有些疑问,顺便研究了一下
作者: 是我别封号 发布时间: 2010-12-30
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28