CentOS安装IRIS

最近电脑提搞了,可以无顾虑创建虚拟机了,试一下在Linux安装IRIS,适用CentOS7.6上安装Intersystem公司的IRIS数据库,资料基本是空白,分享一下。

首先安装解压软件unzip和libicu,最小化安装的缺,全安装的不缺

yum install -y unzip
yum install -y libicu

然后关闭selinux,需要关闭一下防止安装失败

getenforce

然后关闭防火墙防止安装失败

systemctl stop firewalld

然后调整共享内存限制,安装时候用到了,太小影响安装

echo 1342177280 > /proc/sys/kernel/shmmax
echo "kernel.shmmax = 1342177280" >>/etc/sysctl.conf
tail -1 /etc/sysctl.conf

然后安装krb5-devel包,依赖项

yum install krb5-libs -y
yum install krb5-devel -y

以上是一些环境依赖的部分安装,下面就把数据库安装包上传到CentOS解压安装

把IRISHealth-2021.1.2.338.0.21956-lnxrhx64.tar.gz安装包上传到CentOS的/lis里

上传成功后执行解压

cd /lis
tar -xvf IRISHealth-2021.1.2.338.0.21956-lnxrhx64.tar.gz

解压之后给文件夹权限后进入到解压文件夹

cd /lis/IRISHealth-2021.1.2.338.0.21956-lnxrhx64
ls

给执行文件执行权限

chmod +x irisinstall

执行irisinstall

./irisinstall

然后就按步骤选择安装选项


[root@localhost IRISHealth-2021.1.2.338.0.21956-lnxrhx64]# ./irisinstall

Your system type is 'Red Hat Enterprise Linux (x64)'.

Enter instance name <IRISHEALTH>: IRISHEALTH

Enter a destination directory for the new instance.
Directory: /intersystem
Directory '/intersystem' does not exist.
Do you want to create it <Yes>? y

Select installation type.
    1) Development - Install IRISHealth server and all language bindings
    2) Server only - Install IRISHealth server
    3) Custom
Setup type <1>? 1

How restrictive do you want the initial Security settings to be?
"Normal" is the least restrictive, "Locked Down" is the most secure.
    1) Normal
    2) Locked Down
Initial Security settings <1>? 1

What user should be the owner of this instance? root
An InterSystems IRIS account will also be created for user root.


Install will create the following IRISHealth accounts for you: 
_SYSTEM, Admin, SuperUser, root and CSPSystem. 
Please enter the common password for _SYSTEM, Admin, SuperUser and root: 
Re-enter the password to confirm it: 


Please enter the password for CSPSystem: 
Re-enter the password to confirm it: 

What group should be allowed to start and stop
  this instance? root

Do you want to install IRISHealth Unicode support <Yes>? y

IRISHealth did not detect a license key file

Do you want to enter a license key <No>? n

Please review the installation options:
------------------------------------------------------------------
Instance name: IRISHEALTH
Destination directory: /intersystem
IRISHealth version to install: 2021.1.2.338.0.21956
Installation type: Development
Unicode support: Y
Initial Security settings: Normal
User who owns instance: root
Group allowed to start and stop instance: root
Effective group for IRISHealth processes: irisusr
Effective user for IRISHealth SuperServer: irisusr
SuperServer port: 1972
WebServer port: 52773
JDBC Gateway port: 53773
Web Gateway: using built-in web server
Not installing IntegratedML
------------------------------------------------------------------

Confirm IRISHealth installation <Yes>? y

Starting installation
Starting up IRISHealth for loading...
../bin/irisinstall -s . -B -c c -C /intersystem/iris.cpf*IRISHEALTH -W 1 -g2 
Starting Control Process
Allocated 246MB shared memory: 32MB global buffers, 80MB routine buffers
Creating a WIJ file to hold 32 megabytes of data
IRIS startup successful.
System locale setting is 'zh_CN.UTF-8'
This copy of InterSystems IRIS has been licensed for use exclusively by:
Local license key file not found.
Copyright (c) 1986-2022 by InterSystems Corporation
Any other use is a violation of your license agreement

^^/intersystem/mgr/>

^^/intersystem/mgr/>
Start of IRIS initialization
Loading system routines
Updating system TEMP and LOCALDATA databases
Installing National Language support

Setting IRISTEMP default collation to IRIS standard (5)
Loading system classes
Updating Security database
Loading system source code
Building system indices
Updating Audit database
Updating Journal directory
Updating User database
Updating Interoperability databases
Loaded hsutil.xml successfully
Scheduling inventory scan
IRIS initialization complete

See the iboot.log file for a record of the installation.

Starting up IRISHealth...
Once this completes, users may access IRISHealth
Starting IRISHEALTH
Using 'iris.cpf' configuration file

Starting Control Process
Global buffer setting requires attention.  Auto-selected 25% of total memory.
Unable to allocate 1442 MB shared memory...
Allocated 1279MB shared memory: 828MB global buffers, 262MB routine buffers
Creating a WIJ file to hold 99 megabytes of data
This copy of InterSystems IRIS has been licensed for use exclusively by:
Local license key file not found.
Copyright (c) 1986-2022 by InterSystems Corporation
Any other use is a violation of your license agreement

2 alert(s) during startup. See messages.log for details.


You can point your browser to http://localhost.localdomain:52773/csp/sys/UtilHome.csp
to access the management portal.

Installation completed successfully

最后按yes后就开始了安装。安装完成后在安装目录也有cpf这些,和windows一样,就能把windows的库文件也放到linux里面,cpf指向数据库文件,一样的玩。这里x86架构的数据库文件是通用的(不是windows和linux系统之间需要转换库文件),不同架构的才需要转换。

转码数据库文件,Windows用cmd运行安装目录/bin/cvendian.exe 执行要转码的数据库文件即可

//数据库文件转码,涉及到不同CPU架构时候拷数据库文件执行
//别误解,转码不是Linux到Windows系统导致的,是CPU指令集导致的
//启库会报/dthealth/db/dthis/liscodes/ because it's created by different endian system
/intersystem/cache/bin/cvendian /dthealth/db/dthis/liscodes/CACHE.DAT
/intersystem/cache/bin/cvendian /dthealth/db/dthis/lissrc/CACHE.DAT

1.怎么启动数据库(IRISHEALTH是安装时候实例名称)

iris start IRISHEALTH

2.怎么知道安装的库实例(用iris list命令,还能看到每个实例运行情况)

[root@localhost IRISHealth-2021.1.2.338.0.21956-lnxrhx64]# iris list

Configuration 'IRISHEALTH'   (default)
	directory:    /intersystem
	versionid:    2021.1.2.338.0.21956
	datadir:      /intersystem
	conf file:    iris.cpf  (SuperServer port = 1972, WebServer = 52773)
	status:       down, last used Sat Jun 10 10:47:43 2023
	product:      InterSystems IRISHealth
[root@localhost IRISHealth-2021.1.2.338.0.21956-lnxrhx64]# 

3.怎么停止数据库(IRISHEALTH是安装时候实例名称)

iris stop IRISHEALTH

4.怎么调试M(cache是安装时候实例名称)

iris session IRISHEALTH

5.调试的terminal怎么退回到linux命令

h

IRIS相关操作
启动数据库:iris start IRISHEALTH
停止数据库:iris stop IRISHEALTH
iris状态:iris list
进入terminal:iris session irishealth

以上就是我分享的linux上安装iris和基本操作数据库方面的经验,希望对linux感兴趣的有帮助

安装cache参照:
cache安装参照

20230610 zlz

你可能感兴趣的:(Caché,centos,linux,运维)