-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
请问 redsocks2 is not enabled.Exit now. 是什么问题? #31
Comments
在/etc/config/ 下应该有个redsocks2 的配置文件,里面没配,且里面'enabled'. =0
|
可是我的配置文件是在/etc/config/redsocks2.conf,我在文件第一行试着加了一行enabled="1",还是不行。 |
你要自己看一下这文件的格式, 不是随便加的。
|
搞明白了,原来是配置文件的格式变了,然后运行时根据配置文件再生成redsocks2.conf。已搞定,再次感谢! |
安装完以后/etc/init.d/redsocks2 start就会出现这个错误:
redsocks2 is not enabled.Exit now.
直接用 /usr/sbin/redsocks2 -c xxx.conf 就可以。
小白我看了这段代码,但不太明白应该怎么改。求助,谢谢
if_enabled() {
local cfg="$1"
config_get_bool enabled "$cfg" 'enabled' '0'
[ $enabled = '0' ] && {
echo "redsocks2 is not enabled.Exit now."
exit 1
}
}
The text was updated successfully, but these errors were encountered: