失眠网,内容丰富有趣,生活中的好帮手!
失眠网 > linux添加启动脚本文件夹 linux – 将脚本中的符号链接添加到rc.d文件夹中以在系统

linux添加启动脚本文件夹 linux – 将脚本中的符号链接添加到rc.d文件夹中以在系统

时间:2020-03-20 07:30:10

相关推荐

linux添加启动脚本文件夹 linux – 将脚本中的符号链接添加到rc.d文件夹中以在系统

我正在使用fedora 15.

我试图添加MYSql守护进程在系统strtup期间启动.

我已经明白我必须将它添加到rc5.d,因为它是默认目标&是graphical.target.

来自inittab:

systemd uses ‘targets’ instead of runlevels. By default, there are two main targets:

multi-user.target: analogous to runlevel 3

graphical.target: analogous to runlevel 5

When the system is shut down, there is another symlink in the /etc/rc0.d and /etc/rc6.d directories (halt and reboot, respectively) that starts with a K instead of an S, which tells init to shut down the process.

我注意到httpd的符号链接存在于所有rc< number> .d文件夹中

作为符号链接:K15httpd – > ../init.d/httpd.

没有以S开头的符号链接.因为我必须手动启动它才有意义.

Why is the symlink K15httpd -> ../init.d/httpd present in all the rc.d folders?

What should I name the symlink if I want to start httpd during system startup?

What is the number that is present in the symlink? i.e. K15httpd -> ../init.d/httpd what is 15 here?

I read (07001) that the symlink to MYSql should be S98mysql is it right and what should the name to symlink that starts with K should be?

linux添加启动脚本文件夹 linux – 将脚本中的符号链接添加到rc.d文件夹中以在系统启动期间启动进程...

如果觉得《linux添加启动脚本文件夹 linux – 将脚本中的符号链接添加到rc.d文件夹中以在系统》对你有帮助,请点赞、收藏,并留下你的观点哦!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。