stunnel / Ocserv-install-script-for-CentOS-RHEL-7

Ocserv(AnyConnect Server) install script for CentOS/RHEL 7
283 stars 164 forks source link

安装完成之后提示:WARNING!!! ocserv service is NOT Running! ,查看systemctl status -l ocserv.service发现貌似是ocserv-genkey的问题 #21

Open jewforice opened 8 years ago

jewforice commented 8 years ago

日志如下:

ocserv.service - OpenConnect SSL VPN server Loaded: loaded (/usr/lib/systemd/system/ocserv.service; enabled) Active: failed (Result: exit-code) since Wed 2015-09-30 10:15:10 CST; 16s ago Docs: man:ocserv(8) Process: 7448 ExecStartPre=/usr/local/sbin/ocserv-genkey (code=exited, status=1/FAILURE) Main PID: 2766 (code=killed, signal=KILL)

Sep 30 10:15:10 localhost.localdomain ocserv-genkey[7448]: /usr/local/sbin/ocserv-genkey -c [config] Sep 30 10:15:10 localhost.localdomain ocserv-genkey[7448]: Use /usr/local/sbin/ocserv-genkey --help for more information. Sep 30 10:15:10 localhost.localdomain systemd[1]: ocserv.service: control process exited, code=exited status=1 Sep 30 10:15:10 localhost.localdomain systemd[1]: Failed to start OpenConnect SSL VPN server. Sep 30 10:15:10 localhost.localdomain systemd[1]: Unit ocserv.service entered failed state. [root@localhost ~]#

1a57danc3 commented 8 years ago

nano /etc/ocserv/ocserv.conf isolate-workers = false

vps重啟之後啟動腳本重新設置即可

這個應該是升級 Ocserv 10.3 之後的鍋 2333

oveshli commented 6 years ago

Hi this is not worked for me

1a57danc3 commented 6 years ago

@oveshli https://github.com/ky0ncheng/one-key-ocserv