How to Install Jexus Web Server 5.3 on Ubuntu 13.04

本文提供了一系列关于免费Linux Web服务器Jexus的指南,包括Jexus的基本介绍,如何安装其所需的Mono运行时,下载并解压Jexus服务器包,创建默认网站页面,以及将Jexus安装到指定位置并启动服务的详细步骤。

Jexus Series: How to Install Jexus Web Server 5.3 on Ubuntu 13.04

 
This is a series of posts regarding the free Linux web server called Jexus.

What is Jexus?
Jexus Web Server is a free web server for Linux (it is free, but not open source). It is powered by Mono and aims to provide best support for ASP.NET applications (while it also provides excellent PHP support out of the box).

Its homepage is at http://www.linuxdot.net/ (in Simplified Chinese).

Install Steps
1. Install Mono runtime
sudo apt-get install mono-complete

As Jexus requires Mono runtime, in this step we install latest stable Mono runtime (2.10.*) via apt-get. Mono 3.0.* is recommended if you know how to get it compiled and installed.

2. Download and unpack Jexus
wget http://www.linuxdot.net/down/jexus-5.3.tar.gz
tar -zxvf jexus-5.3.tar.gz

Jexus binary package is downloaded from its official site, and extracted to a folder named "jexus-5.3" after this step. The total size of the folder is only 404.1 kB.
Jexus Web Server binary package

3. Create default web site
sudo gedit /var/www/default/index.html
When gedit is opened, type in some text, such as "Hello World from Jexus". Save and close the file.

/var/www/default is the default web site path for Jexus. In this step we create a test page using gedit. You might use any other Linux text editor to create this test page.

4. Install and launch Jexus
sudo cp -Rp ./jexus-5.3 /usr/jexus
cd /usr/jexus
sudo chmod +x jws
sudo ./jws regsvr
sudo ./jws start

Here we put Jexus binary to /usr/jexus folder, grant the jws shell script file execution permission, and then use it to register Jexus modules in Mono GAC and launch the HTTP service. If you want to install Jexus to another location, please change the commands accordingly.

Now if we open Firefox and navigate to http://localhost, the test page we created is displayed correctly,

 
Jexus test page i Firefox


In the next post in this series, we will see how to upgrade from an older Jexus release to a new release. Stay tuned.

If you are interested in Jexus, but do not understand Chinese well, you can contact me directly via support@lextm.com. I know its developers and can help you communicate with them.

(Updated: Below is the alternative way in step 3 to create the test page using vi,)

    1. sudo vi /var/www/default/index.html
    2. Press i on keyboard to enter edit mode.
    3. Type "Hello World from Jexus" and press Esc on keyboard to exit edit mode.
    4. Type :wq and press Enter on keyboard to exit vi.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值