CCTsing / phpsocks5

Automatically exported from code.google.com/p/phpsocks5
0 stars 0 forks source link

mac 下运行不了 #14

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
java应该在mac下也可以吧?

localhost:phpsocks5 qu$ java PhpSocks5.class 
Exception in thread "main" java.lang.NoClassDefFoundError: PhpSocks5/class
Caused by: java.lang.ClassNotFoundException: PhpSocks5.class
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

Original issue reported on code.google.com by kenvi...@gmail.com on 23 Mar 2011 at 2:42

GoogleCodeExporter commented 9 years ago
java PhpSocks5,而不是java 
PhpSocks5.class。参数是类名“PhpSocks5”,而不是文件名“PhpSocks
5.class”。

问题解决了吗?

Original comment by lehui99 on 23 Mar 2011 at 6:27

GoogleCodeExporter commented 9 years ago
在java目录下,执行:
java phpsocks5.PhpSocks5 > client_mac.log 2>&1

现在可以了,端口也正常。但是就是打不开网页。

附件client_mac.log是我本地的输出日志,还有一个是php空间的日
志文件。

非常感谢作者。我用hostgator的空间,好像不支持ssh转发方式��
�只能用php http方式翻墙了。

Original comment by kenvi...@gmail.com on 23 Mar 2011 at 7:22

Attachments:

GoogleCodeExporter commented 9 years ago
php空间的日志文件没发上来?

Original comment by lehui99 on 23 Mar 2011 at 8:02

GoogleCodeExporter commented 9 years ago
php 日志

Original comment by kenvi...@gmail.com on 23 Mar 2011 at 8:11

Attachments:

GoogleCodeExporter commented 9 years ago
只从客户端log来看,是php服务器挂了,你试试看随便在服务��
�上放一个php程序能否访问?

如果随便一个php程序可以访问,试试看在使用过phpsocks5之后��
�虽然可能仍旧无法正常使用)马上访问放上去的那个其他的p
hp程序?感觉你的那个php服务器不稳定。

另外,把服务器日志发上来或许能看到更多内容。

Original comment by lehui99 on 23 Mar 2011 at 8:12

GoogleCodeExporter commented 9 years ago
服务端日志已经上传了:phpsocks5_log.log

我感觉不是空间不稳定。我用的hostgotor的空间,一直没问题��
�很正常。几乎不间断。

Original comment by kenvi...@gmail.com on 23 Mar 2011 at 8:19

GoogleCodeExporter commented 9 years ago
你搭配polipo用的吗?浏览器代理设置的是http/https的还是socks5�
��?试试看搭配polipo,浏览器设置http/https代理,不设置socks5��
�理看看?

测试的时候先关闭从feedburner订阅的功能,否则会一直刷feedbur
ner。

Original comment by lehui99 on 23 Mar 2011 at 8:54

GoogleCodeExporter commented 9 years ago
polipo 你给的是一个exe,mac下运行不了。

我运行方法刚才已经说了:

在java目录下,执行:
java phpsocks5.PhpSocks5

浏览器设置的socks5代理。

设置成 http 代理方式时 
打开任何页面都直接下载了,下载的文件是空白页面。

本地报错:

postfix=h89ru89duy89fy2y9889we
java.io.EOFException
    at phpsocks5.PhpSocks5.socksResult(PhpSocks5.java:425)
    at phpsocks5.PhpSocks5.run(PhpSocks5.java:447)
    at java.lang.Thread.run(Thread.java:680)
java.io.EOFException
    at phpsocks5.PhpSocks5.socksResult(PhpSocks5.java:425)
    at phpsocks5.PhpSocks5.run(PhpSocks5.java:447)
    at java.lang.Thread.run(Thread.java:680)
java.io.EOFException
    at phpsocks5.PhpSocks5.socksResult(PhpSocks5.java:425)
    at phpsocks5.PhpSocks5.run(PhpSocks5.java:447)
    at java.lang.Thread.run(Thread.java:680)
java.io.EOFException
    at phpsocks5.PhpSocks5.socksResult(PhpSocks5.java:425)
    at phpsocks5.PhpSocks5.run(PhpSocks5.java:447)
    at java.lang.Thread.run(Thread.java:680)
java.io.EOFException
    at phpsocks5.PhpSocks5.socksResult(PhpSocks5.java:425)
    at phpsocks5.PhpSocks5.run(PhpSocks5.java:447)
    at java.lang.Thread.run(Thread.java:680)
java.io.EOFException
    at phpsocks5.PhpSocks5.socksResult(PhpSocks5.java:425)
    at phpsocks5.PhpSocks5.run(PhpSocks5.java:447)
    at java.lang.Thread.run(Thread.java:680)
java.io.EOFException
    at phpsocks5.PhpSocks5.socksResult(PhpSocks5.java:425)
    at phpsocks5.PhpSocks5.run(PhpSocks5.java:447)
    at java.lang.Thread.run(Thread.java:680)

Original comment by kenvi...@gmail.com on 23 Mar 2011 at 9:38

GoogleCodeExporter commented 9 years ago
我知道,我的意思是去polipo官方网站上下载mac版的polipo。polip
o链接在项目主页中有。

使用polipo的时候使用命令:polipo -c /dev/null 
socksParentProxy=127.0.0.1:10080 proxyPort=10088

然后浏览器设置http/https代理(不是socks5代理)为127.0.0.1,端�
��10088。

Original comment by lehui99 on 23 Mar 2011 at 9:50

GoogleCodeExporter commented 9 years ago
运行polipo之前先确认phpsocks5的客户端是否正在运行,phpsocks5��
�客户端端口是否是10080。

Original comment by lehui99 on 23 Mar 2011 at 9:55