Liberty: differenze tra le versioni

Da GazziNet.
Vai alla navigazione Vai alla ricerca
(Creata pagina con "Consigliato usarlo solo per gestione Microservizi: Installazione versione con supporto IBM: <pra> βœ… 1. Installazione IBM Installation Manager & moduli (utente wlpadmin) Utente locale: wlpadmin IM agent: COM.IBM.CIC.AGENT_1.9.2005.20230718_1844 bash Copy Edit unzip /Liberty24/agent.installer.linux.gtk.x86_64_1.10.1000.20241118_1329.zip -d im/ im/userinstc -acceptLicense # Verifica /opt/IBM/IM/eclipse/tools/imcl version πŸ“¦ 2. Installazione WebSphere Liberty Modu...")
Β 
Nessun oggetto della modifica
Riga 11: Riga 11:
IM agent: COM.IBM.CIC.AGENT_1.9.2005.20230718_1844
IM agent: COM.IBM.CIC.AGENT_1.9.2005.20230718_1844


bash
Β 
Copy
Edit
unzip /Liberty24/agent.installer.linux.gtk.x86_64_1.10.1000.20241118_1329.zip -d im/
unzip /Liberty24/agent.installer.linux.gtk.x86_64_1.10.1000.20241118_1329.zip -d im/
im/userinstc -acceptLicense
im/userinstc -acceptLicense
Riga 23: Riga 21:
IBM JDK 8: COM.IBM.JAVA.JDK.V8_8.0.8010.20230721_1038
IBM JDK 8: COM.IBM.JAVA.JDK.V8_8.0.8010.20230721_1038


bash
Copy
Edit
/opt/IBM/IM/eclipse/tools/imcl install com.ibm.websphere.liberty.ND com.ibm.java.jdk.v8 \
/opt/IBM/IM/eclipse/tools/imcl install com.ibm.websphere.liberty.ND com.ibm.java.jdk.v8 \
-installationDirectory /opt/IBM/WebSphere/Liberty \
-installationDirectory /opt/IBM/WebSphere/Liberty \
Riga 36: Riga 31:
IBM JDK 8: stesso JDK sopra
IBM JDK 8: stesso JDK sopra


bash
Copy
Edit
/opt/IBM/IM/eclipse/tools/imcl install com.ibm.websphere.IHS.v90 com.ibm.java.jdk.v8 \
/opt/IBM/IM/eclipse/tools/imcl install com.ibm.websphere.IHS.v90 com.ibm.java.jdk.v8 \
-installationDirectory /opt/IBM/HTTPServer \
-installationDirectory /opt/IBM/HTTPServer \
Riga 47: Riga 39:
Modulo: COM.IBM.WEBSPHERE.PLG.V90_9.0.5017.20230818_1035
Modulo: COM.IBM.WEBSPHERE.PLG.V90_9.0.5017.20230818_1035


bash
Copy
Edit
/opt/IBM/IM/eclipse/tools/imcl install com.ibm.websphere.PLG.v90 com.ibm.java.jdk.v8 \
/opt/IBM/IM/eclipse/tools/imcl install com.ibm.websphere.PLG.v90 com.ibm.java.jdk.v8 \
-installationDirectory /opt/IBM/WebSphere/Plugins \
-installationDirectory /opt/IBM/WebSphere/Plugins \
Riga 58: Riga 47:
🟦 A. Servizio WebSphere Liberty
🟦 A. Servizio WebSphere Liberty
ini
ini
Copy
Β 
Edit
# /etc/systemd/system/liberty.service
# /etc/systemd/system/liberty.service
[Unit]
[Unit]
Riga 77: Riga 65:
Attiva e avvia:
Attiva e avvia:


bash
Copy
Edit
sudo systemctl daemon-reload
sudo systemctl daemon-reload
sudo systemctl enable liberty
sudo systemctl enable liberty
sudo systemctl start liberty
sudo systemctl start liberty
Durante l'avvio, server start crea un nuovo processo in background, ideale per Type=forking Β 
Durante l'avvio, server start crea un nuovo processo in background, ideale per Type=forking Β 
Jazz.net
+10
portal2portal.blogspot.com
+10
FreeKB
+10
TechDocs
+1
help.hcl-software.com
+1
Oracle Docs
.
.


🟨 B. Servizio IBM HTTP Server (IHS)
🟨 B. Servizio IBM HTTP Server (IHS)
ini
Copy
Edit
# /etc/systemd/system/ihs.service
# /etc/systemd/system/ihs.service
[Unit]
[Unit]
Riga 120: Riga 92:
Attiva e avvia:
Attiva e avvia:


bash
Β 
Copy
Edit
sudo systemctl daemon-reload
sudo systemctl daemon-reload
sudo systemctl enable ihs
sudo systemctl enable ihs
sudo systemctl start ihs
sudo systemctl start ihs
Approccio consigliato: usa un file PIDFile e Type=forking Β 
Approccio consigliato: usa un file PIDFile e Type=forking Β 
Jazz.net
+13
publib.boulder.ibm.com
+13
Stack Overflow
+13
help.hcl-software.com
+2
portal2portal.blogspot.com
+2
IBM
+2
.


βš™οΈ 6. Verifiche e gestione dei servizi
βš™οΈ 6. Verifiche e gestione dei servizi
bash
Copy
Edit
systemctl status liberty
systemctl status liberty
systemctl status ihs
systemctl status ihs
Riga 170: Riga 124:
Con questo setup, Liberty e IHS partono automaticamente all’avvio del sistema e offrono gestione pulita tramite systemctl.
Con questo setup, Liberty e IHS partono automaticamente all’avvio del sistema e offrono gestione pulita tramite systemctl.


Fammi sapere se vuoi uno script che automatizzi questi passaggi o se desideri personalizzare i servizi (es. dipendenze, ambientali, log).


</pra>
</pra>

Versione delle 08:51, 11 lug 2025

Consigliato usarlo solo per gestione Microservizi:

Installazione versione con supporto IBM:

<pra>


βœ… 1. Installazione IBM Installation Manager & moduli (utente wlpadmin) Utente locale: wlpadmin

IM agent: COM.IBM.CIC.AGENT_1.9.2005.20230718_1844


unzip /Liberty24/agent.installer.linux.gtk.x86_64_1.10.1000.20241118_1329.zip -d im/ im/userinstc -acceptLicense

  1. Verifica

/opt/IBM/IM/eclipse/tools/imcl version πŸ“¦ 2. Installazione WebSphere Liberty Modulo: COM.IBM.WEBSPHERE.LIBERTY.ND_23.0.9.20230904_1159

IBM JDK 8: COM.IBM.JAVA.JDK.V8_8.0.8010.20230721_1038

/opt/IBM/IM/eclipse/tools/imcl install com.ibm.websphere.liberty.ND com.ibm.java.jdk.v8 \ -installationDirectory /opt/IBM/WebSphere/Liberty \ -repositories /Liberty24/...liberty-ND...zip,/Liberty24/...jdk...zip \ -preferences com.ibm.cic.common.core.preferences.preserveDownloadedArtifacts=false \ -acceptLicense -showVerboseProgress 🌐 3. Installazione IBM HTTP Server (IHS) Modulo: COM.IBM.WEBSPHERE.IHS.V90_9.0.5017.20230818_1035

IBM JDK 8: stesso JDK sopra

/opt/IBM/IM/eclipse/tools/imcl install com.ibm.websphere.IHS.v90 com.ibm.java.jdk.v8 \ -installationDirectory /opt/IBM/HTTPServer \ -repositories /Liberty24/...IHS...zip,/Liberty24/...jdk...zip \ -preferences com.ibm.cic.common.core.preferences.preserveDownloadedArtifacts=false \ -acceptLicense -showVerboseProgress πŸ”Œ 4. Installazione Plugin WebSphere per IHS Modulo: COM.IBM.WEBSPHERE.PLG.V90_9.0.5017.20230818_1035

/opt/IBM/IM/eclipse/tools/imcl install com.ibm.websphere.PLG.v90 com.ibm.java.jdk.v8 \ -installationDirectory /opt/IBM/WebSphere/Plugins \ -repositories /Liberty24/...PLG...zip,/Liberty24/...jdk...zip \ -preferences com.ibm.cic.common.core.preferences.preserveDownloadedArtifacts=false \ -acceptLicense -showVerboseProgress πŸ” 5. Creazione dei servizi Linux con systemd 🟦 A. Servizio WebSphere Liberty ini

  1. /etc/systemd/system/liberty.service

[Unit] Description=WebSphere Liberty After=network.target

[Service] Type=forking User=wlpadmin ExecStart=/opt/IBM/WebSphere/Liberty/bin/server start defaultServer ExecStop=/opt/IBM/WebSphere/Liberty/bin/server stop defaultServer Restart=on-failure PrivateTmp=true

[Install] WantedBy=multi-user.target Attiva e avvia:

sudo systemctl daemon-reload sudo systemctl enable liberty sudo systemctl start liberty

Durante l'avvio, server start crea un nuovo processo in background, ideale per Type=forking .

🟨 B. Servizio IBM HTTP Server (IHS)

  1. /etc/systemd/system/ihs.service

[Unit] Description=IBM HTTP Server After=network.target

[Service] Type=forking User=wlpadmin PIDFile=/opt/IBM/HTTPServer/logs/httpd.pid ExecStart=/opt/IBM/HTTPServer/bin/apachectl -k start -f /opt/IBM/HTTPServer/conf/httpd.conf ExecStop=/opt/IBM/HTTPServer/bin/apachectl -k stop -f /opt/IBM/HTTPServer/conf/httpd.conf Restart=on-failure PrivateTmp=true LimitNOFILE=infinity

[Install] WantedBy=multi-user.target Attiva e avvia:


sudo systemctl daemon-reload sudo systemctl enable ihs sudo systemctl start ihs Approccio consigliato: usa un file PIDFile e Type=forking

βš™οΈ 6. Verifiche e gestione dei servizi systemctl status liberty systemctl status ihs Puoi gestirli con start, stop, restart, enable, disable.

πŸ“Œ Riepilogo finale Installazioni effettuate da wlpadmin:

IM Agent 1.9.2005

Liberty ND 23.0.9

IHS 9.0.5

Plugin IHS

IBM JDK 8 (versione 8.0.8010)

Servizi Linux definiti:

liberty.service

ihs.service

Con questo setup, Liberty e IHS partono automaticamente all’avvio del sistema e offrono gestione pulita tramite systemctl.


</pra>