Install jetty in Ubuntu 18.04 Server, non-apt version

The installation environment of this tutorial is
1、 Ubuntu18.04 Server system
2、 JDK1.8
It is mentioned here that in Ubuntu, it can be installed with sudo apt-get install jetty9. This installation package is linked to openjdk10. If there is no specific requirement, you can install and use it quickly.

The following are the installation steps:

1、 Create an installation directory

sudo mkdir /usr/jetty
sudo chown ceshi:ceshi /usr/jetty/

2、 Download jetty compressed package

wget https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-distribution/9.4.11.v20180605/jetty-distribution-9.4.11.v20180605.tar.gz

3、 Change directory name

mv jetty-distribution-9.4.11.v20180605 jetty-9.4.11

4、 Create service startup items

cp jetty-9.4.11/bin/jetty.sh /etc/init.d/jetty

5、 Configure basic jetty parameters

JAVA_HOME=/usr/java/jdk1.8.0_161
JETTY_HOME=/usr/jetty/jetty9
NO_START=0
JETTY_ARGS=jetty.port=8080
JETTY_HOST=0.0.0.0

6、 Start the test

sudo service jetty start

Start without exception, it means the configuration is successful, if there is a problem, execute sudo service jetty status
Another way to start is: java -jar ./start.jar

Recommended Posts

Install jetty in Ubuntu 18.04 Server, non-apt version
Install mysql-pytho in Ubuntu
Install python in Ubuntu
Install JDK in Ubuntu19.10
ubuntu install nginx server
How to install python in ubuntu server environment
ubuntu16.04 install caffe cpu version
How to install Helm in Ubuntu
Install Chef server workstation on Ubuntu 18.04
How to install mysql in Ubuntu 14.04
Install Percona Server database (in CentOS 8)
Install and configure Docker in Ubuntu
Install Ubuntu 18.04 server with kvm virtualization
How to install mysql in Ubuntu 14.04
Install TensorFlow (python2.7 version) on Ubuntu
Install Oracle 11gR2 on Ubuntu Server 12.4.0
Install the latest Python 3.6 version on Ubuntu
Install Gnome and VNC on Ubuntu Server
How to install Bacula Server on Ubuntu 14.04
About installing node environment in Ubuntu server
Ubuntu18.04 Server version installation and use (graphic)
How to install ROS Noetic in Ubuntu20.04
Install Ubuntu 18.04 in the virtual machine VMware
Ubuntu install ftp server and possible problems
How to install Zabbix on Ubuntu 16.04 Server
How to install Squid proxy server on Ubuntu 18.04
ubuntu18.04 install python2
ubuntu18.04 install docker
Install the CPU version of Caffe on Ubuntu
ubuntu12.04 install python3
Ubuntu install guide
Install the old version of seurat under Ubuntu
ubuntu 16 install asp.net
ubuntu install leanote
Install Python3 environment in a brand new Ubuntu
ubuntu install Jenkins
docker install ubuntu
ubuntu install elasticsearch
ubuntu16.0.1 install pagoda
ubuntu18.04 install python
ubuntu 18.04 install teamviewer
ubuntu install sendmail
How to install Hadoop in standalone mode on Ubuntu 18.04
Tutorial for setting up FTP server in Ubuntu 16.04 environment
Install and configure Mono production environment on Ubuntu Server
Ubuntu18.04 switch Python version
Install apache+PHP under Ubuntu
Nagios3 in ubuntu serve
Install Redis on Ubuntu
Install R4 on ubuntu20
Install nvtop on Ubuntu 18.04
Install postgresql-10 on Ubuntu 18.04
Install python3.6 under Ubuntu 16.04
Install php in centos
Ubuntu18.04 install opencv 3.2.0 solution
Install mysql under Ubuntu 16.04
Install Thrift under ubuntu 14.10
Install OpenJDK10 under Ubuntu
Install Caffe under Ubuntu 14.04
Ubuntu16.04 switch python version
Install Docker on ubuntu18.04