Skip to content

Instantly share code, notes, and snippets.

@ThaddeusJiang
Created July 31, 2018 00:58
Show Gist options
  • Save ThaddeusJiang/204625b5f241c401eeece806b383090a to your computer and use it in GitHub Desktop.
Save ThaddeusJiang/204625b5f241c401eeece806b383090a to your computer and use it in GitHub Desktop.
Linux 添加开机启动项的几种方式

1. (最喜欢的) 将脚本放入到 /etc/profile.d/ 目录

系统启动后会自动执行该目录下所有 shell 脚本

2. 编辑 /etc/rc.local 文件

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment