Time of Update: 2017-01-13
redis作為一個高速資料庫,在互連網上,必須有對應的安全機制來進行保護。1.比較安全的辦法是採用綁定IP的方式來進行控制。 代碼如下複製代碼 bind 127.0.0.1 表示僅僅允許通過127.0.0.1這個ip地址進行訪問。那麼其實只有自己才能訪問自己了,其他機器都無法訪問他。這段命令要去redis.conf裡修改。這裡請注意我們常用的啟動方式src/redis-server改為 代碼如下複製代碼 src/redis-server
Time of Update: 2016-05-18
標籤:1. 一個簡單的例子1.1. 建立表: create table t(s1 integer);1.2. 觸發器:delimiter |create trigger t_trigger before insert on t for each row begin set @x = "hello
Time of Update: 2016-04-13
標籤:一、測試環境在Ubuntu kylin 14.04 64bit已經安裝Mysql、Redis、php、lib_mysqludf_json.so、Gearman。 點擊這裡查看測試資料庫及表參考 本文也有些基本操作,在之前文章裡有介紹。1、安裝安裝gearman-mysql-udfapt-get install libgearman-devwget
Time of Update: 2014-12-23
標籤:在寫celery背景工作時,使用redis作為broker,但是啟用worker時一直報錯,[2014-12-23 14:50:16,056: ERROR/MainProcess] consumer: Cannot connect to redis://localhost:6379/0: Error 111 connecting to localhost:6379. Connection refused.. Trying again in 2.00 seconds...
Time of Update: 2016-10-25
標籤:ase class 技術分享 如何 blank 分享 sop 執行 log Redis下載:https://github.com/MSOpenTech/redis/releases我是直接
Time of Update: 2016-11-30
標籤:address running because localhost specified 早上一個應用日誌列印報錯資訊:650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/8A/E5/wKiom1g-cNXwSl0FAAAlafexExk279.png"
Time of Update: 2015-10-22
標籤:Redis 啟動警告錯誤解決啟動錯誤1.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 /etc/sysctl.conf and then reboot or run the command ‘sysctl vm.overcommit_memory=1‘
Time of Update: 2016-06-05
標籤:原創http://blog.csdn.net/caiwenfeng_for_23/article/details/45666831 PS:截止到2015-05-12前是不支援Tomcat8的,詳情見官網:https://github.com/jcoleman/tomcat-redis-session-manager前提:你已經部署了Redis,尚未學會的,可以移步這裡:http://blog.csdn.net/caiwenfeng_for_23/article/details/4
Time of Update: 2016-06-05
標籤:1、cas ticket統一儲存 做cas叢集首先需要將ticket拿出來,做統一儲存,以便每個節點訪問到的資料一致。官方提供基於memcached的方案,由於項目需要,需要做計入redis,根據官方例子改了一個基於redis版本的。public class RedisTicketRegistry extends AbstractDistributedTicketRegistry{ @NotNull private final RedisTemplate<String,
Time of Update: 2016-06-03
標籤:1. keysredis本質上一個key-value db,所以我們首先來看看他的key.首先key也是字串類型,但是key中不能包括邊界字元由於key不是binary safe的字串,所以像"my key"和"mykey\n"這樣包含空格和換行的key是不允許的順便說一下在redis內部並不限制使用binary字元,這是redis協議限制的。"\r\n"在協議格式中會作為特殊字元。redis
Time of Update: 2016-05-06
標籤:redis 持久化一、redis簡介二、redis安裝三、redis設定檔詳解四、redis持久化詳解1.redis 簡介Redis 是一個開源(BSD許可)的,記憶體中的資料結構儲存系統,它可以用作資料庫、緩衝和訊息中介軟體。 它支援多種類型的資料結構,如 字串(strings), 散列(hashes), 列表(lists), 集合(sets), 有序集合(sorted sets) 與範圍查詢, bitmaps, hyperloglogs 和 地理空間(geospatial)
Time of Update: 2016-05-03
標籤:Redis官方是不支援windows的,只是 Microsoft Open Tech group 在 GitHub上開發了一個Win64的版本,項目地址是:https://github.com/MSOpenTech/redis/releases 下載後直接解壓,然後用redis-server redis.windows.conf 啟動,可以將其儲存為檔案 startup.bat ;
Time of Update: 2015-06-21
標籤:redis 配置 redis配置 叢集 主從 Web程式猿部落格:http://blog.csdn.net/thinkercode如果是一個專業的 DBA, 那麼執行個體啟動時會加很多的參數以便使系統啟動並執行非常穩定, 這樣就可能會在啟動時在 Redis 後面加一個參數,以指定設定檔的路徑,就象 mysql
Time of Update: 2016-03-04
標籤:Reference:
Time of Update: 2016-02-05
標籤:1. Redis中散列函數的實現:Redis針對整數key和字串key,採用了不同的散列函數對於整數key,redis使用了 Thomas Wang的 32 bit Mix Function,實現了dict.c/dictIntHashFunction函數: 1 /* Thomas Wang‘s 32 bit Mix Function */ 2 unsigned int dictIntHashFunction(unsigned int key) 3 { 4 key += ~
Time of Update: 2016-01-13
標籤:redis、redis設定檔詳解、redis設定檔./redis-server /opt/redis/redis_6379.conf#注意為了讀取設定檔,必須使用開始與檔案路徑作為第一個參數include /opt/redis/redis-common.conf#可以擴充定製設定檔。(如果需要該參數應該放置於最後一行)daemonize yes#是否以後台進程運行,預設為nopidfile /opt/redis/run/redis_6379.pid#
Time of Update: 2014-12-20
標籤:tomcat7session redis1,安裝redis並配置和啟動, tomcat也做相就的下載,其他地方都有,可以在其他地方查閱。2, 擷取tomcat依賴包: Tomcat使用
Time of Update: 2014-09-26
標籤:centos redis linux 一:安裝Redis1、下載源碼,解壓縮後編譯源碼# wget http://download.redis.io/releases/redis-2.8.3.tar.gz# tar xzf redis-2.8.3.tar.gz# cd redis-2.8.3#
Time of Update: 2014-09-24
標籤:style color ar strong 檔案 資料 sp on c 預設Redis程式安裝在/usr/local/redis目錄下;
Time of Update: 2014-08-13
標籤:redisredis命令收集 Redis命令總結