ASP. NET cross-platform: ubuntu14.0+mono+jexus+asp.net

Source: Internet
Author: User

ASP. NET cross-platform articles there are many in the garden, here to build their own situation to do a summary, easy to see later.

Reference website:

http://www.linuxdot.net/(Linux dotnet Base)

Http://www.cnblogs.com/shanyou/p/4677569.html (Zhang Shanyu)

Http://www.cnblogs.com/haoxilu/p/3813907.html

First, the system installation

Use VMware +ubuntu14.04 64-bit systems. There's nothing to say about this.

Second, the Environment configuration

1, update the current system

sudo apt-get update

sudo apt-get upgrade

2. Build the compilation environment

sudo apt-get install Bison libglib2.0-dev
sudo apt-get install Libgif-dev libtiff4-dev libpng12-dev libexif-dev libx11-dev libxft-dev Libjpeg-dev

3, Installation Libgdiplus

wget http://download.mono-project.com/sources/libgdiplus/libgdiplus-2.10.tar.bz2

Tar jvxf libgdiplus-2.10.tar.bz2

CD libgdiplus-2.10

./configure--PREFIX=/USR
Make
sudo make install
Cd.. (Return to previous directory)

Note: An error was encountered while compiling make, as follows:

 gdiplus-private.h:33:31:fatal error:freetype/tttables.h:no such file or Directory  #  include <freetype/ Tttables.h>   ^compilation terminated.make[ 2]: [Adjustablearrowcap.lo] Error 1make[ 2]: Leaving directory '/root/ Libgdiplus-2.10/src ' make[ 1]: * * * [all-recursive] Error 1make[ 1]: Leaving directory '/root/libgdiplus-2.10 ' Make:  * * * * [ALL] Error 2root  @ubuntu: ~/libgdiplus-2.10#   sudo ln-s/usr/x11/include/freetype2/freetype//usr/x11/include/freetype  ln:failed to create symbolic link '/us R/x11/include/freetype ': No such file or directory 

Workaround reference Link: http://www.cnblogs.com/24la/p/libgdiplus-install-error-record.html (try again later)

Tried a few times, I still compile not the past. may be character problem bar, no way, first contact with Ubuntu, a lot of mengmengdongdong.

Then Google searched for a link on GitHub : https://github.com/cjy37/ Linux-asp.net-installscript, there are scripting commands installed on the Linux mainstream system ASP. NET cross-platform environment, and can install many current mainstream tools: Jexus |mysql | Redis | Haproxy | MongoDB | Nginx | node. js.

See this filled with joy. A toss-up finally installed complete.

    

4. Install Mono

Instructions for use: wget http://download.mono-project.com/sources/mono/mono-4.0.5.1.tar.bz2

Tar jvxf mono-4.0.5.1.tar.bz2

CD mono-4.0.5

./configure--PREFIX=/USR

Make
sudo make install
Cd.. (Return to previous directory)

Use Mono-v to view the mono version to check if the installation was successful

Later found with the command: sudo apt-get install mono-complete can also be installed on the mono-related components, can save the installation of Libgdiplus (like, AH)

5, Installation Jexus

Instructions for use: wget http://www.linuxdot.net/down/jexus-5.6.4.tar.gz

Tar jvxf jexus-5.6.4.tar.gz

CD jexus-5.6.4

sudo./install (Jexus installed in the/usr/jexus folder by default)

Cd/usr/jexus

sudo./jws start (Start Jexus)

Enter on the browser: ip/info see the page, that means it's successful.

Note: The old version with./jws after Add., new version./jws after.

Jexus Configuration Multi-site: http://www.cnblogs.com/24la/p/jexus-more-sites.html

Jexus the use of various methods see HTTP://WWW.LINUXDOT.NET/BBSFILE-3500

Start: Sudo/usr/jexus/jws start
Stop: Sudo/usr/jexus/jws stop
Restart: Sudo/usr/jexus/jws restart
Restart the specified website: sudo/usr/jexus/jws Restart SiteName
Stop the specified Web site: Sudo/usr/jexus/jws stop SiteName

Jexus upgrade, latest version concern www.jexus.org

Set up the Jexus service to boot from:

Vi/etc/rc.local
Press the I key to enter edit mode add a sentence

/usr/jexus/jws start
Press ESC to exit edit mode, enter: Wq save file
Ubuntu is added in front of exit 0.

Iii. Configuring the ASP. NET site

1. Create a project in VS, then post and upload to/home/jexusmono,windows file to Ubuntu to open the Ssh-server service with WINSCP. Http://www.cnblogs.com/weixiao520/p/4771463.html

2. Edit the Jexus configuration file

sudo vi/usr/jexus/siteconf/default

Change the/var/www/default of the root node in the configuration file to/home/myub/desktop/webrelease

Restart Jexus service: Sudo/usr/jexus/jws restart

Operating effect:

  

  

Iv. Summary

This is just a simple test, did not do a complex ASP. NET site testing, complex may also have problems, have the opportunity to try to go further step-by-step, at the same time thank you predecessors. With Microsoft's open source, believe. NET cross-platform will be getting better.

ASP. NET cross-platform: ubuntu14.0+mono+jexus+asp.net

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.