Skip to content

Commit

Permalink
2016-03-28继续完善Redis相关内容
Browse files Browse the repository at this point in the history
  • Loading branch information
judasn committed Mar 28, 2016
1 parent dd892c8 commit 4265707
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
5 changes: 2 additions & 3 deletions FastDFS-Install-And-Settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,6 @@
- 启动 tracker 服务:`/usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf`
- 重启 tracker 服务:`/usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf restart`
- 查看是否有 tracker 进程:`ps aux | grep tracker`


- storage (存储节点)服务部署
- 一般 storage 服务我们会单独装一台机子,但是这里为了方便我们安装在同一台。
- 如果 storage 单独安装的话,那上面安装的步骤都要在走一遍,只是到了编辑配置文件的时候,编辑的是 storage.conf 而已
Expand Down Expand Up @@ -214,7 +212,8 @@
```
- 在终端中通过 shell 上传 opt 目录下的一张图片:`/usr/bin/fdfs_test /etc/fdfs/client.conf upload /opt/test.jpg`
- 如下图箭头所示,生成的图片地址为:`http://192.168.1.114/group1/M00/00/00/wKgBclb0aqWAbVNrAAAjn7_h9gM813_big.jpg`
- 因为我们还没装 FastDFS 的 Nginx 模块,所以现在我们访问不了图片地址
- ![FastDFS](images/FastDFS-a-1.jpg)
- 即使我们现在知道图片的访问地址我们也访问不了,因为我们还没装 FastDFS 的 Nginx 模块
- 安装 **fastdfs-nginx-module_v1.16.tar.gz**,安装 Nginx 第三方模块相当于这个 Nginx 都是要重新安装一遍的
- 解压 Nginx 模块:`tar zxvf fastdfs-nginx-module_v1.16.tar.gz`,得到目录地址:**/opt/setups/FastDFS/fastdfs-nginx-module**
- 编辑 Nginx 模块的配置文件:`vim /opt/setups/FastDFS/fastdfs-nginx-module/src/config`
Expand Down
Binary file added FastDFS-a-1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 5 additions & 4 deletions Redis-Install-And-Settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ daemonize no
pidfile /var/run/redis.pid
port 6379
tcp-backlog 511
# 请求超时时间
timeout 0
# 请求超时时间,默认是 0
timeout 15
tcp-keepalive 0
loglevel notice
logfile ""
Expand Down Expand Up @@ -118,8 +118,7 @@ aof-rewrite-incremental-fsync yes
- `PERSIST key`,清除生成时间,重新变成永久存储(重新设置 key 的值也可以起到清除生存时间的效果)
- `FLUSHDB`,清空当前数据库所有键值
- `FLUSHALL`,清空所有数据库的所有键值
- ``,
- ``,


## Redis 客户端

Expand All @@ -133,6 +132,8 @@ aof-rewrite-incremental-fsync yes
- Redis Desktop Manager
- 官网:<http://redisdesktop.com/>
- 官网下载:<http://redisdesktop.com/download>
- 效果如下图:
- ![Redis Desktop Manager](images/Redis-GUI-a-1.jpg)



Expand Down
Binary file added images/Redis-GUI-a-1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4265707

Please sign in to comment.