看到前面有很多安装 Caché数据库的文档 都是在 WINDOWS上安装的居多,本文主要是在LINUX上安装 。
1.下载Caché数据库安装介质
目前官网上只能下载IRIS版本,如果想下载以前的版本,可以通过他人网盘分享的进行
链接:https://pan.baidu.com/s/1gWYFDmBqduCszuARycOjCg
提取码:2vdj
2.安装ORACLE LINUX 7.9 操作系统
主要是CENTOS 7,2024年就终止服务了,所以建议下载其他操作系统,我这里推荐下载ORACLE LINUX,只是方便,没有其他。
可以直接到网站下载:https://yum.oracle.com/ISOS/Orac ... rver-x86_64-dvd.iso
3.安装操作系统,可以选择SERVER WITH GUI,默认的要求的包都有了,不需要单独再安装包 。
4.关闭防火墙
systemctl disable firewalld
systemctl stop firewalld
5.关闭selinux
vim /etc/selinux/config
SELINUX=disabled
6.安装krb5-devel包
yum install krb5-devel
7.创建一个Admin操作系统用户
# useradd Admin
8.上传CACHE数据库安装介质
rz cache-2016.2.0.736.0-lnxrhx64.tar.gz
9.解压
tar -xvf cache-2016.2.0.736.0-lnxrhx64.tar.gz
10.安装安装
cd cache-2016.2.0.736.0-lnxrhx64
# ./cinstall
Your system type is Red Hat Enterprise Linux (x64)
Enter instance name <CACHE>: cyyy --这里输入实例的名称,一般根据用途命名
Enter a destination directory for the new instance.
Directory: /tmp/cyyy --指定实例的安装目录
Directory '/tmp/cyyy' does not exist.
Do you want to create it <Yes>? --这个回车,自己会建立
Select installation type.
1) Development - Install Cache server and all language bindings
2) Server only - Install Cache server
3) Custom
Setup type <1>? 1 --选择第一项开发
Do you want to install Cache Unicode support <No>? YES --这里选择YES,支持UNICODE
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>? 2 选择正常,有用户密码登陆
what user should be the owner of this instance? Admin,--前面操作系统先建立的用户
Cache account will also be created for user Admin
Install will create the following Cache accounts for you:
_SYSTEM,Admin,SuperUser, Admin and CSPSystem.
Please enter the common password for SYSTEM,Admin,SuperUser and Admin :123456 --密码,根据情况确定
Re-enter the password to confirm it: 123456 --重复一次
Please enter the password for CsPSystem: 123456 --CSPSystem 预定义用户的密码,同上
Re-enter the password to confirm it: 1234556
What group should be allowed to start and stop
this instance? root --启停使用ROOT用户来完成
Do you want to enter a license key <No>? --直接回车
Please review the installation options: --评估你的安装选项
------------------------------------------------------------------
Instance name: cyyy
Destination directory: /tmp/cyyy
Cache version to install: 2016.2.0.736.0
Installation type: Development
Unicode support: Y
Initial Security settings: Normal
User who owns instance: Admin
Group allowed to start and stop instance: root
Effective group for Cache processes: cacheusr
Effective user for Cache SuperServer: cacheusr
SuperServer port: 1972
WebServer port: 57772
JDBC Gateway port: 62972
CSP Gateway: using built-in web server
Client components: all
--------------------------------------------------------------------
Do you want to proceed with the installation <Yes>? --没有问题回车继续
。。。
You can point your browser to http://cache-server:57772/csp/sys/UtilHome.csp
to access the management portal.
Installation completed successfully
安装完成
11.检查一下情况
ccontrol all
Instance Name Version ID Port Directory
---------------- ---------------- ----- --------------------------------
up >CYYY 2016.2.0.736.0 1972 /tmp/cyyy
[root@cache-server cache-2016.2.0.736.0-lnxrhx64]# ccontrol view
Instance 'CYYY' (default)
directory: /tmp/cyyy
versionid: 2016.2.0.736.0
conf file: cache.cpf (SuperServer port = 1972, WebServer = 57772)
status: running, since Tue Oct 10 16:09:40 2023
state: warn
12.启停数据库命令
# ccontrol stop cyyy
# ccontrol start cyyy
13.进入管理页面访问
http://192.168.133.241:57772/csp/sys/UtilHome.csp
|