方法一:
java -jar moco-runner-1.1.0-standalone.jar http -p 8081 -c config.json
参数解释:
java -jar :运行jar包的必须命令
moco-runner-1.1.0-standalone.jar:moco的jar包
http:规定http协议,也可以使用https,但是配置json文件的方法就有点不同了
-p:指定运行的端口
-c:指定要运行配置文件
方法二:
java -Dfile.encoding=UTF-8 -jar moco-runner-1.1.0-standalone.jar http -p 8081 -c
config.json
主要怕中文乱码问题