mirror of
https://github.com/3proxy/3proxy.git
synced 2026-04-06 21:30:12 +08:00
Update README
This commit is contained in:
parent
dc83562700
commit
f72c6f5baa
20
README
20
README
@ -34,13 +34,13 @@ Devel branch - 3proxy 10 (don't use it)
|
|||||||
* To build in Linux
|
* To build in Linux
|
||||||
|
|
||||||
With Makefile:
|
With Makefile:
|
||||||
<pre>
|
|
||||||
git clone https://github.com/z3apa3a/3proxy
|
git clone https://github.com/z3apa3a/3proxy
|
||||||
cd 3proxy
|
cd 3proxy
|
||||||
ln -s Makefile.Linux Makefile
|
ln -s Makefile.Linux Makefile
|
||||||
make
|
make
|
||||||
sudo make install
|
sudo make install
|
||||||
</pre>
|
|
||||||
|
|
||||||
Default configuration (for Linux/Unix):
|
Default configuration (for Linux/Unix):
|
||||||
3proxy uses 2 configuration files:
|
3proxy uses 2 configuration files:
|
||||||
@ -61,44 +61,44 @@ or modify /etc/3proxy/conf/ files directly.
|
|||||||
|
|
||||||
|
|
||||||
With CMake:
|
With CMake:
|
||||||
<pre>
|
|
||||||
git clone https://github.com/z3apa3a/3proxy
|
git clone https://github.com/z3apa3a/3proxy
|
||||||
cd 3proxy
|
cd 3proxy
|
||||||
mkdir build && cd build
|
mkdir build && cd build
|
||||||
cmake ..
|
cmake ..
|
||||||
cmake --build .
|
cmake --build .
|
||||||
sudo cmake --install .
|
sudo cmake --install .
|
||||||
</pre>
|
|
||||||
|
|
||||||
CMake does not use chroot configuration, config file is /etc/3proxy/3proxy.cfg
|
CMake does not use chroot configuration, config file is /etc/3proxy/3proxy.cfg
|
||||||
|
|
||||||
* For MacOS X / FreeBSD / *BSD
|
* For MacOS X / FreeBSD / *BSD
|
||||||
|
|
||||||
With Makefile:
|
With Makefile:
|
||||||
<pre>
|
|
||||||
git clone https://github.com/z3apa3a/3proxy
|
git clone https://github.com/z3apa3a/3proxy
|
||||||
cd 3proxy
|
cd 3proxy
|
||||||
ln -s Makefile.FreeBSD Makefile
|
ln -s Makefile.FreeBSD Makefile
|
||||||
make
|
make
|
||||||
</pre>
|
|
||||||
|
|
||||||
(binaries are in bin/ directory)
|
(binaries are in bin/ directory)
|
||||||
|
|
||||||
With CMake (recommended):
|
With CMake (recommended):
|
||||||
<pre>
|
|
||||||
git clone https://github.com/z3apa3a/3proxy
|
git clone https://github.com/z3apa3a/3proxy
|
||||||
cd 3proxy
|
cd 3proxy
|
||||||
mkdir build && cd build
|
mkdir build && cd build
|
||||||
cmake ..
|
cmake ..
|
||||||
cmake --build .
|
cmake --build .
|
||||||
sudo cmake --install .
|
sudo cmake --install .
|
||||||
</pre>
|
|
||||||
|
|
||||||
This installs binaries to /usr/local/bin/, configuration to /etc/3proxy/,
|
This installs binaries to /usr/local/bin/, configuration to /etc/3proxy/,
|
||||||
plugins to /usr/local/lib/3proxy/, rc scripts to rc.d for BSD and launchd plist to /Library/LaunchDaemons/ for MacOS.
|
plugins to /usr/local/lib/3proxy/, rc scripts to rc.d for BSD and launchd plist to /Library/LaunchDaemons/ for MacOS.
|
||||||
|
|
||||||
Service management on macOS:
|
Service management on macOS:
|
||||||
<pre>
|
|
||||||
# Load and start service
|
# Load and start service
|
||||||
sudo launchctl load /Library/LaunchDaemons/org.3proxy.3proxy.plist
|
sudo launchctl load /Library/LaunchDaemons/org.3proxy.3proxy.plist
|
||||||
|
|
||||||
@ -110,7 +110,7 @@ sudo launchctl start org.3proxy.3proxy
|
|||||||
|
|
||||||
# Unload and disable service
|
# Unload and disable service
|
||||||
sudo launchctl unload /Library/LaunchDaemons/org.3proxy.3proxy.plist
|
sudo launchctl unload /Library/LaunchDaemons/org.3proxy.3proxy.plist
|
||||||
</pre>
|
|
||||||
|
|
||||||
Features:
|
Features:
|
||||||
1. General
|
1. General
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user