![]() You’ll be prompted for the admin credentials you set earlier ( Figure A). Open a web browser and point it to where SERVER is either the IP address or domain of the hosting server. Sudo ufw enable How to access the GlassFish web UIĮverything is ready. Since Ubuntu Server defaults to Uncomplicated Firewall, let’s open the required ports with: opt/glassfish6/bin/asadmin -port 4848 enable-secure-admin How to configure the firewall ![]() Once that’s taken care of, enable secure login with: When prompted to type the admin password, just hit Enter and then type and verify the new password. opt/glassfish6/bin/asadmin -port 4848 change-admin-password The default password is blank, so you’ll want to create one with the command: With GlassFish installed, we now must configure it with an admin password. Sudo systemctl enable -now glassfish How to configure GlassFish Start and enable the GlassFish service with: Sudo nano /usr/lib/systemd/system/rviceĮxecStart = /usr/bin/java -jar /opt/glassfish6/glassfish/lib/client/appserver-cli.jar start-domainĮxecStop = /usr/bin/java -jar /opt/glassfish6/glassfish/lib/client/appserver-cli.jar stop-domainĮxecReload = /usr/bin/java -jar /opt/glassfish6/glassfish/lib/client/appserver-cli.jar restart-domain We now need to create a systemd file so we can control the GlassFish service. Sudo mv glassfish6 /opt How to create a systemd file for GlassFish Move the newly-created folder into /opt with: Before doing this, make sure to check with the official GlassFish Download page to locate the latest version of the software. Next, we need to download and unpack GlassFish. Sudo apt-get install default-jdk default-jre -y How to download and unpack GlassFish ![]() When that completes, install the Java OpenJDK and Java Runtime Environment with: Sudo apt-get install software-properties-common apt-transport-https wget ca-certificates gnupg2 ubuntu-keyring unzip -y Oracle Linux checklist: What to do after installation This Linux learning path will help you start using the OS like a proītop is a much-improved take on the Linux top command Open-source repository SourceHut to remove all cryptocurrency-related projects Log in to your Ubuntu Server instance and issue the command: Open source: Must-read coverage The first thing we’ll do is install a few basic dependencies.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |