#wire #transport #remotely #execution #management #over-there

已删除 over-there-wire

适用于其他over-there库的Wire传输库

0.1.0-alpha.1 2020年3月24日

#11 in #remotely


用于 over-there-core

MIT/Apache

205KB
5.5K SLoC

因使用 https://github.com/chipsenkbeil/distant 而被弃用

Over There —— 构建状态 最新版本 最新文档 over-there: rustc 1.39+

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-2.0许可证定义的,您有意提交以包含在作品中的任何贡献,将按上述方式双许可,不附加任何额外条款或条件。

依赖项

~8.5MB
~138K SLoC