在windows中用管理员身份运行Powershell,之后执行如下代码:
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
运行过程如下图:
这样choco就安装成功了。
java -jar -Xmx512m -Xms512m gateway-server-0.0.1-SNAPSHOT.jar
sb -u http://localhost:8088/api/hello -c 20 -N 60