First attempt to deploy ASP. NET MVC3 on CentOS

Source: Internet
Author: User

It's been a long time since I've been focusing on mono, and now we're just trying to really try to deploy ASP.

For the first time you've tried it.

The environment of my practice is Win7 + VM10 + CentOS6.5

Here are the specific steps:

1, in Linux under the environment (Mono 3.12.0+jexus 5.6.3.12) to build ASP, this step has been a lot

can refer to the article, we can see Jinghong's blog and Mr. Zhang Shanyu's blog to build the environment, I set up the final as

Under

2, the environment is set up, of course, is to develop. Development I was on VS, uploading the post file to the virtual machine for deployment.

This is my project, new is the empty MVC3 project, add a controller, add the corresponding view, as shown above.

Plus because of my personal habits, I'm going to remove some of the unused assemblies, so references doesn't look that bloated.

When it's done, it's released. ~ ~

Upload the published file to the/var/www/test directory of the virtual machine (test is a new directory I created)

3. Configure Jexus, add a new configuration named Test (except port and root) in the/usr/jexus/siteconf directory

Change, the rest are copied by default configuration), as follows

Save exit: Wq

Restart Jexus/usr/jexus/./jws restart

Once the reboot is successful, you can

Done.

However, it is important to note that the capitalization on Linux is sensitive and there is no problem on Windows. In Windows

Ip:port/home/index and Ip:port/home/index are equivalent, and on Linux are not equivalent, by this

A long time, always thought that there is no configuration well ~ ~ ~ this blog is to give yourself a reminder of it.

First attempt to deploy ASP. NET MVC3 on CentOS

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.