代码拉取完成,页面将自动刷新
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。