方法一:
docker快速部署:
优点:快速,方便
缺点:无法使用login界面,没法添加用户
参考:
https://github.com/Tencent/bk-cmdb/blob/master/docs/wiki/container-support.md
--使用docker安装,需要提前安装好docker环境
--在本地windows环境docker 工具下载(虚机无法直接上公网)
docker pull ccr.ccs.tencentyun.com/bk.io/cmdb-standalone:latest
--打包
docker save -o bk-cmdb_docker.tar ccr.ccs.tencentyun.com/bk.io/cmdb-standalone:latest
--传至虚机内网环境,使用docker load 命令将镜像加载:
docker load -i bk-cmdb_docker.tar
--查看docker镜像
docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
ccr.ccs.tencentyun.com/bk.io/cmdb-standalone latest e901f1a49400 3 months ago 1.66GB
--启动容器
docker run -d -p 8081:8090 ccr.ccs.tencentyun.com/bk.io/cmdb-standalone:latest
--访问服务
http://192.168.3.3:8081
--修改网页title及页面名称
1、修改网页title根据docker服务路径,找到文件index
cd /var/lib/docker/overlay2/37b6b89af532da901215640c42925ed6c0fd16611cc25b959a069b4fb16e78a3/merged/data/cmdb/web
vi index.html
<!DOCTYPE html><html><head><meta charset=utf-8><title>上海信托IT配置平台</title><link rel="shortcut icon" href=/static/favicon.ico type=image/x-icon><link href=/static/css/app.a36af7782efcb01b57df95d7c835aba7.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript>window.Site = {
url: {{.site}},
version: {{.version}},
login: {{.curl}},
agent: {{.agentAppUrl}},
buildVersion: ''
}
window.User = {
admin: {{.role}},
name: {{.userName}}
}
window.Supplier = {
account: '0'
}</script><script type=text/javascript src=/static/js/manifest.a6073c2511c1964f786e.js></script><script type=text/javascript src=/static/js/vendor.0bc742fbb72fafbc8161.js></script><script type=text/javascript src=/static/js/app.14aa5023ff09176e289d.js></script></body></html>