|
     
- 帖子
- 1001
- 精华
- 9
- 积分
- 2340
- 阅读权限
- 100
- 在线时间
- 714 小时
|
8楼
发表于 2007-3-30 13:37
| 只看该作者
原帖由 zhanxianc 于 2007-3-30 13:27 发表 
是不是要在.bash_profile文件中设置的 放在.bash_profile里面不会开机自启动,只会在用户登录以后执行
放在/etc/rc.loacl中是正确的
vi /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
- #在这里添你要开机执行的脚本,要绝对路径
复制代码 |
|