网站建设资讯

NEWS

网站建设资讯

linux+mono+jexus搭建asp.net环境-创新互联

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

另外有需要云服务器可以了解下创新互联scvps.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


网站标题:linux+mono+jexus搭建asp.net环境-创新互联
标题来源:http://cdweb.net/article/dgoceh.html