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 |
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
|