老板让给个客户装服务器,送走好几天了,现在又想弄个自启动。
只好把以前的脚本再弄弄了。
脚本文件放在资源中心的文件夹里了。
将4个启动文件拷贝到/etc/rc.d/init.d,然后
#chmod 755 /etc/rc.d/init.d/tomcat
#chown root:root /etc/rc.d/init.d/tomcat
#chmod 744 /etc/rc.d/init.d/oracle
#chown oracle:oinstall /etc/rc.d/init.d/oracle
#chmod 744 /etc/rc.d/init.d/startdb
#chown oracle:oinstall /etc/rc.d/init.d/startdb
#chmod 744 /etc/rc.d/init.d/stopdb
#chown oracle:oinstall /etc/rc.d/init.d/stopdb
# ln -s /etc/rc.d/init.d/tomcat /etc/rc.d/rc3.d/S99tomcat
# ln -s /etc/rc.d/init.d/tomcat /etc/rc.d/rc5.d/S99tomcat
# ln -s /etc/rc.d/init.d/tomcat /etc/rc.d/rc6.d/K01tomcat
# ln -s /etc/rc.d/init.d/tomcat /etc/rc.d/rc0.d/K01tomcat
# ln -s /etc/rc.d/init.d/oracle /etc/rc.d/rc3.d/S99oracle
# ln -s /etc/rc.d/init.d/oracle /etc/rc.d/rc5.d/S99oracle
# ln -s /etc/rc.d/init.d/oracle /etc/rc.d/rc0.d/K01oracle
# ln -s /etc/rc.d/init.d/oracle /etc/rc.d/rc6.d/K01oracle