Skip to content

shudingbo/sex-pomelo-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

English | 简体中文

Sex-pomelo ( Pomelo ) Web 管理框架

这是针对 Sex-pomelo sex-pomelo( pomelo ) 的web管理框架。 本框架是 pomelo-cli的增强web版本。

shell

特色

图形化管理

可以对服务器(物理机子)和 服务(每个pomelo server)进行管理

  • node服务的开启,停止;
  • 支持 基于node 服务类型(ServerType)的开启,停止,移动(可以移动服务器到另一个物理服务器;
  • 支持 基于服务器的 node 服务开启,停止;

sex-pomelo-cli(pomelo)命令全支持

?   symbol for help
help   display the help
quit   quit pomelo-cli
kill   kill all servers
exec   exec script files
get   equal to app.get(key) 
set   equal to app.set(key, value)
add   add server to pomelo clusters
stop   stop server. Takes serverId as argument
show   show infos like : user, servers, connections
use   use another server. Takes serverId as argument
enable   enable an admin console module or enable app settings
disable   disable an admin console module or disable app settings
dump   make a dump of the V8 heap and cpu for later inspection
addCron   add cron for server
removeCron   remove cron for server
blacklist  add blacklist for frontend server
run  run script in server
execStr   exec script String
systemInfo  show server systeminfo
nodeInfo  show node info
monitorLog  get Log

shell Icon

配置

前端

发布后,更新 public 目录下 sexpCfg.js文件,更新 后端请求地址

window.sexpCfg = {
  baseUrl: 'http://192.168.2.31:7050'   // 后端地址
};

后端

编辑 config/config.default.js

  // redis配置
  config.redis = {
    client: {
      port: 6379,
      host: '192.168.2.10',
      password: null,
      db: 3,
    },
  };

  // 要管理的pomelo的 master 地址
  config.pomelo = {
    client: {
      master: [{
        alias: 'test-5',
        host: '192.168.2.5',
        port: 3005,
        username: 'admin',
        password: 'admin',
      },
      {
        alias: 'sdb-32',
        host: '192.168.2.32',
        port: 3005,
        username: 'admin',
        password: 'admin',
      },

      ],
    },
  };