本文使用的ubuntu为14.04 LTS
一、安装mono,本文使用源码安装的方式
1.搭架mono编译环境
sudo apt-get update
sudo apt-get install build-essential
sudo apt-get install automake autoconf
sudo apt-get install bison gettext libtool libglib2.0-dev libfreetype6-dev libfontconfig-dev
2.安装编译依赖的库文件
sudo apt-get install libgif-dev libtiff4-dev libpng12-dev libexif-dev libx11-dev libxft-dev sudo apt-get install libjpeg-dev(或libjpeg62-dev)
3.安装libgdiplus
下载源码
wget http://download.mono-project.com/sources/libgdiplus/libgdiplus-2.10.tar.bz2
解压
tar jvxf libgdiplus-2.10.tar.bz2
安装
cd libgdiplus-2.10
./configure --prefix=/usr
make
sudo make install
cd ..
4.安装mono
下载源码
wget http://download.mono-project.com/sources/mono/mono-3.0.12.tar.bz2
解压
tar jvxf mono-3.0.12.tar.bz2
编译安装
cd mono-3.0.12
./configure --prefix=/usr
make
sudo make install
直接包安装方式可以参照:http://www.mono-project.com/docs/getting-started/install/linux/#debian-ubuntu-and-derivatives
具体如下:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
echo "deb http://download.mono-project.com/repo/debian wheezy-apache24-compat main" | sudo tee -a /etc/apt/sources.list.d/mono-xamarin.list
sudo apt-get update
sudo apt-get install mono-complete
mono各package说明
mono-devel :编译代码必备的package
mono-complete :使用任何mono的功能必须安装此版本,否则很容易出现: “assembly not found” errors.
referenceassemblies-pcl : PCL compilation support - this will resolve most cases of “Framework not installed: .NETPortable” errors during software compilation.
ca-certificates-mono :get SSL certificates for HTTPS connections. Install this package if you run into trouble making HTTPS connections.
mono-xsp4 :运行asp.net程序需要安装
安装好后可以mono -v来查看下mono的版本,以验证安装是否正确
二、安装jexus
cd /tmp
wget linuxdot.net/down/jexus-5.8.2.tar.gz
tar -zxvf jexus-5.8.2.tar.gz
cd jexus-5.8.2
sudo ./install
三、布署
jexus安装后会被安装到/usr/jexus目录下
站点的配置文件装会被放在/usr/jexus/siteconf/目录下,里面已经有一个默认的站点配置文件default,配置 文件的详细说明见这里:https://www.linuxdot.net/bbsfile-3084
启动服务器:
cd /usr/jexus
sudo ./jws start