tar zxvf phc-1.2.tar.gz cd phc-1.2
./configure make make install
cp doc/phc.conf.example phc.conf
phc会搜索./phc.conf,然后搜索~/.phc.conf, 最后检查/etc/phc.conf. 它会在找到第一个文件后停止搜索,并把找到的文件作为有效配置文件.
对于配置文件: '#'开始的行为注释行,特别的,'#!'开始的行后面的行是必须修改的,请 根据注释行修改. 特别的,
'#! if'
myuser=abc mypass=guest
httptestmethod=1
socks5testmethod=2
socks4testmethod=5
logfilename=.
如果不想在屏幕上看到这些细节,那么输出到文件:
logfilename=./phc.log
cp doc/proxylist .
同phc.conf一同放在当前目录下.
phc
^C中断
每发现一个免费代理都会输出在屏幕并同时保存在当前目录下的文件proxyout中.
#一定要个性化的部分 mytype=4 myhost=socks.you.com myport=1080 myuser=abc mypass=def httptestmethod=1 #当前版本可以不改但不能注释掉的部分 socks5testmethod=2 socks4testmethod=5 #不要改且不能注释掉的部分. threads=50 checksite=http://www.google.com:80/webhp?hl=en key=2006 Google user_agent=User-Agent: MSIE 6.0 myconreplysize=256 testconreplysize=256 testtagreplysize=65535 rcvtimeo=10 sndtimeo=5 logfilename=phc.log
#必须个性化的部分 mytype=1 myhost=proxy.you.com myport=8080 httptestmethod=0 #当前版本不要改动且不能注释掉的部分 socks5testmethod=2 socks4testmethod=5 #可以不改动但不能注释或者删除的部分 threads=50 checksite=http://www.google.com:80/webhp?hl=en key=2006 Google user_agent=User-Agent: MSIE 6.0 myconreplysize=256 testconreplysize=256 testtagreplysize=65535 rcvtimeo=10 sndtimeo=5 logfilename=phc.conf
除了phcin、phcout可选外,其他设置行和注释行 (如myuser=...mypass=...)都将被忽略.