Personal tools
You are here: Home Software Development Issue Tracking YouTrack YouTrack v2017.1 on CentOS v7.x as a JAR install

YouTrack v2017.1 on CentOS v7.x as a JAR install

IMPORTANT: JetBrains YouTrack as a jar installation does not support external hub integration. This work is for reference only and has been abandoned.


Installation notes for install YouTrack on a VM as a JAR installation. The JAR installation was chosen as it seems to be the most lightweight option.

The VM is running CentOS v7.3, with OpenJDK. An Nginx proxy is used in front of the service to provide https access.



Install the latest OpenJDK:

# yum install java-1.8.0-openjdk-headless


Add an account for the youtrack service:

# adduser -c "YouTrack Issue Tracker" -m -d /srv/youtrack -r youtrack

As the 'youtrack' user (from the 'youtrack' home directory) download the distribution jar and create a symbolic link with a fixed name. When an upgrade is available, the link can be updated to perform an inplace upgrade.

$ wget
$ ln -s youtrack-2017.1.31650.jar youtrack.jar
$ mkdir data backup log tmp



Create a systemd service file '/lib/systemd/system/youtrack.service' to run the service as the youtrack user noting that the generalised form for running the jar is:

java -Xmx1g -XX:MaxMetaspaceSize=250m

   -Djava.awt.headless=true [JVM options]

    -jar youtrack-<version>.jar [host:]<port>[/contextPath] [config file path]


Description=JetBrains Youtrack

Environment="MEMORY_OPTS=-Xmx1g -XX:MaxMetaspaceSize=250m"
Environment=" -Djava.awt.headless=true -Djetbrains.youtrack.disableBrowser=true"
ExecStart=/usr/bin/java $MEMORY_OPTS $BASE_OPTS -jar /srv/youtrack/youtrack.jar $LISTEN_URL



Enable and start the service:

# systemctl enable youtrack
# systemctl start youtrack


Over and above standard firewall access (ssh, dns, http, local smtp); allow ingress for http for the main web interface (port 8080):

-A tcpIn -p tcp  -m tcp --source --dport 8080 -m conntrack --ctstate NEW -j ACCEPT

Note: If you are using the standard firewall then

# firewall-cmd --zone=public --permanent --add-port=8080/tcp
# firewall-cmd  --reload



Document Actions