当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 3 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : shadowsocks-libev客户端启动不了,加参或指定配置均不能启动
帖子发表于 : 2015-09-29 15:07 

注册: 2015-08-16 18:50
帖子: 3
系统: linux mint
送出感谢: 1
接收感谢: 0 次
新手,在用linux mint(具体版本见附件),接触不到半年
昨天按照这个:http://www.phpgao.com/shadowsocks_on_linux.html
也就是
apt-get install build-essential autoconf libtool libssl-dev gcc
apt-get install git
git clone https://github.com/madeye/shadowsocks-libev.git
cd shadowsocks-libev
./configure
make && make install

装上了ss。也成功启动了sslocal
这是昨天的
代码:
fox@linuxt ~ $ sudo sslocal -s ?????? -p 7329 -k ?????? -m aes-256-cfb
2015-09-28 14:44:27 INFO loading libcrypto from libcrypto.so.1.0.0
2015-09-28 14:44:27 INFO starting local at 127.0.0.1:1080
2015-09-28 14:45:18 INFO connecting message.tieba.baidu.com:80 from 127.0.0.1:39913
2015-09-28 14:45:21 INFO connecting github.com:443 from 127.0.0.1:39915
2015-09-28 14:45:21 INFO connecting ocsp.digicert.com:80 from 127.0.0.1:39917
2015-09-28 14:45:23 INFO connecting assets-cdn.github.com:443 from 127.0.0.1:39919
2015-09-28 14:45:23 INFO connecting assets-cdn.github.com:443 from 127.0.0.1:39921
2015-09-28 14:45:23 INFO connecting avatars3.githubusercontent.com:443 from 127.0.0.1:39923
2015-09-28 14:45:24 INFO connecting camo.githubusercontent.com:443 from 127.0.0.1:39925
2015-09-28 14:45:24 INFO connecting assets-cdn.github.com:443 from 127.0.0.1:39927
2015-09-28 14:45:24 INFO connecting assets-cdn.github.com:443 from 127.0.0.1

后来想装个软件需要python3.× 查了下我系统里有个2.7几的,装上3.×后也修改了默认,可还是没忍住把2.7×卸载了。。。

一堆问题。。。无奈重装了

于是今天又按照上面的方法装了一遍。sslocal启动不了
代码:
ace@ace-N5110 ~ $ which ss-local
/usr/local/bin/ss-local
ace@ace-N5110 ~ $ ss-local -s ××××××× -p 7329 -k ×××××××× -m aes-256-cfb

shadowsocks-libev 2.3.0

  maintained by Max Lv <max.c.lv@gmail.com> and Linus Yang <laokongzi@gmail.com>

  usage:

    ss-[local|redir|server|tunnel|manager]

       -s <server_host>           host name or ip address of your remote server

       -p <server_port>           port number of your remote server

       -l <local_port>            port number of your local server

       -k <password>              password of your remote server

       [-m <encrypt_method>]      encrypt method: table, rc4, rc4-md5,
                                  aes-128-cfb, aes-192-cfb, aes-256-cfb,
                                  bf-cfb, camellia-128-cfb, camellia-192-cfb,
                                  camellia-256-cfb, cast5-cfb, des-cfb, idea-cfb,
                                  rc2-cfb, seed-cfb, salsa20 and chacha20

       [-f <pid_file>]            the file path to store pid

       [-t <timeout>]             socket timeout in seconds

       [-c <config_file>]         the path to config file

       [-i <interface>]           network interface to bind,
                                  not available in redir mode

       [-b <local_address>]       local address to bind,
                                  not available in server mode

       [-u]                       enable UDP relay,
                                  TPROXY is required in redir mode

       [-U]                       enable UDP relay and disable TCP relay,
                                  not available in local mode

       [-L <addr>:<port>]         specify destination server address and port
                                  for local port forwarding,
                                  only available in tunnel mode

       [-d <addr>]                setup name servers for internal DNS resolver,
                                  only available in server mode

       [--fast-open]              enable TCP fast open,
                                  only available in local and server mode,
                                  with Linux kernel > 3.7.0

       [--acl <acl_file>]         config file of ACL (Access Control List)
                                  only available in local and server mode

       [--manager_address <addr>] UNIX domain socket address
                                  only available in server and manager mode

       [--executable <path>]      path to the executable of ss-server
                                  only available in manager mode

       [-v]                       verbose mode

ace@ace-N5110 ~ $

sudo !!也是一样
代码:
ace@ace-N5110 ~ $ python --version
Python 2.7.6
ace@ace-N5110 ~ $

......
指定配置也启动不了
代码:
ace@ace-N5110 ~ $ ss-local -c /etc/config.json

shadowsocks-libev 2.3.0

  maintained by Max Lv <max.c.lv@gmail.com> and Linus Yang <laokongzi@gmail.com>

  usage:

    ss-[local|redir|server|tunnel|manager]

       -s <server_host>           host name or ip address of your remote server

       -p <server_port>           port number of your remote server

       -l <local_port>            port number of your local server
....

百度我也就看到一个和我类似的说是装这个
代码:
apt-get install python-m2crypto

装完重启。无果

代码:
ace@ace-N5110 ~ $ uname -a
Linux ace-N5110 3.16.0-38-generic #52~14.04.1-Ubuntu SMP Fri May 8 09:43:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

对了,昨晚装完系统后sslocal指定配置启动了好几次才成功,能fan,然后关机睡了。今早开机才是这个情况的。
2次装ss的环境差不多,都是刚装的系统更新下就装的,下载到编译都一次过。。

有什么没交代清楚的请耐心指出。。谢谢 :Shame
平时略忙,非计算机行业,,就爱折腾,有空才能来看,如没及时回复莫怪 :em11


附件:
0bf7fb1fbe096b63dcf766eb0a338744e9f8accb.jpg.png
0bf7fb1fbe096b63dcf766eb0a338744e9f8accb.jpg.png [ 109.91 KiB | 被浏览 1443 次 ]

页首
 用户资料  
 
2 楼 
 文章标题 : Re: shadowsocks-libev客户端启动不了,加参或指定配置均不能启动
帖子发表于 : 2015-09-29 17:52 

注册: 2013-04-27 19:26
帖子: 295
系统: ubuntu+win7
送出感谢: 21
接收感谢: 9
同学你好,为什么非要使用C封装的shadowsocks?你可以直接使用原版shadowsocks。
见原作者的wiki:https://github.com/shadowsocks/shadowsocks/wiki
几乎零配置,非常简单。



_________________
评价: 3.7% uccu
 
页首
 用户资料  
 
3 楼 
 文章标题 : Re: shadowsocks-libev客户端启动不了,加参或指定配置均不能启动
帖子发表于 : 2015-09-30 1:20 

注册: 2015-08-16 18:50
帖子: 3
系统: linux mint
送出感谢: 1
接收感谢: 0 次
恒河沙数1 写道:
同学你好,为什么非要使用C封装的shadowsocks?你可以直接使用原版shadowsocks。
见原作者的wiki:https://github.com/shadowsocks/shadowsocks/wiki
几乎零配置,非常简单。


确实几乎零配置。。。但我也是零基础啊 :Cry
好几个版本,当时我也挑眼花了。。原来这就是原版, :em06
顺便问下,既然原版这么简单,为什么还会有其他语言写的版本呢,我看网上个版本各有优点。。

还是谢谢,搞定了,加了个-l 参数 local_port。两种方法都可启动了 :Hehe
也是先入为主,第一次这么搞就行,后来就没想过试试加其他参数。。。

虽然搞了个不是问题的问题,还无意中解决了,花了好久,不过最终感觉挺爽 :Faint


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 3 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 2 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译