1.下载brook

wget https://github.com/txthinking/brook/releases/download/v20180707/brook
mv brook /usr/bin/
chmod a+x /usr/bin/brook

2.创建系统服务

vim /etc/systemd/system/brook.service

输入配置

[Unit]
Description=brook_vpn
After=network.target

[Service]
ExecStart=/usr/bin/brook server -l :[choose your port] -p [your password]
Restart=always

[Install]
WantedBy=default.target

赋予文件权限

chmod a+x /etc/systemd/system/brook.service

设置开机启动

systemctl daemon-reload #重载systemd配置
systemctl start brook
systemctl enable brook #开机启动
分类: Main

0 条评论

发表评论

电子邮件地址不会被公开。 必填项已用*标注