[TOC]
E:> hosts
Usage:
hosts [command]
command:
ls
add
Examples:
hosts lsE:> hosts ls
- IP HOST
* 192.168.31.165 host.docker.internal
* 192.168.31.165 gateway.docker.internal
* 127.0.0.1 kubernetes.docker.internal
* 127.0.0.1 activate.navicat.com
* 127.0.0.1 ban.com
* 127.0.0.1 localhostE:> hosts add
Error: required flag(s) "ip", "host" not set
Usage:
hosts add
Examples:
hosts add --ip=127.0.0.1 --host=localhost
hosts add -i 127.0.0.1 -h localhost
Flags:
-i, --ip string register ip
-h, --host string register hostwindow service 练习小工具
E:\wsc
Usage:
wsc [command] [service]
Commands:
ls
restart
start
startall
stop
stopall
Examples:
wsc ls
wsc startall nginx
wsc start nginxE:\wsc start
Usage:
wsc start
wsc start <service>
Service:
mysql
nginx
phpfpm
redisE:\wsc start nginx
Nginx 服务正在启动 .
Nginx 服务已经启动成功。E:\wsc ls
SERVICE DESCRIBE STATUS
nginx nginx serer running
redis redis serer running
phpfpm nginx serer running
mysql mysql serer running