1. 安装完 ubuntu 后,在 ubuntu 软件中查看是否自带了 mono 运行时和 XSP4,如果没有,则选中后,点击安装按钮。

2. 安装完后,在终端(类似于 Windows 上的命令行工具)输入:xsp

如果显示“程序 xsp 尚未安装。”,那么需要调用 sudo apt-get install mono-xsp 来安装,如图:

3. 安装 mono-xsp 后,再次输入:xsp,应该就会显示如下信息了:

4. 在 /home/bruceliu 下(路径是自己的主文档的路径)新建一个 index.htm:

<html>
<head>
<title>Hello, Welcome to XSP4</title>
</head>
<body>
<h1>Hello, Welcom to XSP 哈哈</h1>
</body>
</html>

提示:要修改 XSP 的 root 路径,请在终端中输入:xsp --root /home/bruceliu/WorkSpace/DeployementProjects

5. 打开浏览器,输入 http://localhost:8080/

6. 再来一个 ASP.NET 的页面测试哈哈,打开 MonoDevelop,新建一个 ASP.NET 工程,选择 Empty Web Application

7. 新建一个 index.aspx

<%@ Page Language="C#" Inherits="MyAppStore.WebApp.HelloWorld.index" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head runat="server">
<title>index</title>
</head>
<body>
<form id="form1" runat="server">
<asp:Literal id="ltMessage" runat="server"></asp:Literal>
</form>
</body>
</html>
using System;
using System.Web;
using System.Web.UI; namespace MyAppStore.WebApp.HelloWorld
{
public partial class index : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if(!this.IsPostBack)
{
this.ltMessage.Text = "hello world, " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
}
}
}
}

8. 点击菜单栏的“运行”按钮

9. 这时 MonoDevelop 的”输出“窗口立即显示出了信息:

注意:请确保这时的 XSP4 是关闭的!

10. 打开浏览器,

11. 测试通过!

谢谢浏览!

最新文章

  1. Jquery当中当data为json串时,eval(&#39;(&#39; +data+ &#39;)&#39;)的解释
  2. 初识JNI
  3. IntelliJ IDEA 使用心得与常用快捷键
  4. PostgreSQL的时间/日期函数使用
  5. 【iOS与EV3混合机器人编程一系列五个】iOS_WiFi_EV3_Library 解剖连接EV3
  6. simulate windows postmessage or keydown
  7. BZOJ 2599: [IOI2011]Race( 点分治 )
  8. POJ 3181 Dollar Dayz 简单DP
  9. springboot 中使用websocket简单例子
  10. android 程序执行linux命令注意事项
  11. Regularity criteria for NSE 6: $u_3,\p_3u_1,\p_3u_2$
  12. [LeetCode] Max Increase to Keep City Skyline 保持城市天际线的最大增高
  13. 第八周博客作业 &lt;西北师范大学| 周安伟&gt;
  14. java39
  15. Python3+SQLAlchemy不使用字段名获取主键值教程
  16. Go Example--自定义排序
  17. zombodb 索引创建
  18. 关于form表单排版的技巧
  19. selenium之 chromedriver与chrome版本映射表(更新至v2.34)
  20. HTML5 Canvas ( 文字的度量 ) measureText

热门文章

  1. vue cli 3.0快速创建项目
  2. Django 练习班级管理系统一
  3. rhel7学习第一天
  4. Linux安装php-mysql提示需要:libmysqlclient.so.18()(64bit)的解决办法
  5. 酷睿i3-9100F简单评测
  6. lf 前后端分离 (2) 课程数据获取,Serializer的返回
  7. java中判断两个对象是否相等
  8. python27期day15:自定义模块、模块导入、模块的路径、模块的查找顺序、time、datetime、random、os、sys、作业题
  9. webdriver模拟鼠标操作
  10. Dubbo服务集群容错