IntroductionLe rôle WEB fournit les fonctionnalités suivantes à la plate-forme jtel. - Application de serveur web pour les agents, les superviseurs et les administrateurs
- API de service Web SOAP
WEB nécessite l'accès à MAGASIN, et aux DONNÉES. Le serveur Web est fourni par le serveur java wildfly et utilise le port 8080. L'équilibreur de charge (LB) est utilisé pour distribuer les sessions sur le (s) serveur (s) Web et pour déchiffrer https s'il est installé. Le rôle WEB s'exécute en interne derrière le rôle LB et n'utilise pas de chiffrement. PrérequisSTORE doit être monté avant d'installer ce rôle. Voir Mounting STORE - All Linux except for STORE (Debian/Win2019). InstallationLien symbolique pour le magasinComme l'accès au magasin se fait par des chemins UNC, ce chemin doit être créé et lié à l'emplacement de la monture du magasin : Translations Ignore |
---|
Code Block |
---|
mkdir /acd-store ln -s /home/jtel/shared /acd-store/shared |
|
Cela permettra au serveur web d'accéder à des chemins comme : //acd-store/partagé Installer Java Runtime Translations Ignore |
---|
Code Block |
---|
apt-get -y install default-jdk |
|
Installer WildflyLes commandes suivantes permettent d'installer et de configurer le serveur wildfly en tant que service systemd : Translations Ignore |
---|
Code Block |
---|
cd /home/jtel wget http://cdn.jtel.de/downloads/jboss/wildfly-18.0.1.Final.03.tar.gz tar xzf wildfly-18.0.1.Final.03.tar.gz rm -f wildfly-18.0.1.Final.03.tar.gz mkdir -p wildfly-18.0.1.Final/standalone/deployments chown -R jtel:jtel wildfly-18.0.1.Final ln -s /home/jtel/wildfly-18.0.1.Final wildfly-current cp /home/jtel/wildfly-current/systemd/wildfly.service /etc/systemd/system/wildfly.service systemctl daemon-reload cd /etc/cron.daily ln -s /home/jtel/wildfly-current/bin/jboss-logmaint.sh jboss-logmaint ln -s /home/jtel/wildfly-current/bin/jboss-restart.sh jboss-restart cd /usr/local/bin ln -s /home/jtel/wildfly-current/bin/updatejb.sh systemctl enable wildfly.service |
|
Les commandes suivantes permettent d'ouvrir les ports nécessaires dans le pare-feu : Translations Ignore |
---|
Code Block |
---|
ufw allow 5701:5801/tcp ufw allow 5455/tcp ufw allow 8080:8081/tcp ufw allow 4447/tcp ufw allow 5445/tcp ufw allow 20640/udp ufw allow 20642/udp ufw allow 20644/udp |
|
Ou pour une interface ethernet spécifique : Translations Ignore |
---|
Code Block |
---|
ufw allow in on eth1 to any port 5701:5801 proto tcp ufw allow in on eth1 to any port 5455 proto tcp ufw allow in on eth1 to any port 8080:8081 proto tcp ufw allow in on eth1 to any port 4447 proto tcp ufw allow in on eth1 to any port 5445 proto tcp ufw allow in on eth1 to any port 20640 proto udp ufw allow in on eth1 to any port 20642 proto udp ufw allow in on eth1 to any port 20644 proto udp |
|
Premier ServeurEnsuite, configurez le serveur de wildfly pour qu'il s'attache aux serveurs de base de données comme il convient. La 4e ligne de cette série de commandes doit être modifiée pour contenir le mot de passe de la base de données. Status |
---|
colour | Red |
---|
title | Mot de passe de précaution |
---|
|
Translations Ignore |
---|
Code Block |
---|
DBPRI=acd-dbm DBSTA=acd-dbs DBREP=acd-dbr DBPWD=<password> sed -i -e "s/DATA_PRIMARY/${DBPRI}/g" -e "s/DATA_STATS/${DBSTA}/g" -e "s/DATA_REPORTS/${DBREP}/g" -e "s/DB_PASSWORD/${DBPWD}/g" /home/jtel/wildfly-current/standalone/configuration/standalone.xml unset DBPWD unset DBREP unset DBSTA unset DBPRI cp /home/jtel/wildfly-current/standalone/configuration/standalone.xml /home/jtel/shared |
|
Autres serveursSi le fichier de configuration a déjà été fourni sur MAGASIN, les commandes suivantes le copieront sur le serveur de wildfly. Translations Ignore |
---|
Code Block |
---|
rm -f /home/jtel/wildfly-current/standalone/configuration/standalone.xml cp /home/jtel/shared/standalone.xml /home/jtel/wildfly-current/standalone/configuration/standalone.xml chown jtel:jtel /home/jtel/wildfly-current/standalone/configuration/standalone.xml |
|
Le fichier de configuration de hazelcast est maintenant copié : Translations Ignore |
---|
Code Block |
---|
rm -f /home/jtel/wildfly-current/standalone/configuration/hazelcast.xml cp /home/jtel/shared/hazelcast.xml /home/jtel/wildfly-current/standalone/configuration/hazelcast.xml chown jtel:jtel /home/jtel/wildfly-current/standalone/configuration/hazelcast.xml |
|
Démarrer WildflyDémarrez le serveur web comme suit : Il est possible de vérifier s'il fonctionne dans le fichier journal du serveur web : Translations Ignore |
---|
Code Block |
---|
less /home/jtel/wildfly-current/standalone/log/server.log |
|
Ou en se connectant au portail directement sur le port 8080 à l'aide d'un navigateur pointant sur l'URL suivante : Translations Ignore |
---|
Code Block |
---|
http://acd-jb1:8080/CarrierPortal/sysadmin/login |
|
La page de connexion doit apparaître, avec le logo. Image Added |