{"id":13905979,"url":"https://github.com/yddeng/amp","last_synced_at":"2026-01-14T22:35:38.322Z","repository":{"id":65149702,"uuid":"452572034","full_name":"yddeng/amp","owner":"yddeng","description":"自动化管理平台: 计划任务、进程控制、进程监控报警 ","archived":false,"fork":false,"pushed_at":"2022-08-17T01:20:42.000Z","size":41489,"stargazers_count":18,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-25T14:47:32.994Z","etag":null,"topics":["command","manage","monitor","process","supervisor"],"latest_commit_sha":null,"homepage":"","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yddeng.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-27T06:51:45.000Z","updated_at":"2023-04-22T03:43:09.000Z","dependencies_parsed_at":"2023-01-02T15:24:46.937Z","dependency_job_id":null,"html_url":"https://github.com/yddeng/amp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yddeng/amp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yddeng%2Famp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yddeng%2Famp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yddeng%2Famp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yddeng%2Famp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yddeng","download_url":"https://codeload.github.com/yddeng/amp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yddeng%2Famp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28436584,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T21:32:52.117Z","status":"ssl_error","status_checked_at":"2026-01-14T21:32:33.442Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["command","manage","monitor","process","supervisor"],"created_at":"2024-08-06T23:01:27.394Z","updated_at":"2026-01-14T22:35:38.305Z","avatar_url":"https://github.com/yddeng.png","language":"Vue","funding_links":[],"categories":["Vue"],"sub_categories":[],"readme":"# amp\n\namp 是一个自动化管理平台： 计划任务、进程控制\n\n## 开发语言与框架\n\n前端： vue4.5.15 + antd1.7.8\n\n后端： go1.17.7 + gin + gopsutil\n\n## 页面展示 \n\n![image](https://github.com/yddeng/amp/blob/master/assets/image/cmd_list.jpg)\n![image](https://github.com/yddeng/amp/blob/master/assets/image/cmd_exec.jpg)\n![image](https://github.com/yddeng/amp/blob/master/assets/image/cmd_exec_result.jpg)\n![image](https://github.com/yddeng/amp/blob/master/assets/image/process_list.jpg)\n![image](https://github.com/yddeng/amp/blob/master/assets/image/machine_list.jpg)\n\n## 启动\n\n### 前端项目\n\n切换到 `front-vue` 目录\n\n安装依赖 `yarn install `\n\n更改 `vue.config.js` 第7行 `const target = 'http://10.128.2.123:40156'` 地址\n\n运行 `yarn run serve `\n\n打包 `yarn build` , 运行后会在`front-vue`目录生成 `dist` 文件夹，里面就是构建打包好的文件\n\n### 后端项目\n\n1. 中心节点。部署web项目、管理子节点\n\n切换到 `back-go/cmd` 目录\n\n配置 `amps_config.json`\n```\n  \"data_path\": \"./data\",           // 数据存放目录\n  \"center_config\": {\n    \"address\": \"0.0.0.0:40155\",    // 子节点访问地址 \n    \"token\": \"token\"               // 子节点登陆时验证的令牌\n  },\n  \"web_config\": {\n    \"address\": \"0.0.0.0:40156\",    // 前端访问地址\n    \"app\": \"../../front-vue/dist\", // 前端打包好的静态文件\n    \"admin\": {                     // 前端控制登陆账号及密码\n      \"username\": \"admin\",\n      \"password\": \"123456\"\n    }\n  }\n```\n\n启动 `go run amps.go` 或者 `go build amps.go`+`./amps`\n\n2. 子节点。 上报物理机、进程状态、执行脚本\n\n切换到 `back-go/cmd` 目录\n\n配置 `ampe_config.json`\n```\n{\n  \"name\":      \"executor\",        // 子节点名字，唯一建\n  \"net\":       \"\",                // 公网IP\n  \"inet\":      \"127.0.0.1\",       // 内网IP\n  \"center\":    \"127.0.0.1:40155\", // 中心节点地址\n  \"token\":     \"token\",           // 登陆中心节点令牌\n  \"data_path\": \"./data\"           // 数据存放目录\n}\n```\n\n启动 `go run ampe.go` 或者 `go build ampe.go`+`./ampe`\n\n\n## todo\n\n进程监控报警、通知。 物理机监控报警\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyddeng%2Famp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyddeng%2Famp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyddeng%2Famp/lists"}