systemctl stop firewalld systemctl disable firewalld systemctl status firewalld systemctl start avahi-daemon.socket setenforce 0 sed -i 's/enforcing/disabled/g' /etc/selinux/config
3、修改主機名
hostnamectl --static set-hostname iris2021
4、添加用戶和組
groupadd irisgp useradd -g irisgp iris
5、創建目錄
mkdir /irissoft mkdir /tmp/iriskit
mkeir /instancetest
chmod og+rx /tmp/iriskit
chown iris:irisgp /instancetest
6、上傳軟件到/irissoft目錄
[root@iris2021 irissoft]# ls -l total 789868 -rwxr-xr-x. 1 root root 808824440 Jul? 2 19:20
7、解壓軟件包
gunzip -c /irissoft/IRIS_Community-2021.1.0.215.0-lnxrhx64.tar.gz | ( cd /tmp/iriskit ; tar xf - )
8、重啟系統
reboot
三、軟件安裝
1、用root安裝軟件
[root@iris2021 irissoft]# cd /tmp/iriskit/ [root@iris2021 iriskit]# cd IRIS_Community-2021.1.0.215.0-lnxrhx64/ [root@iris2021 IRIS_Community-2021.1.0.215.0-lnxrhx64]# ./irisinstall ? Your system type is 'Red Hat Enterprise Linux (x64)'. ? Enter instance name <IRIS>: test ##實例名 ? Enter a destination directory for the new instance. Directory: /instancetest ? Select installation type. ??? 1) Development - Install InterSystems IRIS server and all language bindings ??? 2) Server only - Install InterSystems IRIS server ??? 3) Custom Setup type <1>? 1 選1 ? 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 選2 ? What user should be the owner of this instance? iris An InterSystems IRIS account will also be created for user iris. ? ? Install will create the following InterSystems IRIS accounts for you: _SYSTEM, Admin, SuperUser, iris and CSPSystem. Please enter the common password for _SYSTEM, Admin, SuperUser and iris: Re-enter the password to confirm it: iris ##密碼不顯示 ? ? Please enter the password for CSPSystem: iris ##密碼不顯示 Re-enter the password to confirm it: iris ##密碼不顯示 ? What group should be allowed to start and stop ? this instance? irisgp 組名稱 ? Do you want to install IRIS Unicode support <Yes>? yes ? InterSystems IRIS did not detect a license key file ? Do you want to enter a license key <No>? no ? Please review the installation options: ------------------------------------------------------------------ Instance name: test Destination directory: /instancetest InterSystems IRIS version to install: 2021.1.0.215.0com Installation type: Development Unicode support: Y Initial Security settings: Normal User who owns instance: iris Group allowed to start and stop instance: irisgp Effective group for InterSystems IRIS processes: irisusr Effective user for InterSystems IRIS SuperServer: irisusr SuperServer port: 1972 WebServer port: 52773 JDBC Gateway port: 53773 Web Gateway: using built-in web server Not installing IntegratedML ------------------------------------------------------------------ ? Confirm InterSystems IRIS installation <Yes>? yes ##開始安裝
以下為安裝輸出
Starting installation Starting up InterSystems IRIS for loading... ../bin/irisinstall -s . -B -c c -C /instancetest/iris.cpf*test -W 1 -g2 Starting Control Process Allocated 239MB shared memory: 32MB global buffers, 80MB routine buffers Creating a WIJ file to hold 32 megabytes of data IRIS startup successful. System locale setting is 'en_US.UTF-8' This copy of InterSystems IRIS has been licensed for use exclusively by: InterSystems IRIS Community Copyright (c) 1986-2021 by InterSystems Corporation Any other use is a violation of your license agreement ? ^^/instancetest/mgr/> ? ^^/instancetest/mgr/> Start of IRIS initialization Loading system routines Updating system TEMP and LOCALDATA databases Installing National Language support ? Setting IRISTEMP default collation to IRIS standard (5) Loading system classes Updating Security database Loading system source code Building system indices Updating Audit database Updating Journal directory Updating User database Updating Interoperability databases Scheduling inventory scan IRIS initialization complete ? See the iboot.log file for a record of the installation. ? Starting up InterSystems IRIS... Once this completes, users may access InterSystems IRIS Starting TEST Using 'iris.cpf' configuration file ? Starting Control Process Global buffer setting requires attention.? Auto-selected 25% of total memory. Allocated 683MB shared memory: 454MB global buffers, 80MB routine buffers Creating a WIJ file to hold 99 megabytes of data This copy of InterSystems IRIS has been licensed for use exclusively by: InterSystems IRIS Community Copyright (c) 1986-2021 by InterSystems Corporation Any other use is a violation of your license agreement ? ? You can point your browser to http://iris2021:52773/csp/sys/UtilHome.csp to access the management portal. ? Installation completed successfully
安裝完成
瀏覽器中輸入地址
http://iris2021:52773/csp/sys/UtilHome.csp
進入管理界面
基本操作
創建個表
插入一條數據
查詢表
導出表
導出成功
刪除表中數據
導入表中數據
導入成功
驗證數據
管理操作
關閉實例
[iris@iris2021 ~]$ irit test stop -bash: irit: command not found [iris@iris2021 ~]$ ir iris???????? irisdb?????? irissession? irqbalance?? [iris@iris2021 ~]$ ir iris???????? irisdb?????? irissession? irqbalance?? [iris@iris2021 ~]$ iris test stop iris: invalid function 'test' [iris@iris2021 ~]$ iris stop test ? ??????????? InterSystems IRIS Shutdown Status: 11:58 pm 02 Jul 2021 ? ?????? 0 interactive jobs (Telnet/Lat) ?????? 0 background jobs (from job command) ?????? 7 CSP server jobs ?????? 0 ODBC server jobs ????? 25 system jobs ? Do you want to broadcast a message to anyone? No => No Do you want to see the InterSystems IRIS status report? No => No Do you want to run the user defined shutdown routine? Yes => Yes Are you ready for the system to halt? Yes => Yes ? 23:58:26 Shutting down InterSystems IRIS 23:58:28 Notifying Clients 23:58:28 No user shutdown routines to execute 23:58:28 Stopping User Jobs 23:58:31 Stopping Network Servers 23:58:31 Withdrawing from License Domain 23:58:31 Waiting for users to stop 23:58:31 Stopping Client Networking 23:58:31 Removing database locks 23:58:31 Updating Journal File 23:58:32 Waiting for database updates to complete 23:58:32 Database updates complete 23:58:32 Stopping System Jobs 23:58:34 Shutdown complete
啟動實例
[iris@iris2021 ~]$ iris start test Starting TEST Using 'iris.cpf' configuration file ? Starting Control Process Global buffer setting requires attention.? Auto-selected 25% of total memory. Allocated 683MB shared memory: 454MB global buffers, 80MB routine buffers This copy of InterSystems IRIS has been licensed for use exclusively by: InterSystems IRIS Community Copyright (c) 1986-2021 by InterSystems Corporation Any other use is a violation of your license agreement