WebSphere

Da GazziNet.
Versione del 28 feb 2025 alle 11:11 di Admin (discussione | contributi) (Creata pagina con "== Guida all'Installazione di IBM WebSphere 9 con Server Primario e Secondario == === Prerequisiti === ==== Requisiti Hardware ==== * CPU: Minimo 2 vCPU per nodo * RAM: Almeno 8 GB di memoria per nodo * Storage: Minimo 50 GB disponibili per nodo * Rete: Connettività stabile tra i server primario e secondario ==== Requisiti Software ==== * Sistema operativo: '''Oracle Linux 8/9''' o '''Red Hat Enterprise Linux 8/9''' * Pacchetti richiesti: <code>glibc</code>, <code>li...")
(diff) ← Versione meno recente | Versione attuale (diff) | Versione più recente → (diff)
Vai alla navigazione Vai alla ricerca

Guida all'Installazione di IBM WebSphere 9 con Server Primario e Secondario

Prerequisiti

Requisiti Hardware

  • CPU: Minimo 2 vCPU per nodo
  • RAM: Almeno 8 GB di memoria per nodo
  • Storage: Minimo 50 GB disponibili per nodo
  • Rete: Connettività stabile tra i server primario e secondario

Requisiti Software

  • Sistema operativo: Oracle Linux 8/9 o Red Hat Enterprise Linux 8/9
  • Pacchetti richiesti: glibc, libstdc++, compat-libstdc++, unzip
  • Firewall configurato per consentire le porte necessarie (default: 9060, 9043, 9080, 9443)
  • Utente con privilegi di root

Installazione di IBM Installation Manager

Estrarre e installare Installation Manager

<syntaxhighlight lang="bash"> unzip agent.installer.linux.gtk.x86_64_1.10.1000.20241118_1329.zip -d /opt/IBM/InstallationManager cd /opt/IBM/InstallationManager ./install </syntaxhighlight>

Verifica l'installazione: <syntaxhighlight lang="bash"> /opt/IBM/InstallationManager/eclipse/tools/imcl listInstalledPackages </syntaxhighlight>

Installazione di WebSphere 9 ND

Estrarre i file di WebSphere

<syntaxhighlight lang="bash"> unzip was.repo.90501.nd.zip -d /opt/IBM/WebSphere/Repository </syntaxhighlight>

Installare WebSphere con Installation Manager

<syntaxhighlight lang="bash"> /opt/IBM/InstallationManager/eclipse/tools/imcl install com.ibm.websphere.ND.v90_9.0.5.1 \

 -repositories /opt/IBM/WebSphere/Repository \
 -installationDirectory /opt/IBM/WebSphere/AppServer \
 -sharedResourcesDirectory /opt/IBM/WebSphere/Shared \
 -acceptLicense

</syntaxhighlight>

Verifica l'installazione: <syntaxhighlight lang="bash"> /opt/IBM/WebSphere/AppServer/bin/versionInfo.sh </syntaxhighlight>

Installazione del Java SDK

Estrarre i file SDK

<syntaxhighlight lang="bash"> unzip sdk-8.0-5.35-all-prt1-installmgr.zip -d /opt/IBM/WebSphere/SDK unzip sdk-8.0-5.35-all-prt2-installmgr.zip -d /opt/IBM/WebSphere/SDK unzip sdk-8.0-5.35-all-prt3-installmgr.zip -d /opt/IBM/WebSphere/SDK </syntaxhighlight>

Installare il Java SDK

<syntaxhighlight lang="bash"> /opt/IBM/InstallationManager/eclipse/tools/imcl install com.ibm.java.jdk.v8 \

 -repositories /opt/IBM/WebSphere/SDK \
 -installationDirectory /opt/IBM/WebSphere/AppServer \
 -acceptLicense

</syntaxhighlight>

Creazione e Configurazione del Deployment Manager

Creare il profilo del Deployment Manager

<syntaxhighlight lang="bash"> /opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -create \

 -profileName Dmgr01 \
 -profilePath /opt/IBM/WebSphere/AppServer/profiles/Dmgr01 \
 -templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/management \
 -cellName PrimaryCell \
 -nodeName ManagerNode \
 -hostName dmgr.example.com

</syntaxhighlight>

Avvio del Deployment Manager

<syntaxhighlight lang="bash"> /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/bin/startManager.sh </syntaxhighlight>

Creazione e Configurazione dei Server Primario e Secondario

Creare il profilo del Server Primario

<syntaxhighlight lang="bash"> /opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -create \

 -profileName PrimaryServerProfile \
 -profilePath /opt/IBM/WebSphere/AppServer/profiles/PrimaryServer \
 -templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/default \
 -cellName PrimaryCell \
 -nodeName PrimaryNode \
 -hostName primary.example.com

</syntaxhighlight>

Avvia il server: <syntaxhighlight lang="bash"> /opt/IBM/WebSphere/AppServer/profiles/PrimaryServer/bin/startServer.sh server1 </syntaxhighlight>

Creare il profilo del Server Secondario

<syntaxhighlight lang="bash"> /opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -create \

 -profileName SecondaryServerProfile \
 -profilePath /opt/IBM/WebSphere/AppServer/profiles/SecondaryServer \
 -templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/default \
 -cellName PrimaryCell \
 -nodeName SecondaryNode \
 -hostName secondary.example.com

</syntaxhighlight>

Federare il nodo secondario

<syntaxhighlight lang="bash"> /opt/IBM/WebSphere/AppServer/bin/addNode.sh primary.example.com 8879 -username admin -password password </syntaxhighlight>

Verifica la federazione: <syntaxhighlight lang="bash"> /opt/IBM/WebSphere/AppServer/bin/wsadmin.sh -conntype SOAP -host primary.example.com -port 8879 -username admin -password password </syntaxhighlight>

Configurazione della Console di Amministrazione

Accedi alla console di amministrazione via browser: https://primary.example.com:9043/ibm/console Accedi con le credenziali amministrative.

Verifica dello Stato del Server

Per controllare lo stato di tutti i server: <syntaxhighlight lang="bash"> /opt/IBM/WebSphere/AppServer/bin/serverStatus.sh -all </syntaxhighlight>

Per riavviare il server primario: <syntaxhighlight lang="bash"> /opt/IBM/WebSphere/AppServer/bin/stopServer.sh server1 /opt/IBM/WebSphere/AppServer/bin/startServer.sh server1 </syntaxhighlight>

Conclusioni

Con questa guida, hai configurato con successo un ambiente WebSphere 9 con un server primario e un server secondario. Assicurati di eseguire periodici backup delle configurazioni e monitorare lo stato dei servizi per garantire un funzionamento ottimale.