ubuntu开机启动程序

开机启动 直接在/etc/rc.local 中编辑要执行的命令 1vim /etc/rc.local 内容: 12345#!/bin/sh -eroute add default gw 192.168.1.1exit 0 修改脚本权限 1sudo chmod 755 /etc/rc.local 然后我们可以测试一下开机是否执行了。

发布于 技术