说明:新开的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
我现在使用的是谷歌云台湾。
挺好的啊,延迟低,速度也快