如何当ssh不是默认22端口时安装蓝鲸的job?

蓝鲸智云 专栏收录该内容
30 篇文章 1 订阅

如何当ssh不是默认22端口时安装蓝鲸的job?

如何安装蓝鲸的job?

q.前提知识:

本文基于《如何当ssh不是默认22端口时安装蓝鲸的CMDB?》
https://blog.csdn.net/haoding205/article/details/82773424

1.引子:

在上文中,我们知道,快速部署蓝鲸的方法,比如在安装JOB时的命令是:

cd /data/install
./bk_install job  # 安装作业平台及其依赖组件,并在安装蓝鲸的服务器上装好 gse_agent 供验证
# 同时在配置平台中可以看到蓝鲸的模块下加入了主机
# 该步骤完成后, 可以打开作业平台, 并执行作业

会不会有报错呢?让我们拭目以待:

2.安装过程记录

[root@paas-1 install]# ./bk_install job
[192.168.1.103]20180919-161258 28   install nginx has been performed without FATAL stat...  skip
[192.168.1.103]20180919-161258 28   install mysql has been performed without FATAL stat...  skip
[192.168.1.103]20180919-161258 28   install mongodb has been performed without FATAL stat...  skip

        install rabbitmq(allproject) on host: 192.168.1.101        

[192.168.1.101]20180919-161301 748   check dependencies...
[192.168.1.101]20180919-161301 75   check dependences for rabbitmq
Loaded plugins: fastestmirror
Repository epel is listed more than once in the configuration
Loading mirror speeds from cached hostfile
Package zip-3.0-11.el7.x86_64 already installed and latest version
#此处省略100000字
[192.168.1.102]20180919-161430 1286     > allocate host(192.168.1.102) to [zookeeper]: {"code":0,"data":""}

        install gse_agent(allproject) on host: 192.168.1.103        

--2018-09-19 16:14:32--  http://192.168.1.101/download/functions
Connecting to 192.168.1.101:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8242 (8.0K) [application/octet-stream]
Saving to: ‘/tmp/funclib’

     0K ........                                              100%  146M=0s

2018-09-19 16:14:32 (146 MB/s) - ‘/tmp/funclib’ saved [8242/8242]

[192.168.1.103]20180919-161432 535   install gse client, os: linux
[192.168.1.103]20180919-161432 364   extract packge: /tmp/gse_client-linux-x86_64.tgz
[192.168.1.103]20180919-161433 368   render configuration files: /usr/local/gse/agent/etc/*
[192.168.1.103]20180919-161433 371   create directory: /var/{run,log,lib}/gse
[192.168.1.103]20180919-161433 146   stop gse process if exists
[192.168.1.103]20180919-161434 335   start gse processes
[192.168.1.103]20180919-161434|225	192.168.1.103  -- gse node on /usr/local/gse/agent: agent
[192.168.1.103]20180919-161434|140	start gse_agent ...Done
[192.168.1.103]20180919-161434 540   agent(client) setup done -- install_success
[192.168.1.103]20180919-161434 542   remove temperary files
[192.168.1.103]20180919-161434 1286     > allocate host(192.168.1.103) to [consul]: {"code":0,"data":""}
[192.168.1.103]20180919-161434 1286     > allocate host(192.168.1.103) to [consul]: {"code":0,"data":""}
[192.168.1.103]20180919-161434 1286     > allocate host(192.168.1.103) to [license]: {"code":0,"data":""}
[192.168.1.103]20180919-161434 1286     > allocate host(192.168.1.103) to [redis]: {"code":0,"data":""}
[192.168.1.103]20180919-161435 1286     > allocate host(192.168.1.103) to [appengine]: {"code":0,"data":""}
[192.168.1.103]20180919-161435 1286     > allocate host(192.168.1.103) to [esb]: {"code":0,"data":""}
[192.168.1.103]20180919-161435 1286     > allocate host(192.168.1.103) to [login]: {"code":0,"data":""}
[192.168.1.103]20180919-161435 1286     > allocate host(192.168.1.103) to [paas]: {"code":0,"data":""}
[192.168.1.103]20180919-161435 1286     > allocate host(192.168.1.103) to [gse_dba]: {"code":0,"data":""}
[192.168.1.103]20180919-161436 1286     > allocate host(192.168.1.103) to [gse_data]: {"code":0,"data":""}
[192.168.1.103]20180919-161436 1286     > allocate host(192.168.1.103) to [gse_task]: {"code":0,"data":""}
[192.168.1.103]20180919-161436 1286     > allocate host(192.168.1.103) to [gse_api]: {"code":0,"data":""}
[192.168.1.103]20180919-161436 1286     > allocate host(192.168.1.103) to [gse_btsvr]: {"code":0,"data":""}
[192.168.1.103]20180919-161436 1286     > allocate host(192.168.1.103) to [gse_proc]: {"code":0,"data":""}
[192.168.1.103]20180919-161436 1286     > allocate host(192.168.1.103) to [gse_ops]: {"code":0,"data":""}
[192.168.1.103]20180919-161437 1286     > allocate host(192.168.1.103) to [adminserver]: {"code":0,"data":""}
[192.168.1.103]20180919-161437 1286     > allocate host(192.168.1.103) to [apiserver]: {"code":0,"data":""}
[192.168.1.103]20180919-161437 1286     > allocate host(192.168.1.103) to [auditcontroller]: {"code":0,"data":""}
[192.168.1.103]20180919-161437 1286     > allocate host(192.168.1.103) to [datacollection]: {"code":0,"data":""}
[192.168.1.103]20180919-161437 1286     > allocate host(192.168.1.103) to [eventserver]: {"code":0,"data":""}
[192.168.1.103]20180919-161437 1286     > allocate host(192.168.1.103) to [hostcontroller]: {"code":0,"data":""}
[192.168.1.103]20180919-161437 1286     > allocate host(192.168.1.103) to [hostserver]: {"code":0,"data":""}
[192.168.1.103]20180919-161438 1286     > allocate host(192.168.1.103) to [objectcontroller]: {"code":0,"data":""}
[192.168.1.103]20180919-161438 1286     > allocate host(192.168.1.103) to [proccontroller]: {"code":0,"data":""}
[192.168.1.103]20180919-161438 1286     > allocate host(192.168.1.103) to [procserver]: {"code":0,"data":""}
[192.168.1.103]20180919-161438 1286     > allocate host(192.168.1.103) to [toposerver]: {"code":0,"data":""}
[192.168.1.103]20180919-161438 1286     > allocate host(192.168.1.103) to [webserver]: {"code":0,"data":""}
[192.168.1.103]20180919-161438 1286     > allocate host(192.168.1.103) to [zookeeper]: {"code":0,"data":""}
[192.168.1.103]20180919-161438 1286     > allocate host(192.168.1.103) to [job]: {"code":0,"data":""}
[192.168.1.103]20180919-161438 276   install gse_agent(allproject) done

[192.168.1.102] mysqld: RUNNING

[192.168.1.102] mongod: RUNNING

[192.168.1.103] redis: RUNNING

[192.168.1.101] zk: RUNNING

[192.168.1.102] zk: RUNNING

[192.168.1.103] zk: RUNNING

[192.168.1.101] rabbitmq: RUNNING

[192.168.1.103] license: RUNNING

[192.168.1.103] gse_alarm: RUNNING
[192.168.1.103] gse_ops: RUNNING
[192.168.1.103] gse_opts: RUNNING
[192.168.1.103] gse_api: RUNNING
[192.168.1.103] gse_btsvr: RUNNING
[192.168.1.103] gse_data: RUNNING
[192.168.1.103] gse_dba: RUNNING
[192.168.1.103] gse_task: RUNNING

[192.168.1.103] job: RUNNING
[192.168.1.103]20180919-161504 132   get rabbitmqadmin done.

如果以上步骤没有报错, 你现在可以通过 http://job.abc.com:80 访问作业平台,

[root@paas-1 install]# 

如下图:
在这里插入图片描述

3.验证安装成功的界面

3.1登录job首页界面

在这里插入图片描述

3.2新建作业执行界面

在这里插入图片描述

4.结论

安装蓝鲸的job成功,那为什么没有报关于SSH端口22的错误呢?因为这个坑在前面篇章“安装cmdb”就趟过去了,所以此篇章就没有报错了。

5.其他参考

http://docs.bk.tencent.com/bkce_install_guide/setup/quick_install.html

好了,聪明如你,知道了如何当ssh不是默认22端口时安装蓝鲸的job,是不是很欢喜 _

还有其他问题的可以在评论区留言或者扫码加博主获取资源或者提问。
在这里插入图片描述

  • 0
    点赞
  • 0
    评论
  • 0
    收藏
  • 打赏
    打赏
  • 扫一扫,分享海报

参与评论 您还未登录,请先 登录 后发表或查看评论
©️2022 CSDN 皮肤主题:创作都市 设计师:CSDN官方博客 返回首页

打赏作者

昊鼎王五

你的鼓励将是我创作的最大动力

¥2 ¥4 ¥6 ¥10 ¥20
输入1-500的整数
余额支付 (余额:-- )
扫码支付
扫码支付:¥2
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值