Linux设置开机启动的三种方式
开机启动三种方法
方式一 添加命令
编辑文件 /etc/rc.local
vi /etc/rc.local
复制
在文件末尾加上你开机需要执行的命令即可(写绝对路径,添加到系统环境变量的除外),如:
nohup /usr/local/srs2/objs[......]
分享、变通、创造、创新
编辑文件 /etc/rc.local
vi /etc/rc.local
复制
在文件末尾加上你开机需要执行的命令即可(写绝对路径,添加到系统环境变量的除外),如:
nohup /usr/local/srs2/objs[......]
关注:
| 一 | 二 | 三 | 四 | 五 | 六 | 日 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
| 29 | 30 | |||||
AI audio autoCAD automatic start c CAD certbot cmake cms cross platform curl db docker ffmpeg frp github gogs gstreamer https ip linux make mariadb mongodb mongoose mqtt mysql notepad openssl openwrt phpmyadmin proxy Raspberry run ssh ssl tailscale ubuntu v2ray video windows wordpress zlib 数据库 智慧工地
自适应IP