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