在master上创建repl账户,用于复制。grant replication slave on *.* to [email protected]%‘ identified by ‘P$$W0rd‘;flush privileges;与windows下搭建mysql主从的区别:二进制日志的路径格式不一样master:my.cnf部分配置(master):thread_handling …
let http require(http)
let fs require(fs)
http.createServer((req,res)>{console.log("我来了");console.log(req.url);res.end(index);fs.readFile(${req.url},(err,data)>{if(err){console.log(err)res.writeHead(404)res.end(404 not found)}else{res.…