2018年4月18日

MAC下是用brew安装Redis

摘要: 安装brew 在命令行里运行下面的命令,需要等待一段时间。 安装Redis 安装完成后可以是用下面的命令来查看是否安装成功 安装完成后就可以来安装redis了 运行 其他 运行后自动在后台运行,关闭后也会继续运行。可以使用端口检测命令来查看。 阅读全文

posted @ 2018-04-18 20:52 星河赵 阅读(426) 评论(0) 推荐(0) 编辑

python用zipfile模块打包文件或是目录、解压zip文件实例

摘要: #!/usr/bin/env python # -*- coding: utf-8 -*- from zipfile import * import zipfile #解压zip文件 def unzip(): source_zip="c:\\update\\SW_Servers_20120815.zip" target_dir="c:\\update\\" ... 阅读全文

posted @ 2018-04-18 12:37 星河赵 阅读(3054) 评论(0) 推荐(0) 编辑

导航