User Tools

Site Tools


neuroimagen:xnat_install

instalacion XNAT

https://wiki.xnat.org/documentation/getting-started-with-xnat/xnat-installation-guide

pretty straightforward. Excepto un par de cosillas. (ver abajo)

Prerequisistos

  1. JDK → ya instalado, OpenJDK
  2. Tomcat → yum install tomcat
  3. PostgreSQL → Necesita la version 9. He tenido que instalarlo en brick01

Tomcat

He tenido que modificar el puerto al 8088.

Cambios en /etc/tomcat/tomcat.conf

# What user should run tomcat
TOMCAT_USER="xnat"

# Connector port is 8080 for this tomcat instance
CONNECTOR_PORT="8088"

# If you wish to further customize your tomcat environment,
# put your own definitions here
# (i.e. LD_LIBRARY_PATH for some jdbc drivers)
CATALINA_OPTS="${CATALINA_OPTS} -Dxnat.home=/nas/data/xnat/home"

Cambios en /etc/tomcat/server.xml

    <Connector port="8088" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />

PostgreSQL

Postgre tiene que escuchar hacia afuera porque esta en otra maquina,

Cambios en /var/lib/pgsql/data/postgresql.conf

listen_addresses = '*'          # what IP address(es) to listen on;

Cambios en /var/lib/pgsql/data/pg_hba.conf

host    all             all             172.26.2.33/32          md5

XNAT config

# cat /nas/data/xnat/home/config/xnat-conf.properties 
#
# xnat-conf.properties
# XNAT http://www.xnat.org
# Copyright (c) 2016, Washington University School of Medicine
# All Rights Reserved
#
# Released under the Simplified BSD.
#
datasource.driver=org.postgresql.Driver
datasource.url=jdbc:postgresql://172.26.2.41/xnat
datasource.username=xnat
datasource.password=xnat

hibernate.dialect=org.hibernate.dialect.PostgreSQL9Dialect
hibernate.hbm2ddl.auto=update
hibernate.show_sql=false
hibernate.cache.use_second_level_cache=true
hibernate.cache.use_query_cache=true
neuroimagen/xnat_install.txt · Last modified: 2020/08/04 10:58 by 127.0.0.1