From c2a2157ff8d07af52c4e766f71e468b50ccb8900 Mon Sep 17 00:00:00 2001 From: zonyitoo Date: Tue, 11 Feb 2020 21:42:21 +0800 Subject: [PATCH] Add more example in README --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index f027e25b..d9c33eff 100644 --- a/README.md +++ b/README.md @@ -254,12 +254,23 @@ NOTE: `stat` command is not supported. Because servers are running in the same p # Start it just with --manager-address command line parameter ssmanager --manager-address "127.0.0.1:6100" +# For *nix system, manager can bind to unix socket address +ssmanager --manager-address "/tmp/shadowsocks-manager.sock" + # You can also provide a configuration file # # `manager_address` key must be provided in the configuration file ssmanager -c /path/to/shadowsocks.json + +# Create one server by UDP +echo '{"add":{"server_port":8388,"password":"hello-kitty"}}' | nc -u '127.0.0.1' '6100' + +# Close one server by unix socket +echo '{"remove":{"server_port":8388}}' | nc -Uu '/tmp/shadowsocks-manager.sock' ``` +For manager UI, check more details in the [shadowsocks-manager](https://github.com/shadowsocks/shadowsocks-manager) project. + Example configuration: ```jsonc