{"id":21803107,"url":"https://github.com/litongjava/ping-base64-client","last_synced_at":"2026-05-18T09:05:01.048Z","repository":{"id":173757400,"uuid":"611698710","full_name":"litongjava/ping-base64-client","owner":"litongjava","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-15T22:47:01.000Z","size":103,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-06T00:02:22.219Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/litongjava.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-09T11:12:30.000Z","updated_at":"2024-03-11T10:26:17.000Z","dependencies_parsed_at":"2024-03-15T23:38:54.333Z","dependency_job_id":null,"html_url":"https://github.com/litongjava/ping-base64-client","commit_stats":null,"previous_names":["litongjava/ping-base64-client"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/litongjava/ping-base64-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litongjava%2Fping-base64-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litongjava%2Fping-base64-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litongjava%2Fping-base64-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litongjava%2Fping-base64-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/litongjava","download_url":"https://codeload.github.com/litongjava/ping-base64-client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litongjava%2Fping-base64-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33172173,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T05:43:36.989Z","status":"ssl_error","status_checked_at":"2026-05-18T05:43:19.133Z","response_time":71,"last_error":"SSL_read: 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":[],"created_at":"2024-11-27T11:38:29.556Z","updated_at":"2026-05-18T09:05:01.004Z","avatar_url":"https://github.com/litongjava.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ping-base64-client\n\nping-base64-client是一个部署客户端,需要配合服务端:ping-base64-webapi一起使用.\n工作流程如下\n- 上传文件到服务器的指定目录\n- 解压文件到指定目录(可以省略)\n- 在服务器上运行一条命令\n\n## 构建\n\n```shell\ngo build\n```\nor\n```shell\ngo install\n```\n\n## 使用\n### 方式1: 通过命令行指定参数\n\n```\nping-base64-client.exe -url http://192.168.3.9:10405/file/upload-run/ -file {localfile} -m {savePath} -d {unzipPath} -c \"{cmd}\"\n```\n\n```shell\n-url url:服务器全url\n-file localfile:本地文件通常是一个压缩包,上传到服务器上\n-m savePath:上传文件保存路径\n-d unzipPath:上传文件解压路径\n-c cmd:解压完成执行的命令\n```\n\neg\n\n```\nping-base64-client -url http:/xxxx:10405/file/upload-run/ -file target\\malang-pen-api-server-1.0.0.jar -m /data/apps/webapps/malang_pen_api_server -c \"docker restart malang_pen_api_server\"\n```\n\n## 方式2 : 通过配置文件指定参数\n\n```\nping-base64-client -a upload-run\n```\n\n运行过程中会读取配置配置ping-base64.toml,文件示例如下\n\n```\n[upload-run]\nurl = \"http://xxxx/file/upload-run/\"\nfile = \"target/malang-pen-api-server-1.0.0.jar\"\nm = \"/data/apps/webapps/malang_pen_api_server\"\nc = \"docker restart malang_pen_api_server\"\n```\n\n注: 命令行的参数优先级高于配置文件\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flitongjava%2Fping-base64-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flitongjava%2Fping-base64-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flitongjava%2Fping-base64-client/lists"}