码迷,mamicode.com
首页 > 其他好文 > 详细

jexus

时间:2015-08-01 23:24:23      阅读:150      评论:0      收藏:0      [点我收藏+]

标签:

   Jexus全称是"Jexus web server",它是一款基于.NET兼容环境,运行于Linux/unix操作系统上,以支持ASP.NET为核心功能和最大特色的,既强大又易用的WEB服务器。

 

在正式发布Jexus V4.3中,该版本除支持ASP.NET这个核心功能外,还具有如下重要功能:

 

u       URL重写

u       GZIP压缩

u       HTTPS安全传输

u       平台级的ASP.NET高速缓存

u       基础而关键的入侵检测

u       FLV/F4V视频文件播放拖动支持

u       微软平滑流媒体支持

u       反向代理

 

其中,HTTPS、F4V和平滑流媒体支持是本版新增功能。

 

环境部署

 

    在这一部分我们首先要进行环境部署,即安装monojexus以及mono-basic。

 

安装mono

 

[root@s2 ~]# wget http://ftp.novell.com/pub/mono/sources/mono/mono-2.10.2.tar.bz2

[root@s2 ~]# tar -zxvf mono-2.10.2.tar.bz2

[root@s2 ~]# cd mono-2.10.2

[root@s2 mono-2.10.2]# ./configure  --prefix=/usr

 

config.status: executing default commands

 

        mcs source:    mcs

        olive source: 

 

   Engine:

        GC:            sgen and bundled Boehm GC with typed GC and parallel mark

        GLIB:          embedded

        TLS:           __thread

        SIGALTSTACK:   yes

        Engine:        Building and using the JIT

        oprofile:      no

        BigArrays:     no

        DTrace:        no

        Parallel Mark: yes

        LLVM Back End: no (dynamically loaded: no)

 

    Libraries:

        Moon Profile:  no (boehm)

        MonoDroid:     no

        MonoTouch:     no

        JNI support:   IKVM Native

        libgdiplus:    assumed to be installed

        zlib:          system zlib

 

   

    记得在configure时添加“--prefix=/usr”选项。

 

[root@nas ~]# mono -V

Mono JIT compiler version 2.10.2 (tarball 2011年 10月 23日 星期日 18:17:17 CST)

Copyright (C) 2002-2011 Novell, Inc and Contributors. www.mono-project.com

        TLS:           __thread

        SIGSEGV:       altstack

        Notifications: epoll

        Architecture:  x86

        Disabled:      none

        Misc:          softdebug

        LLVM:          supported, not enabled.

        GC:            Included Boehm (with typed GC and Parallel Mark)

 

安装Jexus

 

[root@s2 ~]# wget http://linux.j66.net/down/jexus-4.3.2.tar.gz

[root@s2 ~]# tar -zxvf jexus-4.3.2.tar.gz

[root@s2 ~]# cd jexus-4.3.2

[root@s2 jexus-4.3.2]# mkdir /etc/jws

[root@s2 jexus-4.3.2]# mv * /etc/jws/

[root@s2 jexus-4.3.2]# cd /etc/jws/

[root@nas jws]# ./jws.regsvr

Installed jxAspx.dll into the gac (/usr/lib/mono/gac)

   

    在jexus的解压包中,包含了一个readme.txt文件,是中文的,应该首先看一下这个文件。

 

测试环境

 

    在安装了monoJexus之后,我们将进行环境和访问测试。

 

启动服务

 

[root@nas bin]# /usr/bin/mono /etc/jws/jws.exe

   

查看进程

 

[root@nas bin]# ps -ef|grep mono

root     26623 26503  1 13:36 pts/6    00:00:00 /usr/bin/mono /etc/jws/jws.exe

root     26627 26623  3 13:36 pts/6    00:00:02 /usr/bin/mono /etc/jws/jwsHttpd.exe

   

 

访问测试

 

   

 

在设置了默认主页以后,例如index.aspx,如果想访问信息页,则可以使用/infoURL来访问,例如:

 

   

 

 

根据需要,安装mono-basic(需要vbnc),Visual Basic编译器和Runtime。

 

[root@s2 ~]# http://download.mono-project.com/  \

> sources/mono-basic/mono-basic-2.10.tar.bz2

[root@s2 ~]# tar -jxvf mono-basic-2.10.tar.bz2

[root@s2 ~]# cd mono-basic-2.10

[root@s2 mono-basic-2.10]# ./configure --prefix=/usr

[root@s2 mono-basic-2.10]# make

[root@s2 mono-basic-2.10]# make install

   

下载一个环境测试文件

下载并解压这个文件到适当的目录——能够访问到的目录:

 

[root@s2 ~]# wget http://aspnetsysinfo.googlecode.com/  \

> files/aspnetsysinfo-revision_23.zip

[root@s2 ~]# unzip aspnetsysinfo-revision_23.zip

[root@s2 ~]#cp info.aspx  /var/www/default

   

另外,这个解压包的目录中提供了一个名字为LICENSE.zh_CN.txt的文件,是中文的,你不妨看看(看的跳楼了可别怨我!)

访问该文件:

这个文件产生的页面包含了大量的信息,仔细看看这些信息很有必要。
http://blog.itpub.net/27043155/viewspace-732478/


www.jexus.org

  • 第二步安装与更新

    A、安装: cd /tmp wget linuxdot.net/down/jexus-5.6.4.tar.gz  tar -zxvf jexus-5.6.4.tar.gz  cd jexus-5.6.4  sudo ./install  B、更新 cd /tmp sudo /usr/jexus/jws stop wget linuxdot.net/down/jexus-5.6.4.tar.gz tar -zxvf jexus-5.6.4.tar.gz cd jexus-5.6.4 sudo ./upgrade

    了解更多

  • 第三步运行网站

     

    配置站点
    使用WinSCP 访问服务器(大家不必拘泥,你也可以搭建一个FTP来进行上传)  打开/usr/jexus/siteconf  在里面有个默认的default文件一个站点对应一个配置文件(注意大小写)  配置文件详细说明 
    控制站点
    使用putty连接服务器 cd /usr/jexus  ./jws start 刚才你添加的配置文件

     

    了解更多

 

jexus

标签:

原文地址:http://www.cnblogs.com/softidea/p/4694823.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!