Closed yangleitj closed 7 years ago
同问题
楼上两位需要把代码复制出来新建sh文件,不要直接下载ocserv-auto.sh
一键安装之后,ocserv.service 无法开启,查看服务的状态得到如下信息,不知道哪里出了问题,求解。
● ocserv.service - OpenConnect SSL VPN server Loaded: loaded (/usr/lib/systemd/system/ocserv.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since 六 2016-04-23 01:29:05 EDT; 1min 12s ago Docs: man:ocserv(8) Process: 7230 ExecStart=/usr/sbin/ocserv --pid-file /var/run/ocserv.pid --config /etc/ocserv/ocserv.conf (code=exited, status=1/FAILURE) Process: 7227 ExecStartPre=/usr/sbin/ocserv-genkey (code=exited, status=0/SUCCESS)
4月 23 01:29:05 HEIZI-BWG99 systemd[1]: Starting OpenConnect SSL VPN server... 4月 23 01:29:05 HEIZI-BWG99 ocserv[7230]: Configuration option auth is mandatory. 4月 23 01:29:05 HEIZI-BWG99 systemd[1]: ocserv.service: control process exited, code=exited status=1 4月 23 01:29:05 HEIZI-BWG99 systemd[1]: Failed to start OpenConnect SSL VPN server. 4月 23 01:29:05 HEIZI-BWG99 systemd[1]: Unit ocserv.service entered failed state. 4月 23 01:29:05 HEIZI-BWG99 systemd[1]: ocserv.service failed.
nano /etc/ocserv/ocserv.conf isolate-workers = false
vps重啟之後啟動腳本重新設置即可
這個應該是升級 Ocserv 10.3 之後的鍋 2333
@yangleitj sh -c "$(wget https://raw.githubusercontent.com/travislee8964/ocserv-auto/master/ocserv-auto.sh -O -)"
@jaypume 有可能是证书问题,我的就是这样
借宝地问一下,cent7 64, vultr,是执行哪一个命令才开始安装啊?
@xrwz007 wget https://raw.githubusercontent.com/travislee8964/ocserv-auto/master/ocserv-auto.sh sh ocserv-auto.sh