Browse Source

update README

pull/22/head
Max Lv 11 years ago
parent
commit
f2d1e267c6
1 changed files with 53 additions and 0 deletions
  1. 53
      README.md

53
README.md

@ -64,6 +64,8 @@ no more than 5% on a low-end router (Buffalo WHR-G300N V2 with a 400MHz MIPS CPU
Installation Installation
------------ ------------
## Linux
For Unix-like systems, especially Debian-based systems, For Unix-like systems, especially Debian-based systems,
e.g. Ubuntu, Debian or Linux Mint, you can build the binary like this: e.g. Ubuntu, Debian or Linux Mint, you can build the binary like this:
@ -73,6 +75,57 @@ e.g. Ubuntu, Debian or Linux Mint, you can build the binary like this:
sudo make install sudo make install
``` ```
## FreeBSD
```bash
$ su
# cd /usr/ports/net/shadowsocks-libev
# make install
```
Then add your configuration into /etc/rc.conf file:
```
# RECOMMENDED
shadowsocks_libev_enable="YES"
shadowsocks_libev_flags="-c /PATH/TO/CONFIG.JSON"
```
or you can omit the config.json file, specify arguments directly:
```
shadowsocks_libev_enable="YES"
shadowsocks_libev_password="YOUR PASSWORD"
shadowsocks_libev_port="1080"
shadowsocks_libev_localport="7070"
```
Start the shadowsocks server:
```bash
# service shadowsocks_libev start
```
## OpenWRT
```bash
# At OpenWRT build root
pushd package
git clone https://github.com/madeye/shadowsocks-libev.git
popd
# Enable shadowsocks-libev in network category
make menuconfig
# Optional
make -j
# Build the package
make V=99 package/shadowsocks-libev/openwrt/compile
```
## Windows
For Windows, use either MinGW (msys) or Cygwin to build. For Windows, use either MinGW (msys) or Cygwin to build.
At the moment, only `ss-local` is supported to build against MinGW (msys). At the moment, only `ss-local` is supported to build against MinGW (msys).

Loading…
Cancel
Save