编译安装
- 安装编译依赖
apt install build-essential gcc make wget tzdata git libreadline-dev libncurses-dev libssl-dev zlib1g-dev -y
- 下载源码
git clone https://github.com/SoftEtherVPN/SoftEtherVPN_Stable.git
- 安装
cd SoftEtherVPN_Stable/./configuremake make install
开机自启
- 创建文件
vim /lib/systemd/system/vpnserver.service
[Unit]
Description=SoftEther VPN Server After=network.target
[Service]
Type=forking
ExecStart=/usr/bin/vpnserver start ExecStop=/usr/bin/vpnserver stop
[Install]
WantedBy=multi-user.target
- 开启这个服务
systemctl enable vpnserver.service
- 启动服务
service vpnserver start
此处评论已关闭