InterSystem cache安装配置

1, 内存,磁盘要求

操作系统 内存 安装目录磁盘大小
REHL7 2G 1.5 GB( 实际占用3G左右)

2, 自动化安装

查看本机的文档: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/
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
发布了276 篇原创文章 · 获赞 37 · 访问量 11万+

猜你喜欢

转载自blog.csdn.net/eyeofeagle/article/details/103406936