- 配置文件
编译settings.json
- 配置端口
"port": 9001,
- 配置用户
搜索users,找到如下代码,去掉注释:
"users": {
"admin": {
// 1) "password" can be replaced with "hash" if you install ep_hash_auth
// 2) please note that if password is null, the user will not be created
"password": "123456",
"is_admin": true
},
"test": {
// 1) "password" can be replaced with "hash" if you install ep_hash_auth
// 2) please note that if password is null, the user will not be created
"password": "123456",
"is_admin": false
}
},
- 重启服务器
# 省事
killall node
bin/run.sh
- 测试管理员功能
![](https://img.laitimes.com/img/__Qf2AjLwojIjJCLyojI0JCLicmbw5SOxAzNxEWZ1EjYjN2MjVWOxYGN0IGMhF2NhJWMiZDMi9CX5d2bs92Yl1iclB3bsVmdlR2LcNWaw9CXt92Yu4GZjlGbh5yYjV3Lc9CX6MHc0RHaiojIsJye.png)