Time of Update: 2015-04-24
標籤:@Controller@RequestMapping("/myTest")public class TestController { @Autowired(required = false) private TestService testService; &n
Time of Update: 2015-04-17
標籤:mongodb memcache redis tc tt MongoDB 系列:MongoDB介紹MongoDB 2.4.10 安裝和配置MongoDB 實現currentOp定時捕獲MongoDB 使用複本集備份添加新的輔助副本成員MongoDB日誌切換(Rotate Log
Time of Update: 2015-04-23
標籤:一、背景公司的redis有時background save db不成功,通過log發現下面的警示,很可能由它引起的:[13223] 17 Mar 13:18:02.207 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add ‘vm.overcommit_memory = 1‘ to
Time of Update: 2015-04-22
標籤:下面是一個Shell指令碼,用於管理Redis進程(啟動,停止,重啟),這個指令碼可供參考。#!/bin/sh## redis - this script starts and stops the redis-server daemon## chkconfig: - 85 15# description: Redis is a persistent key-value database# processname: redis-server# config:
Time of Update: 2015-04-21
標籤:0x00 前言redis現在很多都是直接對外開放連接埠,從外網無需任何驗證即可直接存取到。相關的例子可以從shodan或者zoomeye上找到。那麼問題來了,作為一個記憶體資料庫,redis上肯定也有很多敏感資訊,比如redis用於做session的儲存,可能導致敏感資訊泄露。不過最近研究redis從烏雲社區和drops上看到有人getshell,思路比較有趣,特地寫一下總結。0x01
Time of Update: 2015-04-23
標籤:java redis spring redis 訂閱發布項目名稱:SmRemind_NEW@Servicepublic class PubServiceImpl implements PubService {@Resource(name="stringRedisTemplate")private StringRedisTemplate
Time of Update: 2015-04-20
標籤:原文地址:http://www.yiibai.com/redis/redis_java.html 要在Java程式中使用使用操作Redis,需要確保有Redis的Java驅動程式和Java設定在機器上。可以檢查看Java教程-學習如何在機器上安裝Java。現在,讓我們來看看如何設定Redis的Java驅動程式。需要下載jedis.jar。請一定要下載它的最新版本。需要包括jedis.jar到你的類路徑中。串連到Redis伺服器import redis.clients.jedis.
Time of Update: 2015-04-24
標籤:概述 Redis 支援簡單且易用的主從複製(master-slave replication)功能, 該功能可以讓從伺服器(slave server)成為主伺服器(master server)的精確複製品。 以下是關於 Redis 複製功能的幾個重要方面: Redis 使用非同步複製。 從 Redis 2.8 開始, 從伺服器會以每秒一次的頻率向主伺服器報告複製流(replication stream)的處理進度。 一個主伺服器可以有多個從伺服器。 不僅主伺服器可以有從伺服器,
Time of Update: 2015-04-23
標籤:?redis-cli串連伺服器後,使用info命令查看Redis資訊和狀態:info其中memory段顯示了redis的記憶體使用量狀態。以下內容複寫自:http://redisdoc.com/server/info.htmlINFO [section]以一種易於解釋(parse)且易於閱讀的格式,返回關於 Redis 伺服器的各種資訊和統計數值。通過給定可選的參數 section ,可以讓命令只返回某一部分的資訊: server 部分記錄了 Redis
Time of Update: 2015-04-23
標籤:Redis叢集部署文檔(centos6系統)(要讓叢集正常工作至少需要3個主節點,在這裡我們要建立6個redis節點,其中三個為主節點,三個為從節點,對應的redis節點的ip和連接埠對應關係如下)127.0.0.1:7000 127.0.0.1:7001127.0.0.1:7002127.0.0.1:7003127.0.0.1:7004127.0.0.1:7005 1:下載redis。官網下載3.0.0版本,之前2.幾的版本不支援叢集模式:https://github.com/
Time of Update: 2015-04-23
標籤:redis 無法啟動 maxheap 最大堆 conf Redis無法啟動 今天在啟動Redis時提示以下錯: C:\Java\redis2817>redis-server.exe redis.windows.conf [5268] 23 Apr 11:45:22.696 # The Windows version
Time of Update: 2015-04-22
標籤:install webseven redis InstallationDownload Redis with: wget http://download.redis.io/releases/redis-3.0.0.tar.gzExtract and compile Redis with: tar xzf
Time of Update: 2015-04-22
標籤:一、redis主從複製原理 在Slave啟動並串連到Master後,將主動發送SYNC命令。此後Master將啟動後台存檔進程,將資料庫快照集儲存到檔案中,同時收集新的寫命令
Time of Update: 2015-04-22
標籤:字串 周期性 持久性 關聯式資料庫 用戶端 簡介
Time of Update: 2015-04-21
標籤: 一、直接安裝 1.Windows版本的Redis:https://github.com/dmajkic/redis/downloads ,選擇一個你想要下載的版本下載即可~ 2.根據自己的作業系統解壓相應的版本,Win7
Time of Update: 2015-04-22
標籤:向名稱為key的set中添加元素: 命令:sadd #不允許有重複的值 2刪除名稱為key的set中的元素: 命令:srem 3隨機返回並刪除名稱稱為key的set中的一個元素: 命令:spop
Time of Update: 2015-04-21
標籤:一、.NET使用Redis 和MongoDB一樣,在.NET中使用Redis其實也是使用第三方驅動,官網推薦的是使用ServiceStack.Redis(https://github.com/ServiceStack/ServiceStack.Redis) 點擊下載壓縮包,解壓 ServiceStack.Redis-master.zip\ServiceStack.Redis-master\build\release\MonoDevelop
Time of Update: 2015-04-17
標籤:jedis redis subscribe publish 發布package com.chiwei.redis;import java.io.BufferedReader;import java.io.InputStreamReader;import org.slf4j.Logger;import
Time of Update: 2015-04-16
標籤:jedis redis rediscluster 非叢集環境下package com.chiwei.redis;import java.util.ArrayList;import java.util.List;import org.junit.Test;import redis.clients.jedis.Jedis;import
Time of Update: 2015-04-24
Redis無法啟動You may fix this problem by either reducing the size of the Redis heap with the,redisreducing Redis無法啟動 今天在啟動Redis時提示以下錯: C:\Java\redis2817>redis-server.exe redis.windows.conf [5268] 23 Apr 11:45:22.696 # The Windows version of