出于实际原因,可能需要在 Linux 服务器重启后自动启动 IRIS 实例。
下面是在 Linux 服务器重启时通过 systemd 自动启动 IRIS 的步骤:
1. 在 /etc/systemd/system/iris.service 中创建一个 iris.service 文件,其中包含以下信息
[Unit]
Description=InterSystems IRIS Data Platform
After=network.target
[Service]
Type=forking
Useruser注意:User应该填入IRIS实例的所有者。
2. 重新加载 systemd 配置管理器
sudo systemctl daemon-reload3. 启用IRIS服务,使其自动启动
sudo systemctl 激活后将创建软链接,自动启动 IRIS:
4. 试着重启服务器
5. 查看IRIS实例是否自动启动


.png)

.png)
.jpg)