Total Pageviews

Wednesday, 4 May 2016

基于java和maven的http代理服务器程序-LittleProxy

首先按此文http://briteming.blogspot.lt/2016/05/maven.html搭建maven环境。
High Performance HTTP Proxy
LittleProxy is a high performance HTTP proxy written in Java atop Trustin Lee's excellent Netty event-based networking library. It's quite stable, performs well, and is easy to integrate into your projects.
One option is to clone LittleProxy and run it from the command line. This is as simple as:
$ git clone git://github.com/adamfisk/LittleProxy.git
$ cd LittleProxy
$ bash run.bash (运行此命令后,输出一大堆内容,最后一行显示:
Proxy started at address: /0.0.0.0:8080 (即在8080端口,一个http代理服务器程序
运行起来了)
$ nohup bash run.bash > /dev/null & (运行此命令,以让LittleProxy在后台运行)