新版本的whistle支持三種等價命令whistle
,w2
,wproxy
啟動whistle
w2 start
啟動時指定端口
w2 start -p 8899(// 不設置端口默認使用8899)
默認端口為8899,如果端口被占用,要修改端口號,可以通過 -p
來指定新的端口號
停止whistle
w2 stop
重啟whistle
w2 restart
更新whistle
sudo npm install whistle -g
查看幫助
w2 -h
或
w2 --help