https://www.jianshu.com/p/d0a6b20ff174
注:
0.npm install
1.360浏览器访问不好使,用谷歌
2.开发文档;https://easy-mock.com/docs
github:https://github.com/easy-mock/easy-mock
3.集成ldap:
“ldap”: {
“server”: “ldap://192.168.169.xxx:389”, //ldap地址
“bindDN”: “cn=manager,dc=liuzhihui,dc=com”, //管理员账号
“password”: “123”, //管理员密码
“filter”: {
“base”: “dc=liuzhihui,dc=com”, //查询的根目录
“attributeName”: “uid” //查询用户的条件(登陆的账号)
}
4.后台运行:
npm run start >/dev/null 2>&1 &
重启:
netstat -tunlp |grep 7300
ps -ef|grep easy
把进程都kill
npm run start
5.启动芒果出现,由于不是root用户,无权限,但有sudo权限,启动时要加sudo
ERROR: child process failed, exited with error number 1
https://blog.csdn.net/wang1144/article/details/56388890