本实验在虚拟机下测试经过
虚拟机IP 192.168.199.146linux
安装好 CentOS 6.5 以后c++
一、更新系统浏览器
在命令行下执行tcp
yum –y update
二、安装必要的软件测试
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
三、安装Mono须要的GDI+兼容API的库Libgdiplus网站
这个地址下有最新的 Libgdiplus
http://download.mono-project.com/sources/libgdiplus/
当前能够下载到的最新版本3.8spa
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
四、安装Mono (过程时间比较长,耐心等待).net
在这个地址下有最新版本的 Mono http://download.mono-project.com/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版本信息,则安装成功。
以下:debug
[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
五、安装Jexus
在 Jexus 的官网下载最新版本5.6.3
官网:http://www.jexus.org/
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
六、启动 中止 重启 Jexus
启动:
sudo /usr/jexus/jws start
中止:
sudo /usr/jexus/jws stop
重启:
sudo /usr/jexus/jws restart
七、测试
首先配置防火墙开放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