gcware如何知道各个节点的状态

warning: 这篇文章距离上次修改已过1648天,其中的内容可能已经有所变动。

gcware使用ssh探测各个节点的状态,使用ssh探测是使用默认的22端口,如果ssh端口号修改了,就要对应修改corosync配置文件中的配置参数。

检查gcware内探测节点状态所使用的ssh端口与系统的ssh端口是否一致的方法为:
首先执行cat /etc/corosync/corosync.conf命令查看corosync配置文件中的node_ssh_port端口,如果配置文件中没有node_ssh_port端口,表示程序默认使用22端口;
然后执行cat /etc/ssh/sshd_config命令,查看系统ssh服务所使用的端口。

修改gcware内探测节点状态所使用的ssh端口与系统的ssh端口是否一致的方法为:

方法1:
修改/etc/corosync/corosync.conf配置文件中的node_ssh_port端口,使其与/etc/ssh/sshd_config中的Port一致。

方法2:
修改/etc/ssh/sshd_config中的Port端口,修改命令包含如下三条:
(1)执行vi /etc/ssh/sshd_config(修改ssh服务端端口)命令,将Port端口修改为/etc/corosync/corosync.conf配置文件中的node_ssh_port端口。
(2)执行vi /etc/ssh/ssh_config(修改ssh客户端端口)命令,将Port端口修改为/etc/corosync/corosync.conf配置文件中的node_ssh_port端口。
(3)执行/etc/init.d/sshd restart命令,重启ssh服务。
最后修改于:2020年10月28日 09:59

添加新评论