Git Product home page Git Product logo

Comments (11)

yihuiluo235 avatar yihuiluo235 commented on July 17, 2024 1

这么多,那你现在是如何部署客户端的,一个一个ssh 部署???。。。。 @yihuiluo235

还在考虑用什么法子 。 一个个ssh会死人 执行条ls 都会吐

from serverstatus.

chobitsos avatar chobitsos commented on July 17, 2024

这个很难做到吧,原作者就没有这个想法,轮子框架就已经做好了,我觉得基本无法实现同一用户名,就像你玩SS,也无法同一个账户实现多个端口吧

from serverstatus.

kchen0x avatar kchen0x commented on July 17, 2024

原作者没有这样设计那就算了,没有必要重复劳动。
但这样的实现是可以的,用户名和密码只是用来鉴权的,只需要一个 hostid 就能区别是那台客户端发来的数据了。这样服务端不用维护太多的用户,因为实际上用户也就一个。

from serverstatus.

nicky1605 avatar nicky1605 commented on July 17, 2024

楼上说的对啊。不用新增系统账户啊,只需要把那个配置文件的账户对应关系维护好了就可以了。

from serverstatus.

chobitsos avatar chobitsos commented on July 17, 2024

楼上说的对啊。不用新增系统账户啊,只需要把那个配置文件的账户对应关系维护好了就可以了。

建议你去看看源码,这样搞的话改动不小,二进制文件得重新编译,我自己目前做法,复制粘贴,用户名和名字一样就行
{
"username": "host1",
"name": "host1",
"type": "xen",
"host": "host1",
"location": "cn",
"password": "USER_DEFAULT_PASSWORD"
},
其实就算弄成一个用户名,我觉得好像也没多大作用,你还是得填名字,顶多少填一项用户名,然后就为了少填一项这玩意还得去编译二进制。脱着裤子放屁感觉!

from serverstatus.

nicky1605 avatar nicky1605 commented on July 17, 2024

楼上说的对啊。不用新增系统账户啊,只需要把那个配置文件的账户对应关系维护好了就可以了。

建议你去看看源码,这样搞的话改动不小,二进制文件得重新编译,我自己目前做法,复制粘贴,用户名和名字一样就行
{
"username": "host1",
"name": "host1",
"type": "xen",
"host": "host1",
"location": "cn",
"password": "USER_DEFAULT_PASSWORD"
},
其实就算弄成一个用户名,我觉得好像也没多大作用,你还是得填名字,顶多少填一项用户名,然后就为了少填一项这玩意还得去编译二进制。脱着裤子放屁感觉!

不太清楚我回答的这一版。我用的是BotoX原版的。只需要修改config.json就可以了啊,然后重启下serverstatus的服务。第一个机器用a01,第二个机器用a02。客户端不用新增系统用户,只需要在那个client文件中把用户名改成a01,不能改成同一个用户名。

from serverstatus.

wssfxtx avatar wssfxtx commented on July 17, 2024

其实我觉得服务端只起监测功能,客户端连接的时候服务端能自动添加客户端信息就好了!

from serverstatus.

cppla avatar cppla commented on July 17, 2024

@wssfxtx @nicky1605 @kchen0x @chobitsos ,改是比较好改,直接回传机器信息(hostname,ip)就可以了, 问题是改了之后分辨客户端机器没现在直观呀。

毕竟现在有【节点名,主机名,虚拟化,位置】可以自定义。。。。。改了就只有【hostname 和 ip地址了】

from serverstatus.

yihuiluo235 avatar yihuiluo235 commented on July 17, 2024

我这有70几台机器啊。。。

from serverstatus.

cppla avatar cppla commented on July 17, 2024

这么多,那你现在是如何部署客户端的,一个一个ssh 部署???。。。。 @yihuiluo235

from serverstatus.

cppla avatar cppla commented on July 17, 2024

ansible 或者 expect @yihuiluo235

from serverstatus.

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.