RabbitMQ安装配置

摘要:安装1.      安装erlang虚拟机Rabbitmq基于erlang语言开发,所有需要安装erlang虚拟机#wget  http://www.erlang.org/download/otp_src_R15B01.tar.gz#tar zxvf otp_src_R15B01.tar.gz&& cdotp_src_R15B01#./configure &&make install2.      安装rabbitmqserver#wget http://www.rabbitmq.c

 FastDFS安装配置-client.conf

摘要:# is this config file disabled# false for enabled# true for disableddisabled=false# bind an address of this host# empty for bind all addresses of this hostbind_addr=# the tracker server portport=22122# connect timeout in seconds# default value is 30sconnect_timeout=30# network timeout in seconds# default value is 30snetwork_timeout=60# the base pat

 FastDFS安装配置-storage.conf

摘要:# is this config file disabled# false for enabled# true for disableddisabled=false# the name of the group this storage server belongs to## comment or remove this item for fetching from tracker server,# in this case, use_storage_id must set to true in tracker.conf,# and storage_ids.conf must be configed correctly.group_name=group1# bind an address o

 FastDFS安装配置-mod_fastdfs.conf

摘要:# connect timeout in seconds# default value is 30sconnect_timeout=2# network recv and send timeout in seconds# default value is 30snetwork_timeout=30# the base path to store log filesbase_path=/tmp# if load FastDFS parameters from tracker server# since V1.12# default value is falseload_fdfs_parameters_from_tracker=true# storage sync file max delay

 FastDFS安装配置

摘要:http://github.com/happyfish100源码文件 所有的安装都是一个安装包,只是启动的服务不同而已 服务端安装配置:从github上下载lib库安装:https://github.com/happyfish100/libfastcommon.git安装依赖包:cd /usr/local/src/fastdfs# unzip libfastcommon-master.zip #./make.sh#./make.sh install 从gibhub上下载 安装包:(每台安装都一样)[root@node120

 redis集群

摘要:redis集群三种方案:客户端分片代理Proxy(twemproxy)Redis Cluster(没有中心节点)Codis(比较好) 创建redis集群(自动分片,在集群中)参考:http://redisdoc.com/topic/cluster-tutorial.html#id2[root@node120 opt]# mkdir `seq 7001 7008`[root@node120 opt]# ls7001  7002  7003 7004  7005  7006 7007  7008  rh[root@node120 o

 redis主从

摘要:redis主从配置:原理(增量同步):从服务器-------发送sync到 ------>                        主服务器----BGSAVE--->                    

 redis持久化-AOF

摘要:AOF将所有的命令写入文件中,相关于MYSQL的BINLOG文件运行原理:从主进程中fork一个子进程,这个子进程来将执行过的命令写入一个文件中可以通过压缩算法来减少存储文件的大小 打开AOF功能:vim /etc/redis326/6379.confvim 6379.conf  596 appendonlyyes 597  598 # The nameof the append only file (default: "appendonly.aof") 599 &

  redis持久化-RDB默认

摘要:缺点:每次保存都要fork一个子进程,如果数据量大小,会有延时恢复数据的时间短 优点:备份方便 打开RDB功能:vim /etc/redis326/6379.confvim 6379.conf#以下三条是或的关系 204 save 900 1             #在900秒内有1个key发生变化,就做一次快照 205 save 300 10    &

 Redis 消息订阅

摘要:订阅192.168.2.120:6379> SUBSCRIBE channel             Reading messages... (press Ctrl-C to quit)1) "subscribe"2) "channel"3) (integer) 1 发送信息:192.168.2.120:6379> PUBLISH channel rscpass(integer) 1  接收到信息:192.168.2.120:6379> SUBSCRIBE ch
分页:« 24 25 26 27 28 29 30 31 32 33 »
Powered by AKCMS