1、安裝必要的庫
專注于為中小企業(yè)提供網(wǎng)站制作、做網(wǎng)站服務,電腦端+手機端+微信端的三站合一,更高效的管理,為中小企業(yè)咸陽免費做網(wǎng)站提供優(yōu)質(zhì)的服務。我們立足成都,凝聚了一批互聯(lián)網(wǎng)行業(yè)人才,有力地推動了上千企業(yè)的穩(wěn)健成長,幫助中小企業(yè)通過網(wǎng)站建設實現(xiàn)規(guī)模擴充和轉(zhuǎn)變。# 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、測試
# mkdir /var/www/default
這個是jexus默認web根目錄,/usr/jexus/siteconf/default這個文件中定義。
# vim /var/www/default/index.aspx
<%="hello-mono in linux"%>
# /usr/jexus/jws restart
另外有需要云服務器可以了解下創(chuàng)新互聯(lián)scvps.cn,海內(nèi)外云服務器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務器、裸金屬服務器、高防服務器、香港服務器、美國服務器、虛擬主機、免備案服務器”等云主機租用服務以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務可用性高、性價比高”等特點與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應用場景需求。