生命不息 折腾不止

  • Home
  • About
  • Tags
  • Categories
  • Archives
  • Table of Contents
  • Overview
  1. 1. 参考
  2. 2. 步骤
NoBugEveryDay

NoBugEveryDay

121 posts
30 categories
103 tags
0%

CentOS设置开机启动脚本

Posted on 2019-05-02 In Linux , CentoS

参考

Centos7开机启动自己的脚本

步骤

  1. 编写要开机启动的脚本,这里我们假设这个脚本是/root/wifi-init.sh
  2. 执行如下命令将/etc/rc.d/rc.local文标记为可执行文件
    chmod +x /etc/rc.d/rc.local
  3. 打开/etc/rc.d/rc.local文件,在最后面添加
    . /root/wifi-init.sh
# Linux # CentOS
在CentOS7.6上为网卡BCM43228安装驱动
CentOS挂载本地everything源
© 2025 NoBugEveryDay
Powered by Hexo & NexT.Gemini