var http = require('http')
var server = http.createServer();
server.on('request', function () {
console.log('收到客户端的请求')
});
server.listen(3000, function () {
console.log('服务器启动成功了')
});
const fs = require('fs');
const http = require('http');
http.createServer(function (req, res) {
res.end('404');
}).listen(3000, function () {
console.log('项目启动了');
});