引用:
原帖由 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
#在这里添你要开机执行的脚本,要绝对路径