合 人大金仓V8单机环境安装
单机下载安装
https://www.kingbase.com.cn/rjcxxz/index.htm
https://help.kingbase.com.cn/stage-api/profile/document/kes/v8r6/html/index.html
KingbaseES_V8R6_Lin64_install,1.6GB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 | wget https://kingbase.oss-cn-beijing.aliyuncs.com/KESV8R3/V8R6/%E5%AE%89%E8%A3%85%E5%8C%85/KingbaseES_V008R006C005B0041_Lin64_install.iso wget https://kingbase.oss-cn-beijing.aliyuncs.com/KESV8R3/V8R6/%E5%AE%98%E7%BD%91license_V8R6-%E4%BC%81%E4%B8%9A%E7%89%88.zip docker run -d --name lhrkingbase -h lhrkingbase \ -p 54321:54321 -p 54322:3389 \ -v /sys/fs/cgroup:/sys/fs/cgroup \ --privileged=true lhrbest/lhrcentos76:8.8 \ /usr/sbin/init yum -y install coreutils glib2 lrzsz dstat sysstat e4fsprogs xfsprogs\ ntp readline-devel zlib-devel openssl-devel pam-devel libxml2-devel\ libxslt-devel python-devel tcl-devel gcc gcc-c++ make smartmontools \ flex bison perl-devel perl-ExtUtils* openldap-devel jadetex openjade bzip2 useradd kingbase echo "kingbase:lhr" | chpasswd mkdir -p /opt/Kingbase/ES/V8 chown -R kingbase:kingbase /opt/Kingbase/ES/V8 -- 环境变量 cat >> /home/kingbase/.bashrc <<"EOF" export KINGBASE_DATA=/opt/Kingbase/ES/V8/data export LD_LIBRARY_PATH=/opt/Kingbase/ES/V8/Server/lib:$LD_LIBRARY_PATH #export PATH=/opt/Kingbase/ES/V8/Server/bin:$PATH EOF source /home/kingbase/.bashrc cat >> /etc/sysctl.conf <<"EOF" fs.aio-max-nr= 1048576 fs.file-max= 6815744 kernel.shmall= 2097152 kernel.shmmax= 4294967295 kernel.shmmni= 4096 kernel.sem= 250 32000 100 128 net.ipv4.ip_local_port_range= 9000 65500 net.core.rmem_default= 262144 net.core.rmem_max= 4194304 net.core.wmem_default= 262144 net.core.wmem_max= 1048576 EOF /sbin/sysctl-p /sbin/sysctl-a -- 挂载iso文件:iso格式的安装程序包需要先挂载才能使用。挂载iso文件需要使用root用户 mkdir -p /KingbaseESV8 mknod -m 0660 /dev/loop0 b 7 0 mount /soft/KingbaseES_V008R006C005B0041_Lin64_install.iso /KingbaseESV8 cd /KingbaseESV8 -- 启用图形界面 echo xfce4-session > /home/kingbase/.xsession chmod +x /home/kingbase/.xsession systemctl restart xrdp && systemctl enable xrdp -- 图形化界面安装 mstsc: 192.168.66.35:54322 , 以kingbase用户登录 sh setup.sh -i swing kingbase -V -- 控制台安装 su - kingbase sh setup.sh -i console -- 初始化实例 initdb -D /opt/Kingbase/ES/V8/data sys_ctl -D /opt/Kingbase/ES/V8/data -l logfile start sys_ctl status -- 开机启动服务 /opt/Kingbase/ES/V8/install/script/root.sh systemctl status kingbase8d.service /sbin/chkconfig kingbase8d on ksql -d test \password kingbase ksql -h 192.168.66.35 -p 54321 -U kingbase -d test psql -h 192.168.66.35 -p 54321 -U kingbase -d test [root@lhrkingbase /]# ps -ef|grep kingbase root 248 213 0 Mar29 pts/0 00:00:00 su - kingbase kingbase 249 248 0 Mar29 pts/0 00:00:00 -bash kingbase 25369 1 1 08:34 ? 00:00:00 /opt/Kingbase/ES/V8/KESRealPro/V008R006C005B0041/Server/bin/kingbase -D /opt/Kingbase/ES/V8/data kingbase 25370 25369 0 08:34 ? 00:00:00 kingbase: logger kingbase 25372 25369 0 08:34 ? 00:00:00 kingbase: checkpointer kingbase 25373 25369 0 08:34 ? 00:00:00 kingbase: background writer kingbase 25374 25369 0 08:34 ? 00:00:00 kingbase: walwriter kingbase 25375 25369 0 08:34 ? 00:00:00 kingbase: autovacuum launcher kingbase 25376 25369 0 08:34 ? 00:00:00 kingbase: stats collector kingbase 25377 25369 0 08:34 ? 00:00:00 kingbase: ksh writer kingbase 25378 25369 0 08:34 ? 00:00:00 kingbase: ksh collector kingbase 25379 25369 0 08:34 ? 00:00:00 kingbase: kwr collector kingbase 25380 25369 0 08:34 ? 00:00:00 kingbase: logical replication launcher root 25391 24257 0 08:34 pts/2 00:00:00 grep --color=auto kingbase |
控制台安装日志:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 | [kingbase@lhrkingbase KingbaseESV8]$ sh setup.sh -i console Now launch installer... tee: .installer.log: Read-only file system Preparing to install Extracting the JRE from the installer archive... Unpacking the JRE... Extracting the installation resources from the installer archive... Configuring the installer for this system's environment... Verifying JVM........ Launching installer... =============================================================================== 实例管理 ---- ->1- 安装新的实例 2- 修改存在的实例 选择实例管理选项: 1 =============================================================================== KingbaseES V8 (created with InstallAnywhere) ------------------------------------------------------------------------------- Preparing CONSOLE Mode Installation... =============================================================================== Welcome ------- This installer will guide you through the installation of KingbaseES V8. It is strongly recommended that you quit all programs before continuing with this installation. You may cancel this installation by typing 'quit'. KingbaseES Version: V8 Kingbase Type:BMJ-NO Installer Version: V008R006C005B0041 Install DATE:202203311113 Kingbase Inc. http://www.kingbase.com.cn PRESS <ENTER> TO CONTINUE: =============================================================================== Please Wait ----------- =============================================================================== License Agreement ----------------- Installation and Use of KingbaseES V8 Requires Acceptance of the Following License Agreement: Beijing Kingbase Information Technologies Inc. "SOFTWARE END-USER LICENSE AGREEMENT" IMPORTANT-READ CAREFULLY: This End-User License Agreement ("EULA") is a legal agreement between you (either an individual or a single entity) and Beijing Kingbase Information Technologies Inc.(abbreviated as Kingbase in the context). The "software product" includes computer software, and may include associated media, printed materials, and online documentation(Software product). This "software product" includes any upgrade and supplemental materials to the original "software product" provided by Kingbase. Any software product that are provided with the "software product", which are accompanied by their own license agreements or terms of use are governed by this EULA. You agree to be bound by the terms of this EULA by installing, copying, downloading, accessing or otherwise using the "software product". If you do not agree to the terms of this EULA, you may not install, copy or use the "software product". SOFTWARE PRODUCT LICENSE The "software product" is protected by copyright laws, international copyright treaty and other intellectual property laws and treaties. The "software product" is licensed to use, not sold. PRESS <ENTER> TO CONTINUE: 1. GRANT OF LICENSE. As long as you follow this EULA, Kingbase grants you the following non-exclusive, non-transitive rights: APPLICATION SOFTWARE. You can use the software in locations as agreed in the related contract. The usage is restricted by the quantity of the purchased and the type of the license (as agreed in the contract). If the license type has no special specification, you can only install, use, access, display, run or use other methods to interact(run) with one copy of this "software product" (or any previous versions on the same operating system) on a single computer, workstation, handheld computer, smart phone or other electronic device ("computer"). RESERVATION OF RIGHTS. Except for the specific statements in this EULA, Kingbase reserves all rights not expressly granted to you. Kingbase reserves the right to interpret the content of the agreement. 2. LIMITATIONS AND OTHER RIGHT LIMITATION ON TRANSFER. Under any condition, without the written permission of Kingbase, you may not transfer this license and any usage permission under this license. PRESS <ENTER> TO CONTINUE: NOT FOR RESALE SOFTWARE. If this "software product" is identified as "Not For Resale", it may not be sold or otherwise transferred for value, or used for any purpose other than demonstration, test or evaluation, no matter what else is stated in this EULA. LIMITATIONS ON REVERSE ENGINEERING, DECOMPILATION, AND DISASSEMBLY. You may not reverse engineer, decompile, or disassemble the "software product", except and only to the extent that such activity is expressly permitted by applicable law not with standing this limitation. TRADEMARKS. This EULA does not grant you any rights in connection with any trademarks or service marks of Kingbase. NO RENTAL. You may not rent, lease or lend the "software product" to others. EXPORT LIMITATION. You admit that the "software product" is governed by the export laws of People's Republic of China. You agree to obey all the international and domestic laws applicable to this "software product", including "Foreign Trade Law of the People's Republic of China", and other restrictions and regulations issued by the Chinese government related to software exportation. PRESS <ENTER> TO CONTINUE: PRODUCT SUPPORT. Kingbase provides you the support service related to the software product ("support service"), but the specific content of the support service is limited by related contract. Kingbase reserves the right to charge the support service. The usage of support service is restricted by the policies and plans in the user's manual, online document and/or other Kingbase provided materials. Any supplemental software code provided to you should be treated as a part of the "software product", and has to comply the terms and conditions in this EULA. As for the technical information you provided to Kingbase as a part of the support service, Kingbase may commercialize it, including product support and development. Kingbase will not mention you individually when using this technical information. TERMINATION. Without prejudice to other rights, Kingbase may terminate this EULA if you fail to comply with the terms and conditions of this EULA. In such event, you must destroy all copies of the "software product" and all of its component parts. 3. UPGRADES. If the "software product" is labeled as an upgrade, you must be properly licensed to use a product identified by Kingbase as being eligible for the upgrade in order to use the "software product". Kingbase reserves the right to charge the upgrade version or upgrade. "software product" labeled as PRESS <ENTER> TO CONTINUE: an upgrade replaces and/or supplements the Eligible Product which you are qualified to use. You may use the resulting upgraded product only in accordance with the terms of this EULA. If the "software product" is an upgrade of a component of a package of software programs that you licensed as a single product, the "software product" may be used and transferred only as part of that single product package and may not be separated for use on more than one computer. 4. INTELLECTUAL PROPERTY. The ownership, copyright and other intellectual property of the "software product" (including but not limited to the picture, photo, animation, video, recordings, music, text and supplemental programs contained in the "software product"), enclosed printed materials and any copies of the "software product", is owner by Kingbase and its suppliers. The ownership and intellectual property accessed by this "software product" belongs to the owner of the contents, and may be protected by copyright laws, and other intellectual property laws and treaties. This EULA does not grant you the right to use these contents. If this "software product" include documents only provided electronically, you can print one copy of the electronic documents. You may not remove the copyright declaration from the software, and ensures that the copyright declaration is copied for the replica (whole or part) of the "software product". You agree to stop any forms of illegal copying this software and the documents. You cannot copy the enclosed PRESS <ENTER> TO CONTINUE: printed materials in this "software product". 5. MULTIMEDIA SOFTWARE. You may obtain the "software product" through multiple medias. No matter the type and size of the media you receive, you can only use the media which is applicable to your single computer. You cannot run a different media on another computer. Except for the part as in "permanent transfer" of the "software product (as stated above), you cannot transfer the other medias to another user via rent, lease or lend. 6. BACKUP COPY. After installing a copy of the "software product" according to the EULA, you may keep the original media by which Kingbase provided you the "software product" solely for backup or archival purpose. If original media is needed to use the "software product", you may make one back-up copy solely for your backup or archival purposes. Except as expressly provided in this EULA, you may not otherwise make copies of the software, including the printed materials accompanying the software. Authorized copy should be kept in secured environments. 7. CONFIDENTIALITY. "Confidential information" includes program(including the methods and concepts used in the program) and any information that Kingbase identifies as exclusive or confidential. Unless expressly granted by this EULA, you may not expose or provide the confidential information by other PRESS <ENTER> TO CONTINUE: methods to a third party and any employees to whom you do not grant the usage in their business. You should take any reasonable, necessary measures to ensure that the program or any component of the software is not exposed or provided by other methods to a third party. If you acquired the Kingbase product in People's Republic of China, the following limited warranty applies to you. 1. LIMITED WARRANTY. As long as you have valid license, Kingbase warrants that: (1) The "software product" will perform substantially in accordance with the accompanying materials for a period of ninety (90) days after the date of receipt. (2) The provided support will perform substantially in accordance with the accompanying materials, and Kingbase engineers will try their best to solve any problems permitted by commercial range. If the product is not compliant to the warranty, Kingbase will fix, replace the product or refund you for the product, and you have to return the "software product" to Kingbase along with the invoice held by you. If the malfunction of the product is due to accident, abuse or misuse, then the warranty is not effective. The replaced product has the residual of the original warranty period, or thirty days, whichever is longer. To the maximum extent permitted by applicable law, except for the above warranty, all expressed or implied warranties, conditions and other PRESS <ENTER> TO CONTINUE: terms are denied by Kingbase. All implicit warranties which cannot be excluded are limited to 90 days or the minimum period allowed by the appropriate laws, whichever is longer. 2. LIMITATION OF LIABILITY To the maximum extent permitted by applicable law, except for the above warranty, Kingbase and its suppliers shall not be liable for any damages whatsoever (including without limitation, damages for loss of business profits, business interruption, loss of business information or other pecuniary loss) arising out of the use or inability to use the "software product", even if Kingbase and its suppliers have been advised of the possibility of such damages. In any case Kingbase and any of its suppliers' entire liability under any provision of this EULA shall be limited to the amount actually paid by you for the "software product" or RMB 10.00 Yuan, which ever is higher. However, if you have signed support agreement with Kingbase, all Kingbase's liability of the support service will be defined by that agreement. GOVERNING LAWS This EULA is governed by the laws of the People's Republic of China (including but not restricted to "Copyright Law of the People's Republic of China", "Regulations for the Protection of Computer Software of the People's Republic PRESS <ENTER> TO CONTINUE: of China", "Trademark Law of the People's Republic of China", "Patent Law of the People's Republic of China", "Anti-Unfair Competition Law of the People's Republic of China", etc.). In respect of any dispute or claim which may arise by this EULA or the violation of the EULA, you consent to the jurisdiction of the federal and provincial courts sitting in the location of Kingbase. If Kingbase's intellectual property is violated, the above terms do not restrict Kingbase to apply remedial measures from the legitimate court with governing rights. " Beijing Kingbase Information Technologies Inc. Add: 3 layer, B block, Information Industrial Park, Rongda Road 7, Chaoyang District, Beijing, 100102 China Tel: 86-10-5885 1118 Http: //www.kingbase.com.cn National Hotline: 400-601-1188 Support E-mail: support@kingbase.com.cn DO YOU ACCEPT THE TERMS OF THIS LICENSE AGREEMENT? (Y/N): y =============================================================================== Choose Install Set ------------------ Please choose the Install Set to be installed by this installer. ->1- Full 2- Client 3- Custom ENTER THE NUMBER FOR THE INSTALL SET, OR PRESS <ENTER> TO ACCEPT THE DEFAULT : 1 =============================================================================== Choose License File ------------------- File Path: /soft/license_12349/license_12349_0.dat License序列号 --- 启用 --- 412AA086-4378-11EC-AE8E-000C29CBE49F 生产日期 --- 启用 --- 2021-11-12 产品名称 --- 启用 --- KingbaseES V8 细分版本模板名 --- 启用 --- SALES-企业版 V8R6 产品版本号 --- 启用 --- V008R006C 浮动基准日期 ------ 启用 有效期间 --- 启用 --- 90 用户名称 --- 启用 --- 官方网站90天试用授权 项目名称 --- 启用 --- 官方网站90天试用授权 CPU检查 --- 启用 --- 0 容器名称 --- 禁用 --- 0 MAC地址 --- 启用 --- 00:00:00:00:00:00 最大连接数 --- 启用 --- 0 分区 --- 启用 --- 0 物理同步 --- 启用 --- 0 读写分离模块 --- 启用 --- 0 恢复到指定时间点 --- 启用 --- 0 集群对网络故障的容错 --- 启用 --- 0 快速加载 --- 启用 --- 0 日志压缩 --- 启用 --- 0 全文检索 --- 启用 --- 0 性能优化包(性能诊断) --- 启用 --- 0 性能优化包(性能调优) --- 启用 --- 0 保密通讯协议 --- 启用 --- 0 审计 --- 启用 --- 0 三权分立 --- 启用 --- 0 透明加密 --- 启用 --- 0 强制访问控制 --- 启用 --- 0 列加密 --- 启用 --- 0 密码复杂度 --- 启用 --- 0 用户锁定 --- 启用 --- 0 集群管理软件 --- 启用 --- 0 集群配置工具 --- 启用 --- 0 集群高级管理包 --- 启用 --- 0 并行查询 --- 启用 --- 0 并行备份还原 --- 启用 --- 0 异构数据源 --- 启用 --- 0 日志解析 --- 启用 --- 0 =============================================================================== Choose Install Folder --------------------- Please choose a destination folder for this installation. Where would you like to install? Default Install Folder: /opt/Kingbase/ES/V8 ENTER AN ABSOLUTE PATH, OR PRESS <ENTER> TO ACCEPT THE DEFAULT : /opt/Kingbase/ES/V8 INSTALL FOLDER IS: /opt/Kingbase/ES/V8 IS THIS CORRECT? (Y/N): y =============================================================================== Pre-Installation Summary ------------------------ Please Review the Following Before Continuing: Product Name: KingbaseES V8 Install Folder: /opt/Kingbase/ES/V8 Product Features: SERVER, DTS, INTERFACE, DEPLOY, KINGBASEHA, MANAGER Disk Space Information (for Installation Target): Required: 2,709.18 MegaBytes Available: 330,036.89 MegaBytes PRESS <ENTER> TO CONTINUE: =============================================================================== Ready To Install ---------------- InstallAnywhere is now ready to install KingbaseES V8 onto your system at the following location: /opt/Kingbase/ES/V8 PRESS <ENTER> TO INSTALL: =============================================================================== Please Wait ----------- =============================================================================== Installing... ------------- [==================|==================|==================|==================] [------------------|------------------|------------------|------------------] =============================================================================== Please Wait ----------- ...... =============================================================================== Please Wait ----------- =============================================================================== Choose a Folder for data directory ---------------------------------- Please choose a folder. The folder must be empty. Data folder (Default: /opt/Kingbase/ES/V8/data): =============================================================================== Port ---- Port (Default: 54321): 54323 =============================================================================== User ---- User: (Default: system): =============================================================================== Enter Password -------------- Please Enter the Password: Please Enter the Password:**** =============================================================================== Enter Password again -------------------- Please Enter the Password Again: Please Enter the Password Again:**** =============================================================================== Server-encoding --------------- Encoding ->1- UTF8 2- GBK 3- GB18030 ENTER THE NUMBER FOR YOUR CHOICE, OR PRESS <ENTER> TO ACCEPT THE DEFAULT: =============================================================================== Database_Mode ------------- DatabaseMode 1- PG ->2- ORACLE ENTER THE NUMBER FOR YOUR CHOICE, OR PRESS <ENTER> TO ACCEPT THE DEFAULT: 1 =============================================================================== case-insensitive ---------------- Case-Insensitive ->1- YES 2- NO ENTER THE NUMBER FOR YOUR CHOICE, OR PRESS <ENTER> TO ACCEPT THE DEFAULT: =============================================================================== block-size ---------- Block_size ->1- 8k 2- 16k 3- 32k ENTER THE NUMBER FOR YOUR CHOICE, OR PRESS <ENTER> TO ACCEPT THE DEFAULT: =============================================================================== Tips ---- The database will be initialized, which may take some time. Please be patient. PRESS <ENTER> TO CONTINUE: =============================================================================== Please Wait ----------- =============================================================================== Please Wait ----------- =============================================================================== Installation Complete --------------------- Congratulations. KingbaseES V8 has been successfully installed to: /opt/Kingbase/ES/V8 If you want to register KingbaseES V8 as OS service, please run /opt/Kingbase/ES/V8/install/script/root.sh PRESS <ENTER> TO EXIT THE INSTALLER: cat: .installer.log: No such file or directory Complete. [kingbase@lhrkingbase KingbaseESV8]$ exit logout [root@lhrkingbase KingbaseESV8]# [root@lhrkingbase KingbaseESV8]# [root@lhrkingbase KingbaseESV8]# [root@lhrkingbase KingbaseESV8]# /opt/Kingbase/ES/V8/install/script/root.sh Starting KingbaseES V8: waiting for server to start.... done server started KingbaseES V8 started successfully [root@lhrkingbase KingbaseESV8]# |
错误解决
docker内部挂载报错
1 2 | [root@lhrkingbase soft]# mount -o loop -t iso9660 /soft/KingbaseES_V008R006C005B0041_Lin64_install.iso /KingbaseESV8 mount: /soft/KingbaseES_V008R006C005B0041_Lin64_install.iso: failed to setup loop device: No such file or directory |
解决: