0
点赞
收藏
分享

微信扫一扫

一、centos加启动

吓死我了_1799 2022-03-18 阅读 43

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 条评论