Run Artifactory as a service
Artifactory is packaged as an archive file with a bundled Tomcat, and a complete install script that you can use to install it as a service running under a custom user. This is currently supported on Linux and Solaris systems.
When running Artifactory as a service, the installation script creates a user called artifactory
, which must have run and execute permissions on the installation directory. We recommended that you extract the Artifactory download file into a directory that gives run and execute permissions to all users such as /opt
.
To install Artifactory as a service, browse to the $JFROG_HOME/artifactory/app/bin
directory and run installService.sh
.
The following optional parameters are available with installService.sh
.
USER
- The user that you want to run the application as. The default value isartifactory
.GROUP
- The group with which the application will run as. The default value isartifactory
.
$JFROG_HOME/artifactory/app/bin/installService.sh [USER] [GROUP]
Manage the service
Use systemd
or init.d
commands depending on your system.
Using systemd systemctl <start|stop|status> artifactory.service Using init.d service artifactory <start|stop|check>
Run Artifactory as a process
You can run Artifactory as a foreground or as daemon process. When running as a foreground process, the console is locked and you can stop the process at any time.
To run as a foreground process $JFROG_HOME/artifactory/app/bin/artifactoryctl To run as a daemon process $JFROG_HOME/artifactory/app/bin/artifactoryctl start To manage the process $JFROG_HOME/artifactory/app/bin/artifactoryctl check|stop