toughcli 是一個toughradius以及相關軟件的安裝配置工具包。它最大的用處就是幫助toughradius的使用者更輕鬆地完成toughradius及相關軟件的快速安裝部署,以及實現更方便的運維管理。python
toughcli 使用 python 開發,提供了一個能夠在 linux終端下使用的命令行腳本"toughcli". 經過 python 的包管理工具能夠直接安裝toughcli。mysql
在各個 linux 發行版中通常都支持 python,toughcli 主要依賴於 python2.7以上的版本,在 ubuntu 14,centos7等系統中都自帶了 python2.7的版本。linux
使用 Python 自帶的 easy_install包管理工具安裝redis
$ easy_install toughcli
或者使用更強大的 pip 工具sql
$ easy_install pip $ pip install toughcli
看看這個工具爲咱們提供了那些功能docker
$ toughcli --help Usage: toughcli [OPTIONS] COMMAND [ARGS]... Options: --version --info Show Server info --help Show this message and exit. Commands: docker mysql radius redis upgrade wlan
查看子模塊的指令幫助信息ubuntu
$ toughcli radius --help Usage: toughcli radius [OPTIONS] Options: --install -e, --edit-config edit radius docker-compose.yml config -o, --docker-operate [|ps|config|pull|logs|start|stop|restart|kill|rm|down|pause|unpause|status] docker instance operate -d, --rundir TEXT default:/home/toughrun -i, --instance TEXT -n, --worker-num INTEGER -r, --release [dev|stable|commcial] --help Show this message and exit.
查看服務器信息:centos
提示:若是你在安裝過程當中遇到困難,能夠經過這個指令反饋一些有用的信息。服務器
$ toughcli --info Linux distribution: CentOS Linux,7.2.1511,Core Cli version toughcli: 0.0.7 Env_home: /root Env_path: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/usr/local/bin Server platform: Linux-3.10.0-327.4.5.el7.x86_64-x86_64-with-centos-7.2.1511-Core,x86_64 Python version: CPython,2.7.5 Docker version 1.8.2-el7.centos, build a01dc02/1.8.2 docker-compose version 1.5.2, build 7240ff3