一、centos加启动

阅读 44

2022-03-18

1、创建sh,
1.sh
#!/bin/bash

chkconfig: 2345 100 10

description: fun

nohup sh /root/ng/1 &
2、复制到/etc/rc.d/init.d,设置权限,注意需要加启动级别等信息100最低,10最高,使用100可以启动优先级低一些,

3、设置启动
chkconfig --add 1.sh
chkconfig 1.sh on

精彩评论(0)

0 0 举报