我正在尝试在 Nuxt.js Vue 文件的 @apply 标签中使用 Tailwindcss <style> 指令。一切正常,但我不断收到一些烦人的红色波浪线。拜托了,伙计们,我需要帮助...谢谢!
顺晟科技
2021-06-16 10:39:14
310
打开一个cmd窗口,使用cd命令将目录切换到C:\redis运行redis-server.exe redis . windows . conf .如果想方便,可以将redis的路径添加到系统的环境变量中,这样就省去了重新输入路径的需要。后者redis.windows.conf可以省略。如果省略,将启用默认值
此时,请打开另一个cmd窗口,不要关闭原来的窗口,否则您将无法访问服务器。切换到redis目录运行redis-cli.exe-h127.0.0.1-p6379。
Set key-value对set myKey abc
取出键值对获取我的密钥
用于鸡蛋
鸡蛋再制
$ npm i egg-redis - save
//打开插件
//${app_root}/config/plugin.js
exports.redis={
enable: true,
包装: '鸡蛋再制',
};
//在config.default.js中配置
config.redis={
client: {
port : 6379//Redis端口
host: '127.0.0.1 ',//Redis主机
密码: '授权',
db: 0,
},
}
将数据存储在redis中
module . exports . log in=function *(CTX){
const {app}=此
const form=ctx.request.body
让时间=3600 * 24 * 30//令牌到期时间
让token=生成token ({_ id:form。_ id},时间)//生成令牌
App.redis.set (form.username,token)//在redis中存储令牌
}
29
2021-08
16
2021-06
16
2021-06
16
2021-06
16
2021-06
16
2021-06