GNU/Linux >> Linux Esercitazione >  >> Ubuntu

Come installare Jetty Web Server su Ubuntu 14.04

In questo tutorial, ti mostreremo come installare e configurare Jetty Web Server su Ubuntu 14.04.  Per chi non lo sapesse, Jetty è un HTTP (Web ) server e contenitore Java Servlet. Jetty è ora spesso utilizzato per le comunicazioni da macchina a macchina, di solito all'interno di framework software più grandi. Jetty è sviluppato con una licenza open source, parte della fondazione Eclipse. Jetty è anche il server open source progetti come Lift, Eucalyptus, Red5, Hadoop e I2P. Jetty supporta la più recente API Servlet Java (con supporto JSP), nonché i protocolli SPDY e WebSocket.

Questo articolo presuppone che tu abbia almeno una conoscenza di base di Linux, sappia come usare la shell e, soprattutto, che ospiti il ​​tuo sito sul tuo VPS. L'installazione è abbastanza semplice. Lo farò mostrarti l'installazione passo passo di Jetty su Ubuntu 14.04.

Prerequisiti

  • Un server che esegue uno dei seguenti sistemi operativi:Ubuntu 14.04 e qualsiasi altra distribuzione basata su Debian come Linux Mint.
  • Si consiglia di utilizzare una nuova installazione del sistema operativo per prevenire potenziali problemi.
  • Accesso SSH al server (o semplicemente apri Terminal se sei su un desktop).
  • Un non-root sudo user o accedere all'root user . Ti consigliamo di agire come non-root sudo user , tuttavia, poiché puoi danneggiare il tuo sistema se non stai attento quando agisci come root.

Installa Jetty Web Server su Ubuntu 14.04

Passaggio 1. Prima di tutto, dobbiamo installare Java JDK.

sudo apt-get install openjdk-8-jdk

Passaggio 2. Scarica l'ultima versione di Jetty.

wget http://mirror.neu.edu.cn/eclipse/jetty/stable-9/dist/jetty-distribution-9.2.11.v20150529.tar.gz
tar zxvf jetty-distribution-9.2.11.v20150529.tar.gz -C /opt/

Rinomina il nome del file in jetty:

mv /opt/jetty-distribution-9.2.11.v20150529/ /opt/jetty

Passaggio 3. Crea un utente Jetty per eseguire un server web jetty all'avvio del sistema.

adduser -r -m jetty
chown -R jetty:jetty /opt/jetty/
cd /etc/init.d
ln -s /opt/jetty/bin/jetty.sh jetty
chkconfig --add jetty
chkconfig --level 345 jetty on

Passaggio 4. File di configurazione del molo.

Aggiungi le seguenti informazioni in /etc/default/jetty , sostituisci la porta e l'indirizzo di ascolto con il tuo valore:

$ nano /etc/default/jetty
 
JETTY_HOME=/opt/jetty
JETTY_USER=jetty
JETTY_PORT=8080
JETTY_HOST=192.168.1.05
JETTY_LOGS=/opt/jetty/logs/

Passaggio 5. Avvia il server web di Jetty.

Devi avviare il servizio del molo usando il seguente comando:

sudo service jetty start

Se tutto va bene, dovresti vedere la splash page standard di Jetty quando visiti il ​​seguente indirizzo nel tuo browser http://your-ip-address:8080

Congratulazioni! Hai installato con successo Jetty. Grazie per aver utilizzato questo tutorial per l'installazione del server Web Jetty su sistemi Ubuntu 14.04. Per ulteriore aiuto o informazioni utili, ti consigliamo di controllare il sito Web ufficiale di Jetty .


Ubuntu
  1. Come installare Nginx Web Server su Ubuntu 18.04

  2. Come installare MySQL su Ubuntu 18.04

  3. Come installare il server Minecraft su Ubuntu 18.04

  4. Come installare Nginx su Ubuntu 20.04

  5. Come installare Jetty su Ubuntu 18.04

Come installare Hiawatha Web Server su Ubuntu 16.04

Come installare il server Web Cherokee su Ubuntu 16.04 LTS

Come installare il server Web Express.js su Ubuntu 16.04 LTS

Come installare Nginx Web Server su Ubuntu 20.04

Come installare Apache Web Server su Ubuntu 20.04

Come installare il server Web Lighttpd su Ubuntu 18.04