travislee89 / ocserv-auto

Auto Install Ocserv Server for CentOS/RedHat 7
324 stars 190 forks source link

bandwagonhost.com的Centos7中运行提示如下,我是小白,请教如何运行,谢谢! #1

Closed yangleitj closed 7 years ago

yangleitj commented 8 years ago
[root@bandwagon4g ~]# sh ocserv-auto.sh
ocserv-auto.sh: line 5: syntax error near unexpected token `newline'
ocserv-auto.sh: line 5: `<!DOCTYPE html>'
dysl357085918 commented 8 years ago

同问题

dolfchan commented 8 years ago

楼上两位需要把代码复制出来新建sh文件,不要直接下载ocserv-auto.sh

jaypume commented 8 years ago

一键安装之后,ocserv.service 无法开启,查看服务的状态得到如下信息,不知道哪里出了问题,求解。

systemctl status -l 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.

1a57danc3 commented 8 years ago

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

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

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

ghost commented 7 years ago

@yangleitj sh -c "$(wget https://raw.githubusercontent.com/travislee8964/ocserv-auto/master/ocserv-auto.sh -O -)"

ghost commented 7 years ago

@jaypume 有可能是证书问题,我的就是这样

xrwz007 commented 7 years ago

借宝地问一下,cent7 64, vultr,是执行哪一个命令才开始安装啊?

travislee89 commented 7 years ago

@xrwz007 wget https://raw.githubusercontent.com/travislee8964/ocserv-auto/master/ocserv-auto.sh sh ocserv-auto.sh