Important! This is an automatic machine translated page. If you can read english, you should Click Here to read the original English version of the article.

Run ASP.NET applications on Ubuntu (for developers) ASP.NET chạy các ứng dụng trên Ubuntu (cho các nhà phát triển)

The ASP.NET development environment on Ubuntu Linux is called XSP. Sự phát triển ASP.NET môi trường trên Ubuntu Linux được gọi là XSP. This is a simple webserver written in C# that can be used for either ASP.NET 1.0 or 2.0 applications. Đây là một máy chủ web đơn giản viết bằng C # mà có thể được sử dụng cho ASP.NET hoặc là 1,0 hoặc 2,0 ứng dụng. You can install both environments side by side if need be. Bạn có thể cài đặt cả hai bên môi trường của phụ nếu cần thiết.

Requirements: Yêu cầu:

Mono development environment. Mono môi trường phát triển.

ASP.NET 1.0 ASP.NET 1,0

sudo apt-get install mono-xsp mono-xsp-base sudo apt-get install mono-xsp mono-xsp-base

sudo apt-get install asp.net-examples sudo apt-get install asp.net-ví dụ

This will install the development environment along with some sample applications. Điều này sẽ cài đặt môi trường phát triển cùng với một số ứng dụng mẫu. To run the sample applications, you will launch the XSP process and point it at the samples. Để chạy các ứng dụng mẫu, bạn sẽ khởi động quá trình XSP và điểm nó ở mẫu. You'd simply modify the path to run an application that you've created. Bạn chỉ đơn giản muốn sửa đổi các đường dẫn để chạy một ứng dụng mà bạn đã tạo ra.

> xsp –root /usr/share/asp.net-demos/ > Xsp-root / usr / share / asp.net-demo /

Listening on port: 8080 (non-secure) Nghe trên cổng: 8080 (không an toàn)
Listening on address: 0.0.0.0 Nghe về địa chỉ: 0.0.0.0
Root directory: /usr/share/asp.net-demos Root thư mục: / usr / share / asp.net-demo
Hit Return to stop the server. Lượt Trở lại để dừng máy chủ.

ASP.NET 2.0 ASP.NET 2.0

sudo apt-get install mono-xsp2 mono-xsp2-base sudo apt-get install mono-xsp2 mono-xsp2-base

sudo apt-get install asp.net2-examples sudo apt-get install asp.net2-ví dụ

This will install the development environment along with some sample applications. Điều này sẽ cài đặt môi trường phát triển cùng với một số ứng dụng mẫu. To run the sample applications, you will launch the XSP process and point it at the samples. Để chạy các ứng dụng mẫu, bạn sẽ khởi động quá trình XSP và điểm nó ở mẫu. You'd simply modify the path to run an application that you've created. Bạn chỉ đơn giản muốn sửa đổi các đường dẫn để chạy một ứng dụng mà bạn đã tạo ra.

> xsp2 –root /usr/share/asp.net2-demos/ > Xsp2-root / usr/share/asp.net2-demos /

Listening on port: 8080 (non-secure) Nghe trên cổng: 8080 (không an toàn)
Listening on address: 0.0.0.0 Nghe về địa chỉ: 0.0.0.0
Root directory: /usr/share/asp.net-demos Root thư mục: / usr / share / asp.net-demo
Hit Return to stop the server. Lượt Trở lại để dừng máy chủ.

At this point, you'd want to navigate in your browser to Tại thời điểm này, bạn muốn điều hướng trong trình duyệt của bạn http://localhost:8080/ http://localhost:8080/ and you should see a page similar to this: và bạn sẽ thấy một trang tương tự như sau:

This article was originally written on 09/17/06 Tagged with: Bài viết này ban đầu được viết ngày 09/17/06 Tagged với: Adding Software Thêm phần mềm , , Programming Lập trình , , Ubuntu Ubuntu

Daily Email Updates Email cập nhật hàng ngày

You can get our how-to articles in your inbox each day for free. Bạn có thể làm thế nào chúng tôi vào các bài viết trong hộp thư của bạn mỗi ngày miễn phí. Just enter your name and email below: Chỉ cần nhập tên và email của bạn dưới đây:


Name: Tên:
Email: Email:

Comments (11) Bình luận (11)

  1. Ben Bến

    I think it's –root instead of -root and I came across a problem when I point my browser to localhost:8080: Tôi nghĩ rằng đó là-gốc thay vì-gốc và tôi đi qua một vấn đề khi tôi chỉ trình duyệt của tôi để localhost: 8080:
    Error Message: HTTP 404. Thông báo lỗi: HTTP 404. File not found /usr/share/asp.net2-demos/index2.aspx Không tìm thấy tệp / usr/share/asp.net2-demos/index2.aspx

  2. steve steve

    didn't have time to do much investigating but: không có thời gian để làm nhiều điều tra nhưng:

    sudo cp /usr/share/asp.net2-demos/index.aspx /usr/share/asp.net2-demos/index2.aspx sudo cp / usr/share/asp.net2-demos/index.aspx / usr/share/asp.net2-demos/index2.aspx

    then try again was enough to get a look at it. sau đó thử lại là đủ để có được một cái nhìn vào nó.

  3. JC DENTON JC Denton

    Thanks for the post. Thanks for the post.

    Your post distinguishes between xsp and xsp2. Bài đăng của bạn phân biệt giữa xsp và xsp2. This is not described in the man pages… Điều này không được mô tả trong các trang người đàn ông ...

    Now I would like to use the ajax framework with mono/asp Bây giờ tôi muốn sử dụng khuôn khổ ajax với mono / asp

  4. Adam Adam

    I get an error : Tôi nhận được một lỗi:
    invoke-rc.d: unknown initscript, /etc/init.d/mono-xsp2 not found. invoke-rc.d: không rõ initscript, / etc/init.d/mono-xsp2 không tìm thấy.
    dpkg: error processing /var/cache/apt/archives/mono-xsp2_1.1.17.1-2_all.deb (–unpack): dpkg: lỗi xử lý / var/cache/apt/archives/mono-xsp2_1.1.17.1-2_all.deb (-giải nén):
    subprocess pre-installation script returned error exit status 100 subprocess cài đặt sẵn kịch bản trở về trạng thái thoát ra lỗi 100
    Errors were encountered while processing: Gặp lỗi khi xử lý:
    /var/cache/apt/archives/mono-xsp2_1.1.17.1-2_all.deb / var/cache/apt/archives/mono-xsp2_1.1.17.1-2_all.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1) E: Sub-process / usr / bin / dpkg trả lại một mã số lỗi (1)

    When running: sudo apt-get install mono-xsp2 mono-xsp2-base Khi chạy: sudo apt-get install mono-xsp2 mono-xsp2-base

    Anybody have any clues. Bất kỳ ai có bất cứ manh mối.

    Thanks. Cảm ơn.

  5. Adam Adam

    Hello all, Xin chào tất cả,
    I was just going to post an update. Tôi đã chỉ ra để gửi một bản cập nhật.

    Here is a link that will explain the problem I previously posted. Đây là một liên kết đó sẽ giải thích vấn đề này trước đây tôi đăng.

    https://bugs.launchpad.net/ubuntu/+source/xsp/+bug/99798 https: / / bugs.launchpad.net / ubuntu / + source / xsp / + bug/99798

    I just moved the the mono-xsp file mentioned in the post, to a different folder; installed 2.0. Tôi chỉ cần di chuyển các mono-xsp các tập tin được đề cập trong bài này, vào một thư mục khác nhau; cài đặt 2.0. Then moved mono-xsp back to it original location. Sau đó di chuyển mono-xsp lại cho nó vị trí ban đầu.

    Hope this helps. Hope this helps.

    Adam Adam

  6. Deepak Deepak

    Is it possible to run .net (Windows) applications like Extreme Movie Manager like this? Là nó có thể chạy net (Windows). Ứng dụng như Extreme Movie Manager như thế này?

  7. Josh Josh

    Can you run mono as a daemon? Bạn có thể chạy mono như là một daemon? I'd like to have the ability to use ubuntu as my webserver and still use some ASP.NET, but if I have to log in and run this everytime to have my pages work, it's useless. Tôi muốn có khả năng sử dụng ubuntu như là máy chủ web của tôi và vẫn còn sử dụng một số ASP.NET, nhưng nếu tôi có để đăng nhập và chạy mọi này có các trang của tôi làm việc, nó là vô ích.

  8. cherry anh đào

    i had to run: tôi đã phải chạy:

    xsp2 –root /usr/share/asp.net2-demos/ xsp2-root / usr/share/asp.net2-demos /

    insted of : insted của:

    xsp2 –root /usr/share/asp.net2-demos/ xsp2-root / usr/share/asp.net2-demos /

  9. Loic Duros Loic Duros

    cherry: anh đào:

    I had to run xsp2 –root /usr/share/asp.net2-demos/ too (two hyphens before root) Tôi đã phải chạy xsp2-root / usr/share/asp.net2-demos / quá (hai dấu gạch ngang trước khi người chủ)

  10. maitreyi maitreyi

    sudo apt-get install mono-xsp mono-xsp-base sudo apt-get install mono-xsp mono-xsp-base

    sudo apt-get install asp.net-examples sudo apt-get install asp.net-ví dụ

    after running these 2 commands i dont know what has to done exactly sau khi chạy 2 lệnh này i dont biết những gì phải thực hiện một cách chính xác

  11. Ben Bến

    One important point… change to /usr/share/asp.net-demos/ directory before starting the server. Một điều quan trọng điểm ... để thay đổi thư mục / usr / share / asp.net-demo / thư mục trước khi bắt đầu máy chủ.


Leave a Comment Để lại một Thảo luận




Leave your Để lại của bạn friendly thân thiện comment here. bình luận ở đây.

If you have a computer help question, Nếu bạn có một câu hỏi giúp máy tính, click here to leave it on the forums bấm vào đây để lại nó trên các diễn đàn instead. thay vì.

Note: Your comment may not show up immediately on the site. Lưu ý: Ý kiến của bạn có thể không hiển thị ngay lập tức trên trang web.

Our Friends Bạn bè của chúng tôi
Getting Started Bắt đầu


About How-To Geek Giới How-To Geek
What Is That Process? Quá trình đó là gì?
svchost.exe svchost.exe
jusched.exe jusched.exe
dwm.exe dwm.exe
ctfmon.exe ctfmon.exe
wmpnetwk.exe wmpnetwk.exe
wmpnscfg.exe wmpnscfg.exe
rundll32.exe rundll32.exe
wfcrun32.exe wfcrun32.exe
Ipoint.exe Ipoint.exe
Itype.exe Itype.exe
Wfica32.exe Wfica32.exe
Mobsync.exe Mobsync.exe
conhost.exe conhost.exe
Dpupdchk.exe Dpupdchk.exe Adobe_Updater.exe Adobe_Updater.exe

Copyright © 2006-2009 HowToGeek.com. Bản quyền © 2006-2009 HowToGeek.com. All Rights Reserved. Tất cả các quyền.