engzhangkai
检查 .sh 文件中是否含有   
    #chkconfig: 2345 80 90
    #description:auto_run
如果没有的话,加入。

  

#将该文件移动到 /etc/init.d
cp  ***.sh  /etc/init.d

#添加为服务,并设置开机启动
chkconfig --add ***.sh
chkconfig --list                             # 检查一下是否加入了 start_for_cdn_node.sh
chkconfig ****.sh on           # (开机自启动)
service *****.sh start          # (启动服务)

  

本文参考:https://www.jianshu.com/p/eb3ce5117ece

分类:

技术点:

相关文章:

  • 2021-12-27
  • 2021-11-17
  • 2021-09-29
  • 2022-12-23
  • 2022-12-23
  • 2021-07-17
  • 2022-12-23
猜你喜欢
  • 2021-12-09
  • 2021-12-16
  • 2022-12-23
  • 2021-12-03
  • 2020-10-28
  • 2021-12-24
  • 2021-05-18
相关资源
相似解决方案