本实验在虚拟机下测试通过
虚拟机IP 192.168.199.146
安装好 CentOS 6.5 之后
1、更新系统
在命令行下执行
yum –y update
2、安装必要的软件
yum -y install gcc gcc-c++ bison pkgconfig glib2-devel gettext make libpng-devel libjpeg-devel libtiff-devel libexif-devel giflib-devel libX11-devel freetype-devel fontconfig-devel cairo-devel
3、安装Mono需要的GDI+兼容API的库Libgdiplus
这个地址下有最新的 Libgdiplus
Index of /sources/libgdiplus
当前可以下载到的最新版本3.8
cd /usr/local/src/ wget http://download.mono-project.com/sources/libgdiplus/libgdiplus-3.8.tar.gz tar zxvf libgdiplus-3.8.tar.gz cd libgdiplus-3.8 ./configure --prefix=/usr make make install
4、安装Mono (过程时间比较长,耐心等待)
在这个地址下有最新版本的 Mono Index of /sources/mono
当前可以下载到的最新版本3.10.0
cd /usr/local/src/ wget http://download.mono-project.com/sources/mono/mono-3.10.0.tar.bz2 tar -jxvf mono-3.10.0.tar.bz2 cd mono-3.10.0 ./configure --prefix=/usr make make install
上述命令执行完毕之后,输入 mono -V 如有mono版本信息,则安装成功。
如下:
[root@localhost ~]# mono -V Mono JIT compiler version 3.10.0 (tarball 2014年 12月 28日 星期日 02:47:02 CST) Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com TLS: __thread SIGSEGV: altstack Notifications: epoll Architecture: amd64 Disabled: none Misc: softdebug LLVM: supported, not enabled. GC: sgen
5、安装Jexus
在 Jexus 的官网下载最新版本5.6.3
官网:Jexus Web Server 官网
cd /usr/local/src/ wget http://www.linuxdot.net/down/jexus-5.6.3.tar.gz tar -zxvf jexus-5.6.3.tar.gz cd jexus-5.6.3 sudo ./install
6、启动 停止 重启 Jexus
启动:
sudo /usr/jexus/jws start
停止:
sudo /usr/jexus/jws stop
重启:
sudo /usr/jexus/jws restart
7、测试
首先配置防火墙开放80端口
/sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT /etc/rc.d/init.d/iptables save
打开浏览器访问
到此为止可以看到 Jexus 是可以正常运行的
详细的Jexus 使用说明后期整理
比如:
重启指定网站:
sudo /usr/jexus/jws restart siteName
停止指定网站:
sudo /usr/jexus/jws stop siteName