页面树结构
转至元数据结尾
转至元数据起始

使用License Server进行授权,一般用于Smartbi在docker环境上部署,通过Smartbi的配置界面绑定License Server所在服务器的IP和mac。

1、系统环境准备

1.1防火墙配置

为了便于安装,建议在安装前关闭防火墙。使用过程中,为了系统安全可以选择启用防火墙,但必须启用服务相关端口。

1.关闭防火墙

临时关闭防火墙

systemctl stop firewalld

永久关闭防火墙

systemctl disable firewalld

查看防火墙状态

systemctl status firewalld

2.开启防火墙

相关服务及端口对照表:

服务名需要开放端口
License Server

8700

如果确实需要打开防火墙安装,需要给防火墙放开以下需要使用到的端口
开启端口:8700

firewall-cmd --zone=public --add-port=8700/tcp --permanent

配置完以后重新加载firewalld,使配置生效

firewall-cmd --reload

查看防火墙的配置信息

firewall-cmd --list-all

3.关闭selinux

临时关闭selinux,立即生效,不需要重启服务器。

setenforce 0

永久关闭selinux,修改完配置后需要重启服务器才能生效

sed -i 's/=enforcing/=disabled/g'  /etc/selinux/config

1.2 安装Java环境

 安装包解压到/opt目录

tar -zxvf jdk8.0.202-linux_x64.tar.gz -C /opt

配置java环境变量
①执行 vi ~/.bash_profile 在文件末尾添加java环境变量参数,并保存

export  JAVA_HOME=/opt/jdk8.0.202-linux_x64
export  JRE_HOME=$JAVA_HOME/jre
export  CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/jre/lib:$CLASSPATH
export  PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH

②使配置生效

source ~/.bash_profile

③查看java版本信息

java -version

2、部署License Server

Linux环境

1、获取SmartbiLicenseServer.tar.gz安装包,并上传到服务器,解压安装包到指定路径。

tar -zxvf SmartbiLicenseServer.tar.gz -C /opt

2、修改SmartbiLicenseServer.sh中JAVA_HOME的路径

cd SmartbiLicenseServer
vi StartLicenseServer.sh

如下图所示:

注意事项

注意:SmartbiLicenseServer默认使用8700,端口,如需替换端口,可修改StartLicenseServer.sh或StartLicenseServer.bat(windows系统)中--server.port的端口号

保存,退出。

3、启动License Server

chmod +x StartLicenseServer.sh
nohup ./StartLicenseServer.sh &

4、浏览器中输入http://IP:PORT 登录SmartbiLicenseServer

首次登陆需要设置密码

上传Smartbi-License.xml

Windows环境

1、安装好JAVA环境

2、解压SmartbiLicenseServer安装包

3、进入安装包,修改StartLicenseServer.bat中JAVA的安装路径,并保存退出

4、双击StartLicenseServer.bat启动SmartbiLicenseServer

5、浏览器中输入http://IP:PORT 登录SmartbiLicenseServer

6、上传Smartbi-License.xml

3、为Smartbi指定License Server

①参考相关smartbi部署文档,部署好smartbi

②登陆smartbi配置页面

③配置smartbi License为服务器模式,并输入Smartbi License Server地址,如下图所示:

注意事项

注意:服务器地址填写实际部署SmartbiLicenseServer的地址和端口

④配置完成后保存,重启smartbi即可


  • 无标签