Ubuntu 13.04 – Install Jetty 9

來源:互聯網
上載者:User

註:如果需要將jetty安裝,並作為服務啟動運行,請參考以下文章:

http://pietervogelaar.nl/ubuntu-12-04-install-jetty-9/

下面我主要介紹作為jetty作為綠色版本在ubuntu13.04上的安裝過程:

Java

請參考以下文章,安裝配置java。

Ubuntu 11.04 下安裝配置 JDK 7   

Download the latest
Jetty distribution (9.x).從下面的網站下載最新版本jetty,並解壓。http://download.eclipse.org/jetty/stable-9/dist/

Settings將jetty安裝目錄加入到環境變數中,例如:將下面語句加入.bashrc檔案末尾

運行以下命令使bashrc檔案生效

source  ~/.bashrc
Start /Stop在終端切換到jetty安裝目錄,通過jetty.sh 指令碼啟動或者關閉jetty。
snowdream@ubuntu:~/bin/jetty-9/bin$ cd ~/bin/jetty-9/bin/snowdream@ubuntu:~/bin/jetty-9/bin$ ./jetty.sh startStarting Jetty: 2013-08-07 11:08:21.134:WARN::main: test-realm is deployed. DO NOT USE IN PRODUCTION!2013-08-07 11:08:21.264:INFO::main: Redirecting stderr/stdout to /home/snowdream/bin/jetty-9/logs/2013_08_07.stderrout.log. OK Wed Aug  7 11:08:27 CST 2013snowdream@ubuntu:~/bin/jetty-9/bin$ ./jetty.sh stopStopping Jetty: OK
最後,有關jetty更多知識,請參考以下兩個網站:1、jetty官方網站:http://www.eclipse.org/jetty/2、jetty官方部落格:http://webtide.intalio.com/:

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.