ASP. NET FOR LINUX

Source: Internet
Author: User
This article describes how to set up Asp on a Linux operating system. before reading this article, you must first determine that you have installed the Linux operating system and Mono Runtime. If you need mod_mono, you must first install and prepare Apache. For Mono installation and configuration, see here.

XSP
XSP is a lightweight Web server. It is a pure. Net application written in 100% C # code. Of course, it is completely open source code. XSP uses the class in the System. Web namespace to execute Asp. Net execution tasks. It can also run on Windows (using Microsoft. Net Framework ).
The installation and preparation of XSP are relatively simple. The download address of its source code package is: XSP web server 1.0
After downloading the package, run the tar zxfv xsp-1.0.tar.gz to decompress it. A directory named xsp-1.0 is generated under the current directory and compiled in the following order:
./Configuration
Make
Make install
After compilation, go to the "serversubdirectory". You can see that there is an executable file named xsp.exe, which is the main program of xsp.
Next we can perform the test work, there is a subdirectory named test under the xsp-1.0 Directory, there are a lot of aspx files below, these are the test page that comes with the package, after entering the test Directory, run:
Mono/... xsp directory.../server/xsp.exe
The following prompt is displayed:
Adding applications '/:.'...
Registering application:
Host: any
Port: any
Virtual path :/
Physical path :/
Listening on port: 8080
Listening on address: 0.0.0.0
Root directory :/
Hit Return to stop the server.
It indicates that the xsp has been listening on port 8080 (Port 8080 by default). If you want to disable the server, press enter.
Now you can open a Web browser and enter:
Http: // address of your server: 8080/
If everything works, you can see the test homepage.
XSP also has some parameter options. Enter the -- help parameter to view the list and description of these options. Here is a brief introduction:
Related Article

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.