Académique Documents
Professionnel Documents
Culture Documents
T / Installation - ABS
Dossier d’Architecture Technique / Installation
Préambule 3
Lexique 3
Plateformes Matérielles 5
Serveur applicatif 5
Ressources 5
Composants 5
Serveur base de données 5
Ressources 5
Composants 5
Installation logiciels 5
Serveur base de données 5
Installation PostgreSQL 5
Serveur applicatif 6
Installation Java 6
Installation environnement client 6
Installation Apache Tomcat 8.5 6
Installation Nginx 6
Installer Axelor Business Suite 6
PRÉAMBULE
Axelor est une suite d’applications métiers intégrées entièrement modulaire,
ergonomique et évolutive.
LEXIQUE
ERP : Progiciel de Gestion intégré
GED : Gestion électronique de document
PostgresSql: Système de Gestion de Base de Données Relationnelles (
SGBDR ) open source
Apache Tomcat, Apache Http server, Nginx : Serveur WEB open source
ADK : Framework de développement Axelor Development Kit
ARCHITECTURE TECHNIQUE GÉNÉRALE
Schéma architecture
Plateforme techniques
Environnement Serveur Outils Type Logiciel Version
Flux
De Vers Visibilité / Protocole Port
Client Serveur applicatif: Apache Internet / HTTPS 443
Serveur applicatif: Serveur applicatif: Tomcat Intranet / HTTP 8080
Apache
Serveur applicatif: Serveur BDD: PostgreSQL Intranet / TCP 5432
Tomcat
PLATEFORMES MATÉRIELLES
Il est conseillé de scinder l’installation de l’application en deux éléments distincts. Le
premier sera utilisé pour l’applicatif, le second pour la base de données.
Serveur applicatif
Ressources
Processeur : Min 2 cœurs
RAM : Min 4 Go
Disque dur : Min 10 Go
Composants
Ubuntu Serveur 14.04 LTS
Open JDK 8
Conteneur WEB Apache Tomcat
Serveur HTTP Apache 2 ou Nginx
INSTALLATION LOGICIELS
Serveur applicatif
Installation Java
sudo apt-get install openjdk-8-jre
ln -s /usr/lib/jvm/openjdk-8-jre /usr/lib/jvm/default-java
Installation environnement client
sudo adduser axelor
su axelor
cd
mkdir src
mkdir opt
Installation Nginx
sudo apt-get install nginx
cd /etc/nginx
vi sites-available/exemple.axelor.com
ln -s /etc/nginx/sites-available/exemple.axelor.com /etc/nginx/sites-enabled/ exemple.axelor.com
sudo service nginx restart
server {
listen 80;
server_name exemple.axelor.com X.X.X.X ;
server_tokens off;
server_tokens off;
ssl on;
ssl_certificate /etc/nginx/ssl/cert.crt;
ssl_certificate_key /etc/nginx/ssl/cert.key;
ssl_dhparam /etc/nginx/ssl/dhparam.pem;
location / {
proxy_pass http://127.0.0.1:8080/;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 10m;
client_body_buffer_size 128k;
proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_buffers 32 4k;
}
}
Exemple de fichier setenv.sh :
export CATALINA_PID="$CATALINA_BASE/tomcat.pid"
/home/axelor/opt/default-tomcat/logs/*.log
/home/axelor/opt/default-tomcat/logs/*.out {
notifempty
copytruncate
dateext
daily
rotate 10
compress
missingok
}
Exemple de fichier de configuration init.d axelor-tomcat :
#!/bin/sh
### BEGIN INIT INFO
# Provides: Apache tomcat 8
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 016
# Short-Description: Start deamon at boot time
# Description: Enable service provided by daemon.
### END INIT INFO
RUNNER=axelor
CMD_ROOT=/home/$RUNNER/opt/default-tomcat/bin
start()
{
echo "Start tomcat with PID $RUNNER"
su $RUNNER -c "$CMD_ROOT/startup.sh"
}
stop()
{
echo "Stop tomcat with PID $RUNNER"
su $RUNNER -c "$CMD_ROOT/shutdown.sh"
}
restart()
{
stop;
sleep 2;
start;
}
case $1 in
start)
start;;
stop)
stop;;
restart)
restart;;
*)
echo start|restart|stop
esac