How to install GlassFish (Jakarta EE platform application server) on ubuntu
Quickloss3
Update Server: apt update && apt upgrade -y
Create a System User: useradd -m -d /opt/glassfish6 -U -s /bin/false glassfish
Install Java: apt install default-jdk -y
Install GlassFish: cd /opt wget https://www.eclipse.org/downloads/download.php?file=/ee4j/glassfish/glassfish-6.2.5.zip -O glassfish6.zip unzip glassfish6.zip chown -R glassfish: /opt/glassfish6
Create Systemd File: nano /etc/systemd/system/glassfish.service paste [Unit] Description = GlassFish Server v6 After = syslog.target network.target
[Service] User=glassfish ExecStart=/opt/glassfish6/bin/asadmin start-domain ExecReload=/opt/glassfish6/bin/asadmin restart-domain ExecStop=/opt/glassfish6/bin/asadmin stop-domain Type = forking
[Install] WantedBy = multi-user.target
systemctl daemon-reload systemctl start glassfish
Access GlassFish: http://server_ip:8080
Configure GlassFish: http://server_ip:4848
/opt/glassfish6/bin/asadmin --port 4848 change-admin-password [enter] [enter] [new password] [retype password] /opt/glassfish6/bin/asadmin --port 4848 enable-secure-admin systemctl restart glassfish ... https://www.youtube.com/watch?v=gAPses4BBmQ
32934257 Bytes