1 | ln -s /opt/Kingbase/ES/V8/KESRealPro/V008R006C008B0020/license.dat /opt/Kingbase/ES/V8/license.dat |
1 | /opt/Kingbase/ES/V8/Server/bin/sys_ctl -D /opt/Kingbase/ES/V8/data restart |
关于金仓数据库License更多信息,请参见官方介绍文档:https://help.kingbase.com.cn/v8.6.8.20/install-updata/license-information/index.html。
1 2 | chown bes:bes ${licenseFile} chmod 700 ${licenseFile} |
${licenseFile}:表示License文件绝对路径,且文件名必须为bes.lic.txt,例如:/home/bes/bes_appserver_standard_9.5.5.7266/license/bes.lic.txt。
1 2 3 | su - bes cd ${bes_appserver}/bin ./iastool --user admin --passwordfile ../conf/.passwordfile stop --server |
如果返回结果中包含“Command stop --server executed successfully.”,则表示停止成功。
${bes_appserver}:表示宝兰德BES_AppServer安装目录,请跟实际情况进行替换。
1 | ./lmadm import-lic --sourcepath=${licensePath} |
如果返回结果中包含“License xxx.txt has been imported into /home/bes/bes_appserver_standard_9.5.5.7266/license/bes.lic successfully.”,则表示许可证导入成功。
${licensePath}:表示放置证书目录的绝对路径,例如:/home/bes/bes_appserver_standard_9.5.5.7266/license。
1 | bash stopserver.sh
|
1 | bash startserver.sh
|