因为安全的原因,无法直接在浏览器中打开工程目录下的index.html文件。
你必须在你的电脑中搭建一个本地服务器。本小节会解释如何做。
在Windows下搭建本地服务器
开启Internet Information Service
在“控制面板”中,点击“程序”。
点击“启用或关闭Windows功能”。
在“Windows功能”窗口中,点击“Internet Information Services”来启用它。
*不是选中,是不完全选中
点击“确定”。
文件的安装位置
Internet Information Services 被启用时,会自动创建一个本地服务器的文件夹。把工程文件夹放在这个文件夹中。
点击“此电脑” → “本地磁… Read More
Sublime Text is a cross-platform text and source code editor with a Python API. It is a sophisticated text editor for code, markup and prose. Its functionality is extendable with plugins. Most of the extending packages have free-software licenses and are community-built and maintained.
Sublime Text features:
“Goto Anything,” quick navigation to files… Read More
本文介绍如何用强大的文本编辑器 Vim编程。只要配置得当,效果堪比一个IDE。
配置
基本配置:
"开启语法高亮
syntax on
"依文件类型设置自动缩进
filetype indent plugin on
"显示当前的行号列号:
set ruler
"在状态栏显示正在输入的命令
set showcmd
"关闭/打开配对括号高亮
"NoMatchParen
DoMatchParen
行号的显示与隐藏:
"显示行号:
set number
"为方便复制,用<F2>开启/关闭行号显示:
nnoremap <F2> :set nonumber!<CR>:set foldcolumn=0<CR>
启用Model… Read More
How To Vimrc
There is just one rule you must follow when crafting your own .vimrc.
Don’t put any lines in your vimrc that you don’t understand.
There are tons of tutorials such as this one on the internet that contain all kinds of awesome hacks to make your Vim better, but the absolute worst way to make
在 Amazon Web Services 上托管 Web 应用程序
Web 应用程序 是指用户通过 Web 浏览器或专门的 Web 客户端访问的任何软件。Web 应用程序通常具有逻辑层级结构。例如,常用结构使用三个层级。第一层是 Web 浏览器,它负责显示用户界面。中间层是应用程序服务器,它负责提供应用程序功能。第三层是数据库服务器或文件系统,它负责存储数据。
此教程指导您逐步完成在 AWS 基础设施上托管可扩展且可靠的 Web 应用程序的过程。我们将通过部署一个 .NET 示例应用程序演示最佳实践。完成此教程后,您应该能够执行以下操作:
创建称为 EC2 实例 的虚拟服务器,并使用它作为云中的应用程序服务器。
创建称为数据库实例 的数据库服务器。… Read More