InterSystem cache安装配置
文章目录
1, 内存,磁盘要求
2, 自动化安装
3, 配置mirror,实现高可用
4, 手动启动journal服务
1, 内存,磁盘要求
操作系统 内存 安装目录磁盘大小
REHL7 2G 1.5 GB( 实际占用3G左右)
2, 自动化安装
iris安装
https://docs.intersystems.com/healthconnect20191/csp/docbook/Doc.View.cls?KEY=HXHCINST_install#HXHCINST_install_unattended_linuxunix
#默认root组为管理组: start/stop
sudo ISC_PACKAGE_INSTANCENAME="iris1" \
ISC_PACKAGE_INSTALLDIR="/opt/iris" \
ISC_PACKAGE_USER_PASSWORD="password" \
ISC_PACKAGE_INITIAL_SECURITY="Normal" \
./irisinstall_silent
cache安装
查看本机的文档:http://localhost:57772/csp/docbook/DocBook.UI.Page.cls?KEY=GCI_unix#GCI_unix_install_unattended_cli_config_packages
extr_dir=/iris/
install_dir=/home/iris/
##删除旧的安装文件
rm -rf /usr/local/etc/cachesys/ /usr/local/etc/irissys/
rm -rf /usr/bin/iris*
rm -rf $install_dir
useradd -rms /bin/bash iris
echo iris|passwd iris --stdin
chown -R iris: /iris
usermod -aG iris root
#HSAP-2018.1.1.312.0-hscore15.032-b9008-lnxrhx64.tar.gz
mkdir /$extr_dir/
tar -zxvf HSAP* -C /$extr_dir/
cd $extr_dir/HSAP*/
sudo ISC_PACKAGE_INSTANCENAME="iris2"\
ISC_PACKAGE_INSTALLDIR=$install_dir \
ISC_PACKAGE_UNICODE="Y"\
ISC_PACKAGE_INITIAL_SECURITY="Normal"\
ISC_PACKAGE_MGRUSER="iris" ISC_PACKAGE_MGRGROUP="iris"\
ISC_PACKAGE_USER_PASSWORD="iris" ISC_PACKAGE_CSPSYSTEM_PASSWORD="iris"\
ISC_PACKAGE_CACHEUSER="iris" ISC_PACKAGE_CACHEGROUP="iris"\
ISC_PACKAGE_STARTCACHE="Y"\
./cinstall_silent
============ 可执行文件路径 ============
[root@iris2 ~]# ls /usr/bin/c* -l |grep cachesys
lrwxrwxrwx. 1 root root 32 12月 5 01:19 /usr/bin/cache-> /usr/local/etc/cachesys/csession
lrwxrwxrwx. 1 root root 32 12月 5 01:19 /usr/bin/ccontrol-> /usr/local/etc/cachesys/ccontrol
lrwxrwxrwx. 1 root root 32 12月 5 01:19 /usr/bin/csession-> /usr/local/etc/cachesys/csession
============启动服务,设置服务开机启动 ============
[root@iris2 ~]# ccontrol all
Instance Name Version ID Port Directory
---------------- ---------------- ----- --------------------------------
up >HEALSHARE2 2018.1.1.312.0 1972 /opt/iris/
[root@iris2 ~]# ccontrol start healshare2
HEALSHARE2 is already up!
[root@iris2 ~]# /etc/init.d/ISCAgent start
[root@iris2 ~]# service ISCAgent status
application_server.interface_address=*
application_server.port=2188
daemonized=yes
mirroring=on
pid=9706
running=yes
version=2018.1.1.312.0
##开机启动
chkconfig ISCAgent on
chmod +x /etc/rc.d/rc.local
echo "ccontrol start iris">>/etc/rc.d/rc.local
============ 登录terminal ============
[root@iris2 ~]# csession healshare2
Node: iris2, Instance: HEALSHARE2
Username: iris
Password: ****
USER>
3, 配置mirror,实现高可用
注:三台服务器要配置hosts解析
角色 启动的服务 配置
iris1 启动实例 ,ISCAgent mirror启用–> create mirror -->edit mirror :1,配置 Arbiter(iris3的ip和端口); 2,启用虚拟ip(选一个没占用的ip)
iris2 启动实例,ISCAgent mirror启用–>Join as Failover
iris3 启动 ISCAgent
4, 手动启动journal服务
[root@c7-iris2 HealthConnect-2019.1.1.612.0-lnxrhx64]# irissession iris2
Node: c7-iris2, Instance: IRIS2
Username: _system
Password: ******
USER>zn "%SYS"
%SYS>Do ^JOURNAL
1) Begin Journaling (^JRNSTART)
2) Stop Journaling (^JRNSTOP)
3) Switch Journal File (^JRNSWTCH)
4) Restore Globals From Journal (^JRNRESTO)
5) Display Journal File (^JRNDUMP)
6) Purge Journal Files (PURGE^JOURNAL)
7) Edit Journal Properties (^JRNOPTS)
8) Activate or Deactivate Journal Encryption (ENCRYPT^JOURNAL())
9) Display Journal status (Status^JOURNAL)
10) -not available-
11) -not available-
12) Journal catch-up for mirrored databases (MirrorCatchup^JRNRESTO)
13) -not available-
————————————————
版权声明:本文为CSDN博主「根哥的博客」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/eyeofeagle/article/details/103406936
相关文章