linux自启动脚本文件怎么创建

2024-12-16 19:55:39
推荐回答(1个)
回答1:

写一个脚本auto_coreseek.sh:
#!/bin/sh
#chkconfig:2345 80 90
#description:auto_coreseek
/usr/local/coreseek/bin/searchd
放到/etc/init.d/auto_coreseek.sh
然后chmod +x /etc/init.d/auto_coreseek.sh
然后加到开机启动中:

chkconfig --add auto_coreseek.sh