登录linux vps,然后:
wget https://cmake.org/files/v3.10/cmake-3.10.1.tar.gz
tar zxvf cmake-3.10.1.tar.gz
cd cmake-3.10.1
./configure
make
make install
cd ~
git clone https://github.com/ssrlive/s5proxy
cd s5proxy
git submodule update --init (注:因为s5proxy目录里有隐藏的文件.gitmodules ,故需要运行该命令)
mkdir build && cd build && cmake .. && make
(make快结束时,会显示Linking C executable s5proxy )
wget https://cmake.org/files/v3.10/cmake-3.10.1.tar.gz
tar zxvf cmake-3.10.1.tar.gz
cd cmake-3.10.1
./configure
make
make install
cd ~
git clone https://github.com/ssrlive/s5proxy
cd s5proxy
git submodule update --init (注:因为s5proxy目录里有隐藏的文件.gitmodules ,故需要运行该命令)
mkdir build && cd build && cmake .. && make
(make快结束时,会显示Linking C executable s5proxy )
root@ar:~/s5proxy/build# ls
CMakeCache.txt CMakeFiles Makefile cmake-libuv cmake_install.cmake src
root@ar:~/s5proxy/build# find . -name s5proxy
./src/s5proxy
root@ar:~/s5proxy/build# cd src
root@ar:~/s5proxy/build/src# ls
CMakeFiles Makefile cmake_install.cmake s5proxy
root@ar:~/s5proxy/build/src# ./s5proxy -h
Usage:
s5proxy [-b <address>] [-h] [-p <port>]
Options:
-b <hostname|address> Bind to this address or hostname.
Default: "0.0.0.0"
-h Show this help message.
-p <port> Bind to this port number. Default: 1080
root@ar:~/s5proxy/build/src# ./s5proxy -p 4344
显示:
s5proxy:info: listening on 0.0.0.0:4344
项目地址:https://github.com/ssrlive/s5proxy
No comments:
Post a Comment