适用CentOS7.6-CentOS8上安装Intersystem公司的Cache数据库,资料基本是空白,分享一下。
首先安装解压软件unzip和libicu,最小化安装的缺,全安装的不缺
yum install -y unzip
yum install -y libicu
然后关闭selinux,需要关闭一下防止安装失败
getenforce
然后关闭防火墙防止安装失败
systemctl stop firewalld
然后调整共享内存限制,安装时候用到了,太小影响安装
echo 134217728 > /proc/sys/kernel/shmmax
echo "kernel.shmmax = 134217728" >>/etc/sysctl.conf
tail -1 /etc/sysctl.conf
然后安装krb5-devel包,依赖项
yum install krb5-libs -y
yum install krb5-devel -y
最小安装操作系统缺东西,安装这个dll
dnf install libnsl -y
以上是一些环境依赖的部分安装,下面就把数据库安装包上传到CentOS解压安装
把cache-2016.2.3.907.11.20446-lnxrhx64.tar.gz安装包上传到CentOS的/里
上传成功后执行解压
cd /
tar -xvf cache-2016.2.3.907.11.20446-lnxrhx64.tar.gz
解压之后给文件夹权限后进入到解压文件夹
chmod og+rx /cache-2016.2.3.907.11.20446-lnxrhx64
cd /cache-2016.2.3.907.11.20446-lnxrhx64
给执行文件执行权限
chmod +x cinstall
执行cinstall
./cinstall
然后就按步骤选择安装选项
[zhanglianzhu@zlzlinux cache-2016.2.3.907.11.20446-lnxrhx64]$ sudo ./cinstall
Warning: The installer can't find a platform in this distribution
supported by your system.
Searching for platforms that might install in unsupported mode...
1) Red Hat Enterprise Linux (x64)
Enter the number for your system: cache
1) Red Hat Enterprise Linux (x64)
Enter the number for your system: 1
Your system type is 'Red Hat Enterprise Linux (x64)'.
Enter instance name: cache
Do you want to create Cache instance 'cache' <Yes>? yes
Enter a destination directory for the new instance.
Directory: /cachedata
Directory '/cachedata' does not exist.
Do you want to create it <Yes>? y
----------------------------------------------------
NOTE: Users should not attempt to access Cache while
the installation is in progress.
----------------------------------------------------
Select installation type.
1) Development - Install Cache server and all language bindings
2) Server only - Install Cache server
3) Custom
Setup type <1>? 1
Disk blocks required = 3492300
Disk blocks available = 77330440
How restrictive do you want the initial Security settings to be?
"Minimal" is the least restrictive, "Locked Down" is the most secure.
1) Minimal
2) Normal
3) Locked Down
Initial Security settings <1>? 1
What group should be allowed to start and stop
this instance? root
Do you want to install Cache Unicode support <No>? yes
Do you want to enter a license key <No>? no
Please review the installation options:
------------------------------------------------------------------
Instance name: cache1
Destination directory: /cachedata
Cache version to install: 2016.2.3.907.11.20446
Installation type: Development
Unicode support: Y
Initial Security settings: Minimal
User who owns instance: root
Group allowed to start and stop instance: root
Effective group for Cache processes: cacheusr
Effective user for Cache SuperServer: cacheusr
SuperServer port: 56773
WebServer port: 57773
JDBC Gateway port: 62973
CSP Gateway: using built-in web server
Client components: all
------------------------------------------------------------------
Do you want to proceed with the installation <Yes>?
最后按yes后就开始了安装。安装完成后在安装目录也有cpf这些,和windows一样,就能把windows的库文件也放到linux里面,cpf指向数据库文件,一样的玩。这里x86架构的数据库文件是通用的(不是windows和linux系统之间需要转换库文件),不同架构的才需要转换。
1.怎么启动数据库(cache是安装时候实例名称)
ccontrol start cache
2.怎么知道安装的库实例(用ccontrol list命令,还能看到每个实例运行情况)
[zhanglianzhu@zlzlinux /]$ ccontrol list
Configuration 'CACHE'
directory: /intersystem/cache
versionid: 2016.2.3.907.11.20446
conf file: cache.cpf (SuperServer port = 1972, WebServer = 57772)
status: running, since Tue Mar 1 20:04:55 2022
state: ok
[zhanglianzhu@zlzlinux /]$
3.怎么停止数据库(cache是安装时候实例名称)
ccontrol stop cache
4.怎么调试M(cache是安装时候实例名称)
cache
5.调试的terminal怎么退回到linux命令
h
IRIS相关操作 启动数据库:iris start IRISHEALTH 停止数据库:iris stop IRISHEALTH iris状态:iris list 进入terminal:iris session irishealth
以上就是我分享的linux上安装cache和基本操作数据库方面的经验,希望对linux感兴趣的有帮助 20220301 zlz
|