随笔分类 -  nodejs

摘要:代码: const fastify = require("fastify")(); const md5 = require('md5'); const querystring = require('querystring'); //npm install fastify var secretKey 阅读全文
posted @ 2024-09-02 14:27 河北大学-徐小波 阅读(21) 评论(0) 推荐(0) 编辑
摘要:代码: var restify=require('restify') var server=restify.createServer() const md5 = require('md5'); const querystring = require('querystring'); //npm ins 阅读全文
posted @ 2024-09-02 14:26 河北大学-徐小波 阅读(8) 评论(0) 推荐(0) 编辑
摘要:代码: const Hapi = require('hapi'); const md5 = require('md5'); const server = new Hapi.Server({ port: 1101 }); //npm install hapi var secretKey = 'saac 阅读全文
posted @ 2024-09-02 14:25 河北大学-徐小波 阅读(5) 评论(0) 推荐(0) 编辑
摘要:代码: const Koa = require('koa'); const Router = require('koa-router'); const md5 = require('md5'); //npm install koa koa-router const app = new Koa(); 阅读全文
posted @ 2024-09-02 14:24 河北大学-徐小波 阅读(8) 评论(0) 推荐(0) 编辑
摘要:代码: const express = require('express'); const app = express(); const md5 = require('md5'); //npm install express var secretKey = 'saacac3423@21212'; v 阅读全文
posted @ 2024-09-02 14:23 河北大学-徐小波 阅读(5) 评论(0) 推荐(0) 编辑
摘要:common.js function setCookie(name, value, daysToLive = 7) { let cookie = name + "=" + encodeURIComponent(value); if (typeof daysToLive "number") { coo 阅读全文
posted @ 2024-06-21 15:27 河北大学-徐小波 阅读(8) 评论(0) 推荐(0) 编辑
摘要:目录结构 nginx配置: upstream bbs_upstream { server 127.0.0.1:1081; #php server 127.0.0.1:1086; #csharpe server 127.0.0.1:1087; #java server 127.0.0.1:1084; 阅读全文
posted @ 2024-06-21 14:55 河北大学-徐小波 阅读(15) 评论(0) 推荐(0) 编辑