2 Star 1 Fork 1

Jeencol / ProxyServer

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Usage: php ./index.php [options...]
       shell/runproxyservice [options...]
       shell/runproxyservicebg [options...]      (Run in background)
  -i          The ip address to binding. Default value 0.0.0.0
  -p          The port to listening.
              Default value 1080 for http proxy, 1081 for socks5 proxy
  --http      Run HTTP proxy server
  --socks5    Run Socks5 proxy server
  --help      Help document

eg:

# Start the socks5 proxy service and listen on the default port 1081
php ./index.php

# Start the socks5 proxy service and listen to the specified port 12345
php ./index.php -p12345

# Use a shell script to start the socks5 proxy service and listen to the specified port 12345
shell/runproxyservice -p12345

# Use a shell script to run the socks5 proxy service in the background and listen to the specified port 12345
shell/runproxyservicebg -p12345

# Start the http proxy service and listen on the default port 1080
php ./index.php --http

# Start the http proxy service and listen to the specified port 12346
php ./index.php -p12346

# Use a shell script to start the http proxy service and listen to the specified port 12346
shell/runproxyservice -p12346 --http

# Use a shell script to run the socks5 proxy service in the background and listen to the specified port 12345
shell/runproxyservicebg -p12345  --http

Please add permissions to the script file before running.

sudo chmod ug+x -R ./shell

If you need to close the service running in the background, you can first use the shell/findport script to find the process listening on the specified port (such as 1080), and then run kill command to close the corresponding background program. Here is the example:

# Find the pid of the process listening on port 1080 or 1081 (default port)
sudo shell/findport

# Print out the information below
# tcp        0      0 *:1081                  *:*                     LISTEN      18882/php

# Kill the process
sudo kill -9 18882


# Find the pid of the process listening on specified port such as 12345
sudo shell/findport 12345

# Print out the information below
# tcp        0      0 *:12345                  *:*                     LISTEN      18891/php

# Kill the process
sudo kill -9 18891

空文件

简介

代理服务功能 展开 收起
PHP
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
PHP
1
https://gitee.com/jinko/proxy-server.git
git@gitee.com:jinko/proxy-server.git
jinko
proxy-server
ProxyServer
master

搜索帮助