linux+mono+jexus搭建asp.net环境

发布时间:2020-07-29 05:26:13 作者:huilinux
来源:网络 阅读:1465

1、安装必要的库

# yum 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 httpd httpd-devel

 

2、安装libgdiplus

# wget http://download.mono-project.com/sources/libgdiplus-1.1/libgdiplus-2.10.9.tar.bz2

# tar -jxvf libgdiplus-2.10.9.tar.bz2

# cd libgdiplus-2.10.9

# ./configure --prefix=/usr/local/mono

# make && make install

# echo  "/usr/local/mono/lib/" > /etc/ld.so.conf.d/mono.conf

# ldconfig

 

3、安装mono

# wget  http://download.mono-project.com/sources/mono/mono-3.4.0.tar.bz2

# tar -jxf mono-3.4.0.tar.bz2

# cd mono-3.4.0

# ./configure --prefix=/usr/local/mono/

# make && make install

# echo export PKG_CONFIG_PATH=/usr/local/mono/lib/pkgconfig:$PKG_CONFIG_PATH >> ~/.bash_profile

# echo export LD_LIBRARY_PATH=/usr/local/mono/lib:$LD_LIBRARY_PATH >> ~/.bash_profile

# echo export PATH=/usr/local/mono/bin:$PATH >> ~/.bash_profile

 

# source ~/.bash_profile

 

# mono -V         有版本信息,则安装成功。

 

 

4、安装jexus

# wget http://www.linuxdot.net/down/jexus-5.5.2.tar.gz

# tar -zxf jexus-5.5.2.tar.gz

# mv jexus-5.5.2 /usr/local/jexus

# cd /usr/local/jexus/

# ./install

Installed /usr/jexus/jxAspx2.dll into the gac (/usr/local/mono/lib/mono/gac)

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

Installed /usr/jexus/jxHost2.dll into the gac (/usr/local/mono/lib/mono/gac)

Installed /usr/jexus/jxHost.dll into the gac (/usr/local/mono/lib/mono/gac)

OK, Jexus web server has been installed to '/usr/jexus'.

 

# /usr/jexus/jws start

Starting ... OK

 

4、测试

linux+mono+jexus搭建asp.net环境

 

# mkdir /var/www/default

这个是jexus默认web根目录,/usr/jexus/siteconf/default这个文件中定义。

 

# vim /var/www/default/index.aspx

<%="hello-mono in linux"%>

 

# /usr/jexus/jws restart

linux+mono+jexus搭建asp.net环境


推荐阅读:
  1. 搭建 LAMP 环境
  2. linux+mono+xsp+apache搭建asp.net环境

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

linux mono jexus

上一篇:[C#]23种设计模式

下一篇:看了这10道JVM内存结构的面试题才知道自己对这个原来是不了解

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》