{"id":13493682,"url":"https://github.com/admpub/nging","last_synced_at":"2025-05-14T08:05:50.464Z","repository":{"id":37333891,"uuid":"74321451","full_name":"admpub/nging","owner":"admpub","description":"Go语言Web管理面板，包含：计划任务 / MySQL管理 / Redis管理 / FTP管理 / SSH管理 / 服务器管理 / Caddy和Nginx配置 / DDNS / FRP可视化配置 / 云存储管理 等功能。可运行于 Windows / Linux / MacOS 等主流系统平台和 树莓派 / 路由器 等ARM设备","archived":false,"fork":false,"pushed_at":"2025-05-03T09:44:14.000Z","size":160493,"stargazers_count":1493,"open_issues_count":10,"forks_count":222,"subscribers_count":41,"default_branch":"master","last_synced_at":"2025-05-03T10:25:01.282Z","etag":null,"topics":["caddy","cron-jobs","database-manager","ddns","file-manager","frp-ui","ftp-server","mysql-client","nginx-configuration","offline-download","redis-client","sftp-client","ssh-manager","web-server-dashboard","web-ui","webdav"],"latest_commit_sha":null,"homepage":"https://nging.coscms.com","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/admpub.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":"support/chromedriver_386.exe","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"custom":["https://b.webx.top/donation/wechat","https://b.webx.top/donation/alipay","https://afdian.net/a/nging"]}},"created_at":"2016-11-21T03:09:45.000Z","updated_at":"2025-05-03T09:44:18.000Z","dependencies_parsed_at":"2023-02-16T20:01:01.004Z","dependency_job_id":"462d3065-7891-4683-b396-eacee5e81741","html_url":"https://github.com/admpub/nging","commit_stats":{"total_commits":4904,"total_committers":5,"mean_commits":980.8,"dds":"0.43066884176182707","last_synced_commit":"6c1f16b836dd4ccdd8cc8c57dfc44904f68c0c5f"},"previous_names":[],"tags_count":104,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/admpub%2Fnging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/admpub%2Fnging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/admpub%2Fnging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/admpub%2Fnging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/admpub","download_url":"https://codeload.github.com/admpub/nging/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254101615,"owners_count":22014909,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["caddy","cron-jobs","database-manager","ddns","file-manager","frp-ui","ftp-server","mysql-client","nginx-configuration","offline-download","redis-client","sftp-client","ssh-manager","web-server-dashboard","web-ui","webdav"],"created_at":"2024-07-31T19:01:17.796Z","updated_at":"2025-05-14T08:05:45.454Z","avatar_url":"https://github.com/admpub.png","language":"Go","readme":"# Nging V5 \n\n![Nging's logo](https://github.com/admpub/nging/blob/master/public/assets/backend/images/nging-gear.png?raw=true)\n\n\n\u003ca href=\"https://afdian.net/a/nging\"\u003e\u003cimg height=\"25\" src=\"https://pic1.afdiancdn.com/static/img/welcome/button-sponsorme.png\" style=\"vertical-align:middle\"\u003e\u003c/a \u003e\n\u003cimg src=\"https://stats.eget.io/badge/UA-NGING-GIT.svg\" style=\"vertical-align:middle\" height=\"25\" /\u003e\n\u003ca href=\"https://gitpod.io/#https://github.com/admpub/nging\" target=\"_blank\"\u003e\u003cimg src=\"https://gitpod.io/button/open-in-gitpod.svg\" alt=\"Open in Gitpod\" height=\"25\" style=\"vertical-align:middle\" /\u003e\u003c/a\u003e\n\n\u003e 注意：这是Nging V5源代码，旧版V4.x、V3.x、V2.x、V1.x已经转移到 [v4分支](https://github.com/admpub/nging/tree/v4) [v3分支](https://github.com/admpub/nging/tree/v3) [v2分支](https://github.com/admpub/nging/tree/v2) [v1分支](https://github.com/admpub/nging/tree/v1)\n\n    Nging支持MySQL和SQLite3数据库\n\nNging是一个网站服务程序，可以管理和配置 Caddy 和 Nginx 站点，并附带了实用的周边工具，例如：计划任务、MySQL管理、Redis管理、FTP管理、SSH管理、服务器管理等。\n\n## 赞助支持\n如果想要对本项目进行赞助支持，可前往我的爱发电主页：https://afdian.net/a/nging\n\n\n## 可执行文件下载\n\n* [最新版下载地址](http://dl.webx.top/nging/latest/)\n\n* [最新版备用地址](http://dl2.webx.top/nging/latest/)\n\n## 安装方式\n\n1. 安装Nging\n\n    1). 自动安装方式:\n\n    ```sh\n    sudo wget https://raw.githubusercontent.com/admpub/nging/master/nging-installer.sh -O ./nging-installer.sh \u0026\u0026 sudo chmod +x ./nging-installer.sh \u0026\u0026 sudo ./nging-installer.sh\n\n    # 如果是中国境内网络，可以选择采用以下命令：\n    sudo wget https://gitee.com/admpub/nging/raw/master/nging-installer.sh -O ./nging-installer.sh \u0026\u0026 sudo chmod +x ./nging-installer.sh \u0026\u0026 sudo ./nging-installer.sh\n    ```\n\n    nging-installer.sh 脚本支持的命令如下\n\n    命令 | 说明 | 示例\n    :--- | :--- | :---\n    `./nging-installer.sh` 或 `./nging-installer.sh install` | 安装(自动下载nging并启动为系统服务) | 安装默认最新基础版本: `./nging-installer.sh install` \u003cbr /\u003e安装指定版本: `./nging-installer.sh install 5.2.6` \u003cbr /\u003e\u003cem\u003e如有 Docker 容器管理需求，推荐通过指定版本号来安装 5.3.x 系列版本(也称之为先锋版):\u003c/em\u003e\u003cbr /\u003e `./nging-installer.sh install 5.3.2`\n    `./nging-installer.sh upgrade` 或 `./nging-installer.sh up` | 升级 | 升级到指定版本: `./nging-installer.sh up 5.2.6`\n    `./nging-installer.sh uninstall` 或 `./nging-installer.sh un` | 卸载 | `./nging-installer.sh un`\n\n    2). 手动安装方式:  \n    下载相应平台的安装包，解压缩到当前目录，进入目录执行名为“nging”的可执行程序(在Linux系统，执行之前请赋予nging可执行权限)。 例如在Linux64位系统，分别执行以下命令：\n\n    ```sh\n    cd ./nging_linux_amd64\n    chmod +x ./nging\n    ./nging\n    ```\n\n    3). [Docker 安装方式](./README_docker.md)\n\n2. 初始化配置Nging  \n    打开浏览器，访问网址 \u003chttp://localhost:9999/setup\u003e ，\n    在页面中配置数据库和管理员账号信息进行安装。\n\n    从 v5.2.5 和 v5.3.1 开始支持如下两种方式  \n\n    * 1). 通过网页安装界面配置 (适用于已经启动 nging 的情形):  \n    \n        打开浏览器，访问网址 \u003chttp://localhost:9999/setup\u003e ，\n    在页面中配置数据库和管理员账号信息进行安装。\n\n    * 2). 通过命令来配置 (适用于尚未启动 nging 的情形):  \n        * 安装到 MySQL 数据库的方式  \n            ```sh\n            ./nging init --user=\u003c数据库用户名\u003e --password=\u003c数据库密码\u003e --host=\u003cMySQL服务器主机地址\u003e --database=\u003cMySQL数据库名\u003e --adminUser=\u003c管理员用户名\u003e --adminPass=\u003c管理员密码,不少于8位\u003e --adminEmail=\u003c管理员E-mail\u003e\n            ```\n            例如:  \n            ```sh\n            ./nging init --user=root --password=\"root\" --host=\"127.0.0.1:3306\" --database=nging --adminUser=admin --adminPass=\"admin123\" --adminEmail=\"admin@coscms.com\"\n            ```\n        * 安装到 SQLite 数据库的方式  \n            ```sh\n            ./nging init --type=sqlite --database=\u003c数据库文件路径\u003e --adminUser=\u003c管理员用户名\u003e --adminPass=\u003c管理员密码,不少于8位\u003e --adminEmail=\u003c管理员E-mail\u003e\n            ```\n            例如:  \n            ```sh\n            ./nging init --type=sqlite --database=\"config/nging.db\" --adminUser=admin --adminPass=\"admin123\" --adminEmail=\"admin@coscms.com\"\n            ```\n\n        执行成功后，启动 nging。\n\n安装成功后，通过 \u003chttp://localhost:9999/\u003e 使用管理员账号登录。\n\n## Nging手动升级步骤\n\n0. 备份数据库和旧版可执行文件；\n1. 停止旧版本程序的运行；\n2. 将新版本所有文件复制到旧版文件目录里进行覆盖；\n3. 启动新版本程序；\n4. 登录后台检查各项功能是否正常；\n5. 升级完毕\n\n## 从 V3 升级\n将 `config/config.yaml` 文件内的 `caddy`、 `ftp`、`download` 配置块移动到 `extend` 块内(ftp改名为ftpserver)。即：\n```\nextend {\n    caddy {\n        // 内容略...\n    }\n    ftpserver {\n        // 内容略...\n    }\n    download {\n        // 内容略...\n    }\n}\n```\n\n## 开机自动运行\n\n1. 首先，安装为服务，执行命令 `./nging service install`\n2. 启动服务，执行命令 `./nging service start`\n\n与服务相关的命令：\n\n命令 | 说明 | 其它用例\n:--- | :--- | :---\n`./nging service install` | 安装服务 | Nging 默认使用 9999 端口，在安装为服务时，可以指定自定义端口 `./nging service install -p 9998`\n`./nging service start` | 启动服务 | 无\n`./nging service stop` | 停止服务 | 无\n`./nging service restart` | 重启服务 | 无\n`./nging service uninstall` | 卸载服务 | 无\n\n## Ⅰ、[功能介绍](docs/README.md)\n\n## Ⅱ、先睹为快\n\n### 手机端界面展示：\n\n|[![登录界面](https://gitee.com/admpub/nging/raw/master/preview/mobile/login.png?raw=true)](https://gitee.com/admpub/nging/raw/master/preview/mobile/login.png)|[![两步验证界面](https://gitee.com/admpub/nging/raw/master/preview/mobile/u2f.png?raw=true)](https://gitee.com/admpub/nging/raw/master/mobile/u2f.png)|[![面板首页](https://gitee.com/admpub/nging/raw/master/preview/mobile/index.png?raw=true)](https://gitee.com/admpub/nging/raw/master/preview/mobile/index.png)|\n|:--:|:--:|:--:|\n|[![负载统计图](https://gitee.com/admpub/nging/raw/master/preview/mobile/chart_cpu.png?raw=true)](https://gitee.com/admpub/nging/raw/master/preview/mobile/chart_cpu.png)|[![网速统计图](https://gitee.com/admpub/nging/raw/master/preview/mobile/chart_net.png?raw=true)](https://gitee.com/admpub/nging/raw/master/preview/mobile/chart_net.png)|[![菜单界面](https://gitee.com/admpub/nging/raw/master/preview/mobile/menu.png?raw=true)](https://gitee.com/admpub/nging/raw/master/preview/mobile/menu.png)|\n|[![数据库管理界面](https://gitee.com/admpub/nging/raw/master/preview/mobile/database.png?raw=true)](https://gitee.com/admpub/nging/raw/master/preview/mobile/database.png)|[![系统配置界面](https://gitee.com/admpub/nging/raw/master/preview/mobile/config.png?raw=true)](https://gitee.com/admpub/nging/raw/master/preview/mobile/config.png)|[![控制台终端](https://gitee.com/admpub/nging/raw/master/preview/mobile/term.png?raw=true)](https://gitee.com/admpub/nging/raw/master/preview/mobile/term.png)|\n\n### PC端界面展示：\n\n#### 运行\n\n[![安装](https://gitee.com/admpub/nging/raw/master/preview/preview_cli.png?raw=true)](https://gitee.com/admpub/nging/raw/master/preview/preview_cli.png)\n\n#### 安装：\n\n[![安装](https://gitee.com/admpub/nging/raw/master/preview/preview_install.png?raw=true)](https://gitee.com/admpub/nging/raw/master/preview/preview_install.png)\n\n#### 登录：\n\n[![登录](https://gitee.com/admpub/nging/raw/master/preview/preview_login.png?raw=true)](https://gitee.com/admpub/nging/raw/master/preview/preview_login.png)\n\n#### 系统信息：\n\n[![系统信息](https://gitee.com/admpub/nging/raw/master/preview/preview_sysinfo.png?raw=true)](https://gitee.com/admpub/nging/raw/master/preview/preview_sysinfo.png)\n\n#### 实时状态：\n\n[![实时状态](https://user-images.githubusercontent.com/512718/59155431-376ebe00-8abc-11e9-8d29-cee91978e574.png)](https://user-images.githubusercontent.com/512718/59155431-376ebe00-8abc-11e9-8d29-cee91978e574.png)\n\n\n#### 在线编辑文件：\n\n[![在线编辑文件](https://gitee.com/admpub/nging/raw/master/preview/preview_editfile.png?raw=true)](https://gitee.com/admpub/nging/raw/master/preview/preview_editfile.png)\n\n#### 添加计划任务：\n\n[![添加计划任务](https://gitee.com/admpub/nging/raw/master/preview/preview_task.png?raw=true)](https://gitee.com/admpub/nging/raw/master/preview/preview_task.png)\n\n#### MySQL数据库管理：\n\n[![MySQL数据库管理](https://gitee.com/admpub/nging/raw/master/preview/preview_listtable.png?raw=true)](https://gitee.com/admpub/nging/raw/master/preview/preview_listtable.png)\n\n\n## Ⅲ、[开发指引](docs/developer.md)\n\n\n请注意，本系统的源代码基于AGPL协议发布，不管您使用本系统的完整代码还是部分代码，都请遵循AGPL协议。  \n\u003e 如果需要更宽松的商业授权协议，请联系我购买授权。\n","funding_links":["https://b.webx.top/donation/wechat","https://b.webx.top/donation/alipay","https://afdian.net/a/nging"],"categories":["开源类库","Go","Open source library"],"sub_categories":["业务框架","Business Framework"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadmpub%2Fnging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadmpub%2Fnging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadmpub%2Fnging/lists"}