`
文章列表

redis主从切换配置

redis安装:wget http://download.redis.io/releases/redis-2.8.2.tar.gz redis配置,实现主从自动切换. 例如: 两台redis服务器,1、10.30.150.101:6379 2、10.30.150.102:6379 我们的目标是配置1为主,2为从,并且实现当1服务宕机之后,2会自动切换成主,可以进行读写操作。 常用命令: 启动redis: ./redis-server ../redis.conf & 启动sentinel: ./redis-sentinel ../sentinel.conf --sentinel 启动red ...
application-bean.xml: <!-- ************************************************************************************* Jedis cache ************************************************************************************* --> <util:properties id="redisProps" location="#{T(java.la ...
ElasticSearch是一个基于Lucene的搜索服务器。它提供了一个分布式多用户能力的全文搜索引擎,基于RESTful web接口。Elasticsearch java简单示例: import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.elasticsearch.action.delete.DeleteResponse; import org.elasticsearch.action.index.Index ...

图灵机器人

账户:540245405@qq.com 接口调用示例: http://www.tuling123.com/openapi/api?key=5f4220b461041aa83022ffdd8af873ff&info=你好
package com.meiparty.controller; import java.io.IOException; import java.io.PrintWriter; import java.io.UnsupportedEncodingException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.log4j.Logger; import org.springframework.st ...

setting

setting
org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet successfully received from the server was 6,388 milliseconds ago. ...

jdbc配置

    博客分类:
  • jdbc
driver=com.mysql.jdbc.Driver url=jdbc:mysql://qdm164748136.my3w.com:3306/qdm164748136_db?characterEncoding=UTF-8&autoReconnect=true username=qdm164748136 password=qihao123 #定义初始连接数 initialSize=1 #定义最大连接数 maxActive=200 #定义最大空闲 maxIdle=20 #定义最小空闲 minIdle=1 #定义最长等待时间 maxWait=60000

pom

我的pom文件

网络参数

@echo 您的用户名是:%USERDOMAIN%\%username%>"%userprofile%\网络参数.txt" @echo 您的机器名是:%COMPUTERNAME%>>"%userprofile%\网络参数.txt" @echo ___________________>>"%userprofile%\网络参数.txt" @echo 您的IP地址参数如下:>>"%userprofile%\网络参数.txt" @ipconfig>>" ...

数据库设计备注

http://www.cnblogs.com/mmmjiang13/archive/2011/04/21/1983079.html http://www.cnblogs.com/mmmjiang13/archive/2010/11/04/1868609.html
Global site tag (gtag.js) - Google Analytics