I tried it, so make a note
--JDK installed --Tomcat installed
Place the Activiti 6 WAR file on the server in advance.
# curl -LkvOf https://github.com/Activiti/Activiti/releases/download/activiti-6.0.0/activiti-6.0.0.zip
Create Activiti 6 Execution User
# useradd activiti
Create a directory for Activiti 6
# mkdir /opt/activiti
Place the Tomcat directory inside the created directory
# mv /root/apache-tomcat-8.5.56 /opt/activiti/tomcat
Remove the default deployed web apps from tomcat / webapps
# rm -rf /opt/activiti/tomcat/webapps/*
Place the Activiti 6 WAR file under tomcat / webapps
# cp /root/activiti-*.war /opt/activiti/tomcat/webapps/
Create a tomcat / bin / setenv.sh
file
# vi /opt/activiti/tomcat/bin/setenv.sh
CATALINA_PID=$CATALINA_HOME/activiti.pid
###The following is described for JDK 11
CATALINA_OPTS="--add-opens=java.base/java.lang=ALL-UNNAMED \
--add-opens=java.base/java.io=ALL-UNNAMED \
--add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED"
export CATALINA_OPTS
Change owner
# chown -R activiti: /opt/activiti
Create a service file
[Unit]
Description=Activiti Service
[Service]
Type=forking
User=activiti
PIDFile=/opt/activiti/tomcat/activiti.pid
ExecStart=/opt/activiti/tomcat/bin/startup.sh
ExecStop=/opt/activiti/tomcat/bin/shutdown.sh
[Install]
WantedBy=multi-user.target
Start
```sh
# systemctl daemon-reload && systemctl start actitivi
```
Recommended Posts