GithubHelp home page GithubHelp logo

自定义ping服务器 about serverstatus-rust HOT 19 CLOSED

zdz avatar zdz commented on May 19, 2024
自定义ping服务器

from serverstatus-rust.

Comments (19)

zdz avatar zdz commented on May 19, 2024

可以,修改这里重新编译即可 @VV-1024

static CU: &str = "cu.tz.cloudcpp.com:80";

from serverstatus-rust.

Tony-Yes avatar Tony-Yes commented on May 19, 2024

啊这,我不会重新编译,还有更简单一点的方法吗,我看见你这个都是打包好的,或者能直接修改吗

from serverstatus-rust.

zdz avatar zdz commented on May 19, 2024

不能直接修改,或者你可以改python版,不用重新编译

CU = "cu.tz.cloudcpp.com"

from serverstatus-rust.

zdz avatar zdz commented on May 19, 2024

@VV-1024 重新编译的步骤

curl https://sh.rustup.rs -sSf | sh
git clone https://github.com/zdz/ServerStatus-Rust.git
cd ServerStatus-Rust
yum install -y openssl-devel
cargo build --release
编译好的文件目录 target/release

from serverstatus-rust.

Tony-Yes avatar Tony-Yes commented on May 19, 2024

感谢大佬,我试一下

from serverstatus-rust.

Tony-Yes avatar Tony-Yes commented on May 19, 2024

为什么我编译出来的变得好大,好像也启动不了,文件足足有7MB

from serverstatus-rust.

Tony-Yes avatar Tony-Yes commented on May 19, 2024

无法运行好像是文件没权限,解决了

from serverstatus-rust.

zdz avatar zdz commented on May 19, 2024

为什么我编译出来的变得好大,好像也启动不了,文件足足有7MB
@VV-1024 这是因为github action编译打包时用upx压缩处理过的,你也可以在你的github库里打个tag,如v1.3.2,来触发用 github action 来编译打包


from serverstatus-rust.

Tony-Yes avatar Tony-Yes commented on May 19, 2024

只是文件上大小有区别的吗?性能什么不影响的话就不管了,但是ping值改了之后似乎也不是很好用
Uploading SmartSelect_20220330-092043_Via.jpg…
Uploading SmartSelect_20220330-092043_Via.jpg…

from serverstatus-rust.

Tony-Yes avatar Tony-Yes commented on May 19, 2024

SmartSelect_20220330-092149_Termius
SmartSelect_20220330-092043_Via

from serverstatus-rust.

zdz avatar zdz commented on May 19, 2024

不影响性能,这个如何定义好用?这个只是给你提供你vps到目标地址一种网络延时度量的参考

from serverstatus-rust.

Tony-Yes avatar Tony-Yes commented on May 19, 2024

懂了,刚刚测了一下路由,azhk联通也绕道日本去了,怪不得ping不对劲

from serverstatus-rust.

Tony-Yes avatar Tony-Yes commented on May 19, 2024

SmartSelect_20220402-163655_Nekogram
离线通知应该怎么改才能显示备注的那个名字呢,显示用户名不太好区分

from serverstatus-rust.

Tony-Yes avatar Tony-Yes commented on May 19, 2024

看不太懂那个文件😢

from serverstatus-rust.

zdz avatar zdz commented on May 19, 2024

目前写死在代码里面了,后面我改个版本支持一下
你也可以改这里,name 改为 alias,重编一下也可以

let content = format!("❗<b>Server Status</b>\n❗ {} 主机上线 🟢", stat.name);

from serverstatus-rust.

Tony-Yes avatar Tony-Yes commented on May 19, 2024

好的,我重新再编译一个版本

from serverstatus-rust.

Tony-Yes avatar Tony-Yes commented on May 19, 2024

大佬,你这个探针真的太好用了,简约不简单👍
SmartSelect_20220402-174424_Nekogram

from serverstatus-rust.

zdz avatar zdz commented on May 19, 2024

自己定制得不错,欢迎DIY 👍

from serverstatus-rust.

zdz avatar zdz commented on May 19, 2024

https://github.com/zdz/ServerStatus-Rust/releases/tag/v1.3.2

from serverstatus-rust.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.