Skip to content
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

Closed
duffercn opened this issue Dec 21, 2015 · 4 comments
Closed

请问 redsocks2 is not enabled.Exit now. 是什么问题? #31

duffercn opened this issue Dec 21, 2015 · 4 comments

Comments

@duffercn
Copy link

安装完以后/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
}
}

@semigodking
Copy link
Owner

在/etc/config/ 下应该有个redsocks2 的配置文件,里面没配,且里面'enabled'. =0
2015年12月21日 下午10:52,"duffercn" notifications@github.com写道:

安装完以后/etc/initd/redsocks2 start就会出现这个错误:
redsocks2 is not enabledExit now

直接用 /usr/sbin/redsocks2 -c xxxconf 就可以。

小白我看了这段代码,但不太明白应该怎么改。求助,谢谢

if_enabled() {
local cfg="$1"
config_get_bool enabled "$cfg" 'enabled' '0'
[ $enabled = '0' ] && {
echo "redsocks2 is not enabledExit now"
exit 1
}
}


Reply to this email directly or view it on GitHub
#31.

@duffercn
Copy link
Author

可是我的配置文件是在/etc/config/redsocks2.conf,我在文件第一行试着加了一行enabled="1",还是不行。
感谢这么迅速的回复!

@semigodking
Copy link
Owner

你要自己看一下这文件的格式, 不是随便加的。
2015年12月21日 下午11:04,"duffercn" notifications@github.com写道:

可是我的配置文件是在/etc/config/redsocks2.conf,我在文件第一行试着加了一行enabled="1",还是不行。
感谢这么迅速的回复!


Reply to this email directly or view it on GitHub
#31 (comment)
.

@duffercn
Copy link
Author

搞明白了,原来是配置文件的格式变了,然后运行时根据配置文件再生成redsocks2.conf。已搞定,再次感谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants