网站建设资讯

NEWS

网站建设资讯

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

1、安装必要的库

成都创新互联公司专注为客户提供全方位的互联网综合服务,包含不限于成都网站设计、做网站、丁青网络推广、微信小程序、丁青网络营销、丁青企业策划、丁青品牌公关、搜索引擎seo、人物专访、企业宣传片、企业代运营等,从售前售中售后,我们都将竭诚为您服务,您的肯定,是我们最大的嘉奖;成都创新互联公司为所有大学生创业者提供丁青建站搭建服务,24小时服务热线:028-86922220,官方网址:www.cdcxhl.com

# 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环境


标题名称:linux+mono+jexus搭建asp.net环境
路径分享:http://njwzjz.com/article/jposig.html