nodejs下载及helloworld!
来源:互联网 发布:女装知茵品牌 编辑:程序博客网 时间:2024/06/02 05:11
下载:
http://nodejs.cn/download/
安装后,打开cmd 输入:node 验证是否安装成功!
helloworldDemo
新建: 保存为:example.js文件
const http = require('http');
const hostname = '127.0.0.1';
const port = 3000;
const server = http.createServer((req, res) => {
res.statusCode = 200;
res.setHeader('Content-Type', 'text/plain');
res.end('Hello World\n');
});
server.listen(port, hostname, () => {
console.log(`服务器运行在 http://${hostname}:${port}/`);
});
运行: 查看:
阅读全文
0 0
- nodejs下载及helloworld!
- 01-nodeJs下载及安装
- win7下nodejs的安装部署及helloworld实现
- Android Studio 下载、安装及HelloWorld演示
- nodejs的helloworld
- Nodejs(学习之HelloWorld)
- nodejs初学-----helloworld
- nodejs-1 HelloWorld
- nodejs 模板 ejs helloworld
- nodejs案例-HelloWorld
- Nodejs学 入门helloWorld
- nodejs的helloworld
- Spring.net抛砖引玉系列(一)下载安装及HelloWorld
- Nodejs 学习一 NodeJs helloworld 简单封装
- nodejs 模板 ejs 入门 helloworld
- JDK下载到HelloWorld
- nodejs下载文件
- nodeJs各个版本下载
- mysql增改查的sql语句学习笔记
- [问题记录] spring-boot 打印启动时间
- 第八周项目一
- 你是如何调用 wait()方法的?使用 if 块还是循环?为什么?
- Linux内核模块
- nodejs下载及helloworld!
- VB.NET-VS2010 通过代码关闭计算机的方法
- cmd maven常用打包命令
- ssh-copy-id .sh
- 第10周 【项目1
- iOS-This application’s application-identifier entitlement does not match that of the installed appli
- 自然数立方的乐趣
- DockOne技术分享(五十七):Docker容器对存储的定义(Volume 与 Volume Plugin)
- android视频加载预览图