confluence自启动

2022-06-14 19:45:01 浏览数 (2)

代码语言:javascript复制
[root@system-wiki ~]# cat /usr/lib/systemd/system/wiki.service 
[Unit]
Description=Wiki

[Service]
Type=simple
PIDFile=/usr/local/atlassian/confluence/work/catalina.pid
ExecStartPre=rm -rf /usr/local/atlassian/confluence/work/catalina.pid
ExecStart=/usr/local/atlassian/confluence/bin/startup.sh
ExecStop=/usr/local/atlassian/confluence/bin/shutdown.sh
PrivateTmp=true
Restart=always
User=confluence
Group=confluence
[Install]
WantedBy=multi-user.target

pid 设置文件:/usr/local/atlassian/confluence/bin/setenv.sh


标题:confluence自启动

作者:cuijianzhe

地址:https://cloud.tencent.com/developer/article/2022887

0 人点赞