![]() ![]() In order to stop Jetty 9, we can use this command: $ sudo systemctl stop jetty9 We can restart Jetty 9 using: $ sudo systemctl restart jetty9 Start Jetty 9 service using this command: $ sudo systemctl start jetty9 Origin: Ubuntu Step 4: Managing the Jetty 9 ServiceĮnable the Jetty 9 at boot time using the following command: $ sudo systemctl enable jetty9 You might have a later version than the one shown here: Package: jetty9 To check and verify the installed Jetty version, run the following command: $ apt show jettyĪt which point you should see something like the following. Once the installation is complete, Jetty 9 will be automatically started. You can install it with the following command: $ sudo apt install jetty9 Jetty 9 is available in the pre-installed Ubuntu package repositories. $ sudo apt-get install oracle-java8-installer Step 3: Install Jetty 9 If however, you have a specific reason to use the Oracle JDK, this command will install Oracle JDK 8 using the PPA repository: $ sudo add-apt-repository ppa:webupd8team/java OpenJDK 64-Bit Server VM (build 25.212-b03, mixed mode) To check if everything is set correctly, run this next line: $ java -versionĪfter which you should see something like the following: openjdk version "1.8.0_212" You can install OpenJDK with the following command: $ sudo apt install openjdk-8-jdk We also included the Oracle JDK install further down below if necessary. They are functionally identical, so choosing either one will not affect how the program runs. We’ll use OpenJDK, as that’s what is readily available in the pre-installed Ubuntu package repositories. You can install Oracle JDK or OpenJDK depending on your choice. If there is no output, it means that Java is not installed on the server yet. Jetty 9 depends on the Java Development Kit (JDK). We can check if Java is already installed using this command: which java This helps maximize compatibility and security between packages and ensures that the install process will go smoothly. Once logged in, let’s make sure that your Ubuntu 18.04 server is up-to-date by running the following commands: $ apt-get update To connect to your server via SSH as the root user, use the following command: ssh IP_ADDRESS -p PORT_NUMBERĪnd replace “ IP_ADDRESS” and “ PORT_NUMBER” with your actual server IP address and SSH port number. Full SSH root access or a user with sudo privileges is also required.For the purposes of this tutorial, we will use an Ubuntu VPS (preferably a fresh installation of Ubuntu 18.04 LTS). ![]() ![]() Make sure that your server meets the following minimum requirements: Step 6: Create a Reverse Proxy in Apache.Step 5: Accessing the Jetty Installation. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |