思绪的空中生活

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/

相关文章:

  • 小米路由器r3g刷老毛子Padavan
  • 解决v2ray 500错误
  • 宝塔面板 V2ray Websocket Nginx Cloudflare
  • Padavan开启frp
  • 阿里云国际版新加坡
  • Last modification:October 28th, 2018 at 03:22 pm
    If you think my article is useful to you, please feel free to appreciate

    2 comments

    1. 陈攀

      我现在使用的是谷歌云台湾。

      1. 思绪的空中生活
        @陈攀

        挺好的啊,延迟低,速度也快

    Leave a Comment