项目地址:https://pypi.org/project/mock-server/
安装mock-server
sudo pip install mock-server
如果失败,添加忽略,如下:
sudo pip install mock-server --ignore-installed six
启动mock-server
mock-server --dir=./
后台启动mock-server
nohup mock-server --dir=/var/www/xxxmock --address=0.0.0.0 --port=8888 &
查找和kill mock-server进程
ps ax | grep mock-server
和 kill -9 [PID]
管理后台
http://wodedata.com:8888/__manage