思绪的空中生活

debian 9 /etc/rc.local开机启动
说明:新开的Google cloud香港的机子,选的Debian 9,按照之前添加开机启动命令到/etc/rc.l...
扫描右侧二维码阅读全文
28
2018/10

debian 9 /etc/rc.local开机启动

说明:新开的Google cloud香港的机子,选的Debian 9,按照之前添加开机启动命令到/etc/rc.local无效

添加一个 /etc/rc.local 文件

cat <<EOF >/etc/rc.local
#!/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.

exit 0
EOF

赋予权限

chmod +x /etc/rc.local

启动 rc-local 服务

systemctl start rc-local

参考:https://sb.sb/blog/debian-9-rc-local/

相关文章:

  • Padavan开启frp
  • 阿里云国际版新加坡
  • 近况2018年10月4日
  • googel cloud 修改ssh 连接密码
  • 高清直播源
  • Last modification:October 28th, 2018 at 03:22 pm
    If you think my article is useful to you, please feel free to appreciate

    Leave a Comment