|
|
|
|
 VNCSERVER为何不能随系统启动? - miniboy [ 2006-09-28 18:30 | 146 byte(s)]
 Re: VNCSERVER为何不能随系统启动? - miniboy [ 2006-09-30 11:15 | 357 byte(s)]
 Re: VNCSERVER为何不能随系统启动? - ElTopo [ 2006-09-30 11:53 | 413 byte(s)]
 Re: VNCSERVER为何不能随系统启动? - skyone [ 2006-09-28 21:38 | 32 byte(s)]
 Re: VNCSERVER为何不能随系统启动? - miniboy [ 2006-09-29 08:32 | 84 byte(s)]
 Re: VNCSERVER为何不能随系统启动? - skyone [ 2006-09-30 08:58 | 43 byte(s)]
|
|
|
|
[Original]
[Print]
[Top]
|
|
我在/etc/rc.d/rd.local里加入一行:vncserver 可是系统重启后,该命令没有被执行(VNC服务未启),是怎么回事?我用setup在系统服务里也将vncserver选上了。
|
|
|
[Original]
[Print]
[Top]
|
|
[Original]
[Print]
[Top]
|
手动直接输入:vncserver就OK了啊。
不单是这个不能启动,我发现rc.local这个程序在系统启动是根本就没执行。
我在rc.local里还加入一测试行:echo "test" >/home/admin/kkk
启动系统后,发现并无KKK这个文件,若是手动执行:/etc/rc.d/rc.local,vncserver即可启动,且KKK文件也生成。
何故?高手请指教!!!!!!
|
|
|
[Original]
[Print]
[Top]
|
|
[Original]
[Print]
[Top]
|
rc.local 也是需要加在 rc.d/rc3.d 这样的启动目录中才会起作用的,类似这样:
# dir rc3.d/S99local
lrwxrwxrwx 1 root root 11 Oct 15 2000 rc3.d/S99local -> ../rc.local*
顺便说一句,rc.local 这种用法淘汰已久了,像你这种情况应该写一个给 vncserver 的启动脚本,不要靠 rc.d/rc.local ,否则大家都往 rc.d/rc.local 里面写,反安装时就麻烦了,搞不好把别人的东西冲掉了
|
|
|
[Original]
[Print]
[Top]
|
|
|