Add more example in README

This commit is contained in:
zonyitoo
2020-02-11 21:42:21 +08:00
parent 6561951e34
commit c2a2157ff8
+11
View File
@@ -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