Sv translation | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||
Mount the ShareThe system must have access to the share on acd-store. Checkout JREST RepositoryOn acd-store execute the following commands to checkout the repository:
Installation - on Linux ServerTo install the REST role on a Linux server, proceed as follows on the acd-rest server. Java 12Install java 12 as follows:
jrestInstall jrest as follows:
ConfigurationEdit the configuration file /home/jtel/jrest/config/jtel-jrest.xml and check database access passwords and hosts etc. are correct. Note: the serverID must be unique on each connector:
Edit the startup file /home/jtel/jrest/systemd/jrest and check the java directory is correct (the correct java version). Edit the logging configuration file /home/jtel/jrest/config/log4j2.xml and make sure it points to the required logging directory. FirewallOpen the firewall port 8091 as follows:
Start ServiceStart the service.
Installation - on Windows ServerTo install the REST role on the windows server, proceed as follows. Java 12Download java 12 from here: https://cdn.jtel.de/downloads/java/openjdk-12.0.2_windows-x64_bin.zip Unpack this to the following directory:
This should result in the following directory structure being created:
Copy Files and InstallOn the windows server, execute the following commands in a non-elevated command prompt:
ConfigurationEdit the configuration file, and make sure the database access (username and password) is correct:
ShortcutCreate a shortcut for start-jrest.cmd and put this into shell:startup Configure Load-BalancerIt is best to send the requests for the REST API to the load balancer. To make this possible, the following needs to be added to the load balancer configuration. Frontend http / httpsDepending on the protocol used, either http or https may be configured. In the relevant front-end the following should be added:
Reload Load-BalancerReload the load balancer:
Configure Windows FirewallIn an elevated command prompt on the windows server:
Start REST ServerStart the rest server on the windows machine with the shortcut. |
Sv translation | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||
Monter le ShareLe système doit avoir accès au share dans acd-store. Consulter le dépôt JRESTDans acd-store exécutez les commandes suivantes pour extraire le dépôt :
Installation - sur un serveur LinuxPour installer le rôle REST sur un serveur Linux, procédez comme suit sur le serveur acd-rest . Java 12Installez java 12 comme suit :
jrestInstallez jrest comme suit :
ConfigurationModifiez le fichier de configuration /home/jtel/jrest/config/jtel-jrest.xml et vérifiez que les mots de passe d'accès à la base de données et les hôtes, etc. sont corrects. Note : le serverID doit être unique sur chaque connecteur :
Modifiez le fichier de démarrage /etc/init.d/jrest et vérifiez que le répertoire java est correct (la bonne version java). Modifier le fichier de configuration de l'enregistrement /home/jtel/jrest/config/log4j2.xml et assurez-vous qu'il pointe vers le répertoire d'enregistrement requis. Pare-feuOuvrez le port 8091 du pare-feu comme suit :
Démarrer le serviceDémarrez le service.
Installation - sur Windows ServerPour installer le rôle REST sur le serveur Windows, procédez comme suit. Java 12Télécharger java 12 ici: https://cdn.jtel.de/downloads/java/openjdk-12.0.2_windows-x64_bin.zip Décompressez le tout dans le répertoire suivant :
Cela devrait aboutir à la création de la structure de répertoire suivante :
Copier les fichiers and InstallerSur le serveur Windows, exécutez les commandes suivantes dans une invite de commande non levée :
ConfigurationEdit the configuration file, and make sure the database access (username and password) est correcte :
RaccourciCréer un raccourci pour start-jrest.cmd et mettre cela dans shell:startup Configurer l'équilibreur de chargeIl est préférable d'envoyer les demandes de l'API REST à l'équilibreur de charge. Pour cela, il faut ajouter les éléments suivants à la configuration de l'équilibreur de charge. Frontend http / httpsSelon le protocole utilisé, il est possible de configurer soit http soit https. Dans le front-end correspondant, il convient d'ajouter ce qui suit :
Recharger l'équilibreur de chargeRechargez l'équilibreur de charge :
Configurer le pare-feu WindowsDans une invite de commande élevée sur le serveur Windows :
Démarrer le serveur RESTDémarrez le serveur de repos sur la machine Windows avec le raccourci. |