外网服务器: www.InnovateDigital.com 用户名/密码 test/testgit
内网服务器:192.168.1.125bash
操做系统都是 Centos 7 64bit服务器
Hyperic 5.8.5 ,点击 该连接ssh
参照 在Centos 6 64bit 上安装 Hyperic HQ 5.8.2.1 中文版 在内网服务器(192.168.1.125)上,安装好 Hyperic Server,并把Hyperic Agent安装文件上传到 外网服务器 www.InnovateDigital.com的 /home/test 目录下spa
在内网服务器上,运行下面命令操作系统
ssh -N -v -R 7788:192.168.1.125:7080 test@www.innovatedigital.com
根据提示填写密码。 .net
其中code
-R 创建反向隧道(从外网服务器到内网服务器)orm
7788 是在外网服务器上的监听端口server
192.168.1.125 是本地(内网服务器)地址
7080 是内网服务器的端口
将到外网服务器端口 7788的访问,映射到内网服务器端口7080上。
在外网服务器上,使用 tar xzvf 解压缩 Hyperic Agent 安装包,而后运行:
[test@tester bin]$ cd /home/test/agent-5.8.5/bin [test@tester bin]$ ./hq-agent.sh start Starting HQ Agent...... running (20732). [ Running agent setup ] What is the HQ server IP address: localhost Should Agent communications to HQ always be secure [default=yes]: no What is the HQ server http port [default=7080]: 7788 - Testing secure connection ... Success What is your HQ login [default=hqadmin]: What is your HQ password: 请输入hqadmin的密码 What IP should HQ use to contact the agent [default=42.96.136.116]: What port should HQ use to contact the agent [default=2144]: - Received temporary auth token from agent - Registering agent with HQ The server to agent communication channel is using a self-signed certificate and could not be verified Are you sure you want to continue connecting? [default=no]: yes - HQ gave us the following agent token 1409038071406-733078726523143911-738338007125620383 - Informing agent of new HQ server - Validating - Successfully setup agent