在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答/Linux  網(wǎng)絡(luò)安全/ 部署openVPN后啟動失敗,應(yīng)如何處理

部署openVPN后啟動失敗,應(yīng)如何處理

阿里云主機Centos7.2部署openVPN,按照阿里文檔進行:
https://help.aliyun.com/knowl...
完成后發(fā)現(xiàn)沒有監(jiān)聽端口,systemctl status openvpn查看,發(fā)現(xiàn)報錯:
Starting SYSV: OpenVPN is a robust and highly flexible tunneling application that uses all of the encryption, authentication, and certification ... UDP port....
/etc/rc.d/init.d/openvpn: line 94: [: =: unary operator expected
OpenVPN 2.2.2 x86_64-redhat-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] [eurephia] built on Jan 17 2018
NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Starting openvpn: [FAILED]
Started SYSV: OpenVPN is a robust and highly flexible tunneling application that uses all of the encryption, authentication, and certification f...le UDP port..

其中/etc/rc.d/init.d/openvpn第94行配置為
93 # Check that networking is up.
94 if [ ${NETWORKING} = "no" ]
95 then
96 echo "Networking is down"
97 exit 0
98 fi
99
100 # Check that binary exists
百度方法是${NETWORKING}加上"",嘗試之后不報94行錯誤,但依舊提示Starting openvpn: [FAILED]
所以,這個教程是否有問題,或者可能是我遺漏了哪些步驟嗎

回答
編輯回答
艷骨

94行的$放回到{}里面引用network就沒有報錯。
修改如下:
94 if [ {$NETWORKING} = "no" ]

2018年4月11日 21:40