摘要: 登录Redis 添加字符串 EX 超期时间60s ` ` 阅读全文
posted @ 2020-02-16 17:18 LeoShi2020 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 系统环境 yum安装 ` ` Redis服务启动 Redis开机启动 查看运行状态 查看程序进程以及端口 6379 阅读全文
posted @ 2020-02-16 17:02 LeoShi2020 阅读(663) 评论(0) 推荐(0) 编辑
摘要: 安装python-memchached插件 pip install python-memcached Collecting python-memcached Downloading python_memcached-1.59-py2.py3-none-any.whl (16 kB) Requirem 阅读全文
posted @ 2020-02-16 13:44 LeoShi2020 阅读(398) 评论(0) 推荐(0) 编辑
摘要: telnet连接memcached 查看端口是否可访问 # telnet 172.16.1.1 11211 Trying 172.16.1.1... Connected to 172.16.1.1. Escape character is '^]'. ^] 添加获取数据 添加语法set没有值的时候添 阅读全文
posted @ 2020-02-16 12:39 LeoShi2020 阅读(173) 评论(0) 推荐(0) 编辑
摘要: # yum install telnet Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile Resolving Dependencies --> Running transaction check > P 阅读全文
posted @ 2020-02-16 12:30 LeoShi2020 阅读(543) 评论(0) 推荐(0) 编辑
摘要: shell直接运行 cat > 01.yumrepo.sh << 'EOF' # 创建备份路径 mkdir -p /etc/yum.repos.d/repo.bak/ # 备份源 mv /etc/yum.repos.d/*.repo /etc/yum.repos.d/repo.bak/ # 导入镜像 阅读全文
posted @ 2020-02-16 12:26 LeoShi2020 阅读(7365) 评论(0) 推荐(0) 编辑
摘要: 查看memcached信息 $ brew info memcached memcached: stable 1.5.22 (bottled), HEAD High performance, distributed memory object caching system https://memcac 阅读全文
posted @ 2020-02-16 11:44 LeoShi2020 阅读(233) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env pyhton # coding:utf-8 # @Time : 2020-02-16 10:07 # @Author : LeoShi # @Site : # @File : demo.py # @Software : MacOS Python 3.7 import s 阅读全文
posted @ 2020-02-16 10:44 LeoShi2020 阅读(3509) 评论(0) 推荐(0) 编辑
摘要: 返回值规范 json { "code":200, "message":"" "data":[ { "title":"xxx", "content":"xxx" }, { "title":"xxx", "content":"xxx" } ] } 状态码规范 状态码状态码英文名称中文描述 100 Con 阅读全文
posted @ 2020-02-15 18:40 LeoShi2020 阅读(735) 评论(0) 推荐(0) 编辑
摘要: Chrome 调试的时候经常发现缓存没有清理 MacOS :⌘+⇧+r Windows:Ctrl + F5 阅读全文
posted @ 2020-02-15 18:22 LeoShi2020 阅读(418) 评论(0) 推荐(0) 编辑