WebSphere

Da GazziNet.
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
 dnf install glibc -y
 dnf install libstdc++ -y (Attenzione su Oracle linux usare: sudo dnf install -y oracle-database-preinstall-19c)
 dnf install unzip -y
 dnf install xauth -y

 dnf install -y gtk3 gtk2 libXtst libXrender libX11 \
    libXScrnSaver libxcb libXau libXdmcp alsa-lib \
    mesa-libGL mesa-libEGL fontconfig xorg-x11-fonts-Type1


 reboot

Installazione di IBM Installation Manager

Estrarre e installare Installation Manager

mkdir -p /opt/IBM/InstallationManager
mkdir -p /opt/IBM/WebSphere/Repository


unzip agent.installer.linux.gtk.x86_64_1.10.1000.20241118_1329.zip -d /opt/IBM/InstallationManager
cd /opt/IBM/InstallationManager
./install

Verifica l'installazione:

/opt/IBM/InstallationManager/eclipse/tools/imcl listInstalledPackages

Esempio di output: "com.ibm.cic.agent_1.10.1000.20241118_1329"

Installazione del Java SDK

Estrarre i file SDK

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

Installare il Java SDK

/opt/IBM/InstallationManager/eclipse/tools/imcl install com.ibm.java.jdk.v8 \
  -repositories /opt/IBM/WebSphere/SDK \
  -installationDirectory /opt/IBM/WebSphere/AppServer \
  -acceptLicense

Installazione di WebSphere 9 ND

Estrarre i file di WebSphere

unzip was.repo.90501.nd.zip -d /opt/IBM/WebSphere/Repository

Installare WebSphere con Installation Manager

/opt/IBM/InstallationManager/eclipse/tools/imcl install com.ibm.websphere.ND.v90 \
  -repositories /opt/IBM/WebSphere/Repository \
  -installationDirectory /opt/IBM/WebSphere/AppServer \
  -sharedResourcesDirectory /opt/IBM/WebSphere/Shared \
  -acceptLicense

Verifica l'installazione:

/opt/IBM/WebSphere/AppServer/bin/versionInfo.sh

Creazione e Configurazione del Deployment Manager

Creare il profilo del Deployment Manager

/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

Avvio del Deployment Manager

/opt/IBM/WebSphere/AppServer/profiles/Dmgr01/bin/startManager.sh

Creazione e Configurazione dei Server Primario e Secondario

Creare il profilo del Server Primario

/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

Avvia il server:

/opt/IBM/WebSphere/AppServer/profiles/PrimaryServer/bin/startServer.sh server1

Creare il profilo del Server Secondario

/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

Federare il nodo secondario

/opt/IBM/WebSphere/AppServer/bin/addNode.sh primary.example.com 8879 -username admin -password password

Verifica la federazione:

/opt/IBM/WebSphere/AppServer/bin/wsadmin.sh -conntype SOAP -host primary.example.com -port 8879 -username admin -password password

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:

/opt/IBM/WebSphere/AppServer/bin/serverStatus.sh -all

Per riavviare il server primario:

/opt/IBM/WebSphere/AppServer/bin/stopServer.sh server1
/opt/IBM/WebSphere/AppServer/bin/startServer.sh server1

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.