Console
如何启动
通过执行使用-c参数构建的ChubaoFS的服务器二进制文件来启动控制台进程,并指定配置文件
nohup cfs-server -c console.json &
Configurations
Key | Type | Description | Mandatory |
---|---|---|---|
role | string | Role of process and must be set to console | Yes |
logDir | string | Path for log file storage | Yes |
logLevel | string | Level operation for logging. Default is error | No |
listen | string | Port of TCP network to be listen, default is 80 | Yes |
masterAddr | string slice | Addresses of master server | Yes |
objectNodeDomain | string | object domain for sign url for down | Yes |
master_instance | string | the tag for monitor | Yes |
monitor_addr | string | Prometheus the address | Yes |
dashboard_addr | string | console menu forward to Grafana | Yes |
monitor_app | string | the tag for monitor, it same as master config | Yes |
monitor_cluster | string | the tag for monitor, it same as master config | Yes |
Example:
{
"role": "console",
"logDir": "/cfs/log/",
"logLevel": "debug",
"listen": "80",
"masterAddr": [
"192.168.0.11:17010",
"192.168.0.12:17010",
"192.168.0.13:17010"
],
"master_instance": "192.168.0.11:9066",
"monitor_addr": "http://192.168.0.102:9090",
"dashboard_addr": "http://192.168.0.103",
"monitor_app": "cfs",
"monitor_cluster": "spark"
}
Notice
- 你可以通过这个网址来访问console http://127.0.0.1:80
- 在console里默认用户名是 root 密码 ChubaoFSRoot
- 如果你的系统是升级来的可能发生密码格式不兼容, 你可以通过 curl -H “Content-Type:application/json” -X POST –data ‘{“id”:”testuser”,”pwd”:”12345”,”type”:2}’ “http://10.196.59.198:17010/user/create” 创建一个新用户来登陆