CentOS安装Cache数据库

44 篇文章 12 订阅

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

  • 2
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 12
    评论
你可以参考以下步骤来安装 Redmine: 1. 首先,确保你已经安装CentOS 操作系统。 2. 安装必要的软件包: ``` sudo yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison iconv-devel sqlite-devel ``` 3. 安装 Ruby: ``` cd /usr/local/src sudo wget https://cache.ruby-lang.org/pub/ruby/2.6/ruby-2.6.3.tar.gz sudo tar zxvf ruby-2.6.3.tar.gz cd ruby-2.6.3 sudo ./configure --disable-install-doc sudo make sudo make install ``` 4. 安装 Redmine: ``` cd /usr/local/src sudo wget https://www.redmine.org/releases/redmine-4.1.1.tar.gz sudo tar zxvf redmine-4.1.1.tar.gz sudo mv redmine-4.1.1 /var/www/redmine cd /var/www/redmine sudo gem install bundler sudo bundle install --without development test ``` 5. 配置数据库: ``` sudo yum install -y mariadb-server mariadb-devel sudo systemctl start mariadb sudo systemctl enable mariadb sudo mysql_secure_installation sudo mysql -u root -p CREATE DATABASE redmine CHARACTER SET utf8mb4; CREATE USER 'redmine'@'localhost' IDENTIFIED BY 'password'; GRANT ALL PRIVILEGES ON redmine.* TO 'redmine'@'localhost'; FLUSH PRIVILEGES; exit ``` 6. 配置 Redmine: ``` cd /var/www/redmine sudo cp config/configuration.yml.example config/configuration.yml sudo vi config/configuration.yml 修改数据库配置: production: adapter: mysql2 database: redmine host: localhost username: redmine password: "password" encoding: utf8mb4 sudo cp config/database.yml.example config/database.yml sudo vi config/database.yml 修改数据库配置: production: adapter: mysql2 database: redmine host: localhost username: redmine password: "password" encoding: utf8mb4 sudo bundle exec rake generate_secret_token sudo RAILS_ENV=production bundle exec rake db:migrate sudo RAILS_ENV=production REDMINE_LANG=zh bundle exec rake redmine:load_default_data sudo chown -R apache:apache files log tmp public/plugin_assets sudo chmod -R 755 files log tmp public/plugin_assets ``` 7. 配置 Apache: ``` sudo yum install -y httpd sudo systemctl start httpd sudo systemctl enable httpd sudo vi /etc/httpd/conf.d/redmine.conf 添加以下内容: <VirtualHost *:80> ServerName redmine.example.com DocumentRoot /var/www/redmine/public <Directory /var/www/redmine/public> AllowOverride all Require all granted </Directory> </VirtualHost> sudo systemctl restart httpd ``` 8. 访问 Redmine: 在浏览器输入 http://redmine.example.com,即可访问 Redmine。 希望这些步骤能够帮助你成功安装 Redmine。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 12
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

小乌鱼

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值