#/etc/init.d 是 rc.d/init.d/ 的软链接
[[email protected] ~]# ll -d /etc/init.d lrwxrwxrwx. 1 root root 11 5月 13 01:01 /etc/init.d -> rc.d/init.d #For example: [[email protected] ~]# vi /etc/rc.d/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 /etc/init.d/httpd start #or /etc/rc.d/init.d/httpd start
时间: 2024-10-10 02:34:36