0.1.0-alpha.1 |
|
---|
#246 in #协议
465KB
12K SLoC
已被弃用,转而使用 https://github.com/chipsenkbeil/distant
Over There —
Over There是一个库和工具,允许从“那里”远程管理和执行软件。
构建开发者版本
默认情况下,不包括CLI功能。这意味着执行正常构建将不包括二进制文件
cargo build
因此,必须指定cli功能
cargo build --features 'cli'
发布版本
有关文件大小的更多信息,请参阅以下链接: https://stackoverflow.com/a/54842093
cargo build --release --features 'cli'
strip target/release/over-there
不动态链接libc的发布版本
rustup target add x86_64-unknown-linux-musl
cargo build --release --target=x86_64-unknown-linux-musl --features 'cli'
请注意,在Mac OS X上,您需要安装musl-gcc
brew install FiloSottile/musl-cross/musl-cross
并且要在Mac上执行strip,请使用musl strip
x86_64-linux-musl-gcc target/x86_64-unknown-linux-musl/release/over-there
运行说明
一个明显的例子是,您需要匹配服务器IPv4与客户端IPv4,以及服务器IPv6与客户端IPv6。
例如,以下在IPv6之间工作良好
# On your machine
over-there client '[1111:2222:3333:4444:5555:6:78:9]:60000' <some command>
# On 1111:2222:3333:4444:5555:6:78:9
over-there server '[::]:60000'
例如,以下在IPv4之间工作良好
# On your machine
over-there client '123.456.7.890:60000' <some command>
# On 123.456.7.890
over-there server '0.0.0.0:60000'
overthered
otd
作为别名?
围绕overthere
的守护进程包装器,用于运行服务以监听请求并执行它们。
overtherec
otc
作为别名?
围绕overthere
的客户端包装器,可以发送命令到远程守护进程以执行,并通过各种方式中继结果,如stdout或文件。
许可证
许可协议为以下之一
- Apache License,版本2.0 (LICENSE-APACHE 或 https://apache.ac.cn/licenses/LICENSE-2.0)
- 麻省理工学院许可证(LICENSE-MIT 或 https://opensource.org/licenses/MIT)
任选其一。
贡献
除非您明确声明,否则根据Apache-2.0许可证定义,您有意提交以包含在作品中的任何贡献,应按上述方式双许可,不附加任何额外条款或条件。
依赖项
约12MB
约199K SLoC