编译安装

  1. 安装编译依赖
    apt install build-essential gcc make wget tzdata git libreadline-dev libncurses-dev libssl-dev zlib1g-dev -y
  2. 下载源码
    git clone https://github.com/SoftEtherVPN/SoftEtherVPN_Stable.git
  3. 安装
    cd SoftEtherVPN_Stable/./configuremake make install

开机自启

  1. 创建文件
    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
  1. 开启这个服务
    systemctl enable vpnserver.service
  2. 启动服务
    service vpnserver start
最后修改:2024 年 09 月 20 日
如果觉得我的文章对你有用,请随意赞赏