如何在debian和ubuntu系统添加开机命令? 最简单的方法如下 编辑/etc/rc.local文件 把自定义命令或脚本路径添加到exit 0命令前即可 #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. touch file command exit 0 (责任编辑:IT) |