nodeJS基础---->nodeJS的使用(一)
Node.js是一个Javascript运行环境(runtime)。实际上它是对Google V8引擎进行了封装。V8引擎执行Javascript的速度非常快,性能非常好。Node.js对一些特殊用例进行了优化,提供了替代的API,使得V8在非浏览器环境下运行得更好。今天我们开始nodeJS的第一个程序的学习。
node.js的使用
一、 下载nodeJS,它的官方地址:https://nodejs.org/en/。安装过程很简单,一直next就可以。
在安装的过程中,默认是配置了系统变量。所以在命令行输入: node -v 会出现node的版本号。
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAANEAAAAxCAIAAADLHNs6AAACT0lEQVR4nO2a23WDMBAFaddduas0kArSgPORn1iP1V0kXzCeOT4+GFbSAiOBQdvX98/9fr/dbhuAB5wDNzgHbnAO3OAcuME5cDPl3GN1NpOcLR9oUjr3eP7ENAOKsmJVS1DyaW515jNf57t3rSfnip1R9q13mrP1rELJp9j00vRepN1b8+nOGVje+nWcU66k4hk90Llmc4efpLUJHL47k7id690v1iv//4zjh4rHN3N18WajzQTiIs0c4uDgZlo8bln8998J53rozmXXb9XhGMYr+Qy31ud12FAvphk/U78Y30ug/uyoZ5IFzm2yBMPxptmPh81l8xnWtqNvbKPhIdip3X0yOG5ZlD6zCqtzW0aseFN8oM/m3L4+mV0/wzHO1e2lmlf6ca/IDueGMaLTza1rnZuv3+acQbgtcG54l1Nv7ZXdfUybacTxqXx6xZU8e0N1NjexbHE91dvS8Qi3Be8hmjnpA1LvGtq7JtbrxWBlEK0/QT36z2KhWFkfk1T9QZ8X47Mc5twMtqRFzpYP/IFz4Ia5TOAG58ANzoEbnAM3OAdu0s5l/wzq8UseMsH5yTmX1UKPj5+jwpVIOPf4962gx699hwMnR3UuOw6l4nHuo3iayxS/BywWYnAOekhzmZoTHAJm4sUi8L405pUUC8FyD5yDANU5ZfrQTHzwEy5G27ngrL/i+RzOfRSN/63xKa/Hvxgxnudzn0PCud6U2h774uHy8L4V3OAcuME5cINz4AbnwA3OgRucAzc4B25wDtzgHLjBOXCDc+AG58DML4Z49YteldnPAAAAAElFTkSuQmCC" alt="" />
二、 我们开始第一个nodeJS程序,在桌面上创建一个firstNode.js文件。
const http = require('http'); http.createServer( (request, response) => {
response.writeHead(, {'Content-Type': 'text/plain'});
response.end('Hello NodeJS\n');
}).listen(); console.log('Server running at http://127.0.0.1:8124/');
三、 在命令行启动服务,进入相应目录输入:node firstNode.js
C:\Users\Linux>cd C:\Users\Linux\Desktop C:\Users\Linux\Desktop>node firstNode.js
Server running at http://127.0.0.1:8124/
四、 在浏览器访问,输入: http://127.0.0.1:8124/
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAboAAACPCAIAAAADVYl4AAAgAElEQVR4nO2daVQc15n3r2ec804y75k5byYziU9ikI0WCBFOYjtOYi12xlrssSxwhlgWyHFsWbIcb7JZhGwRawPtSLJAAiQQm2i2FohdILZm3zexdTc0zd6sArE0IJ73Q/VSVV3VXSwSQnr+5/eBrrp73fr3c28VQC4lVCLIw8zF+AqfuLLvxUWewbf2e4vdLogD4nJzKmTVss7WnqGewbHh8XsIYoSewbGW7qFqWWdOhSwwLs/tgni/t9gz+Nb34iKfuLKL8RUCpyLxTahCkIeWS/GV3rFlJ8Kyv/WJPRGYlFfdrLozMTg63Xd3undkSjUypRqe6kEQo6iGp1QjU70jU313pwdHp1V3JvJrWk5dTf7WJ/ZEWLZ3bNml+Eohs5H4JlYhyMPJpYQK77iywwGprueibhY1dA6O992dXvR7D3kE6Ls73T00cbO40e189OHLKd5xZZcSKkxOSOKXVI0gDyG+iVU+N8qPXElx946pbelBo0QWnL670/Wtve4+MUeupPjcKPdNrDI+J4l/cg2CPIT4JlSeCM3cdy6qXNqlGln8Wwt5JFGNTFXIu93OR58IzfRNqDQ+J8mVlFoEedi4nFx96UbZN97i1KJG9ErkvqIamcook37jLb50o+xycrWRaUkCUmvnw0uhQ8QXnrgET/jBP/kD8QZyDshFeNIP/skXyPdAzsETvvCEHxBfeCl0aJ7VIY8J/olVHoGpXqE3m3tGF/12Qh55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CoVCCRLaJQqFQgkS2iUKhUIJEtolCoVCCRLaJQqFQgkS2iUKhUIJEtolCoVCCRLaJQqFQgkS2iUKhUIJEtolCoVCCRLaJQqFQgkS2iUKhUIJEtolCoVCCRLaJQqFQgkS2iUKhUIJEtolCoVCCRLaJQqFQgkS2iUKhUIJEtolCoVCCdL/B3WS1Us7bjv/AAAAAElFTkSuQmCC" alt="" />
如果你有java web开发经验的话,在使用tomcat作web容器的时候。它会检测修改的java内容,自动重启。同样的nodejs也可以使用supervisor来实现相似的功能,它会监视你对代码的改动,并自动重启 Node.js。安装:npm install -g supervisor。运行上述的代码:supervisor firstNode.js。
友情链接
- nodeJS的官方文档: https://nodejs.org/api/
nodeJS基础---->nodeJS的使用(一)的更多相关文章
- [转]Nodejs基础中间件Connect
Nodejs基础中间件Connect 从零开始nodejs系列文章,将介绍如何利Javascript做为服务端脚本,通过Nodejs框架web开发.Nodejs框架是基于V8的引擎,是目前速度最快的J ...
- Nodejs基础中间件
Nodejs基础中间件Connect http://www.tuicool.com/articles/emeuie 关于作者 张丹(Conan), 程序员Java,R,PHP,Javascript ...
- Nodejs第一天-{Nodejs基础 深刻理解浏览器 环境变量 基础语法}
Nodejs第一天 1.什么是Nodejs Nodejs是一个可以运行(解析)ECMAScript的环境; ECMAScript是规定了一些列的语法 ,这些语法想要解析的执行就需要放在某个环境 ...
- nodejs 基础篇整合
nodeJs 基础篇整合 最近有朋友也想学习nodeJs相关方面的知识,如果你是后端想接近前端,node作为一门跑在服务端的JS语言从这里入门再好不过了.如果你正好喜欢前端,想走的更高,走的更远.no ...
- 前端知识体系-NodeJS相关】NodeJS基础知识全面总结
NodeJS基础知识 1. Node的全局对象和全局变量 1.1 全局对象:所有模块都可以调用的 global:表示Node所在的全局环境,类似于浏览器的window对象. process:该对象表示 ...
- nodejs基础【持续更新中】
简介 Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine. Node.js uses an event-dr ...
- nodejs基础部分(一)
前言 业余时间充实自我,入手学习了解一下传说中纯事件驱动/非阻塞的js架构 --nodejs 好记性不如烂笔头,本系列随笔用于整理记录学习nodejs过程中的心得 目录 nodejs简介 nodejs ...
- Nodejs基础中间件Connect
http://www.tuicool.com/articles/emeuie 关于作者 张丹(Conan), 程序员Java,R,PHP,Javascript weibo:@Conan_Z blog: ...
- 02 nodejs命令参数(NodeJS基础入门)
声明:本文章可供有一定js基础的朋友参考nodejs入门,本文未讲解nodejs的安装,如有需要的同学可以加QQ3382260752找我,进行交流学习. 建议使用开发软件:webstorm或hbuil ...
随机推荐
- MongoDB(三):MongoDB概念解析
在上一篇文章中讲解了如何安装MongoDB,这篇文章中讲解一些有关MongoDB的概念. 不管我们要学习什么数据库,都应该学习其中的基础概念,在MongoDB中基本的概念是文档.集合.数据库,下面挨个 ...
- DataTable使用技巧:DataRowState
DataGridView:获取 DataRow 对象的状态,共有5个枚举值. Added 该行已添加到 DataRowCollection 中,AcceptChanges 尚未调用. Deleted ...
- 在网页中使用SVG
SVG可以作为一个独立的文件存在.但更多的时候,我们希望他能集成在某个更大的文档中,比如HTML.将SVG插入到HTML中主要有以下几种方式: 将 SVG 作为图像导入 将 SVG放入 iframe ...
- android抓包工具——使用fiddler4在安卓手机抓包
Fiddler是一款非常流行并且实用的http抓包工具,它的原理是在本机开启了一个http的代理服务器,然后它会转发所有的http请求和响应,因此,它比一般的firebug或者是chrome自带的抓包 ...
- jquery对象和javascript的dom对象转换
Jquery框架为jquery对象定义了独立使用的方法和属性,它无法直接调用dom对象的方法,dom对象也无法直接调用jquery对象的方法和属性. Jquery对象和dom对象是可以相互转换的,因为 ...
- Windoows窗口程序四
子窗口的创建 .创建时要设置父窗口句柄 .创建风格要增加WS_CHILD|WS_VISIBLE HWND CreateChild(LPSTR lpClassName,LPSTR lpWndName,H ...
- C/C++预处理指令
预处理指令 Preprocessor Directives define undef ifdef ifndef if endif else and elif line error include 预定 ...
- 为什么要把session存入数据库
比如网易的通行证,一个session能进入很多的网易下的网站
- javascript删除字符串最后一个字符
搜到很多无用的答案,这对新手来讲是很耗费时间的事情,我把正确的方法贴出来,以便有的新手不再踩这个坑. JavaScript slice() 方法 定义和用法 slice() 方法可提取字符串的某个部分 ...
- (转)获取android源码时repo的错误
获取android源码时repo的错误 今天用repo获取android源码:../bin/repo init -u git://android.git.kernel.org/platform/man ...