Straight to the topic, the Java Connection virtual machine error, the code is as follows:
public class Testping {public static void Main (string[] args) {Jedis Jedis = new Jedis ("192.168.201.128", 6379);System.out.println (Jedis.ping ());}}
To run the error, the console information is as follows:
Exception in thread "main" redis.clients.jedis.exceptions.JedisConnectionException:java.net.SocketTimeoutException : Connect timed out
For reference to so
/users/sherry/workpath/git/web/redisdemo/src/main/java/org/zln/utils/jedisutils.java Packageorg.zln.utils;Importorg.apache.commons.lang3.StringUtils;ImportOrg.apache.logging.log4j.LogManager;ImportOrg.apache.logging.log4j.Logger;ImportRedis.clients.jedis.Jedis;ImportRedis.clients.jedis.JedisPool;ImportRedis.clients.jedis.JedisPoolConfig;/*** Created by Sherry on 16/9/13.*/ Public classJedisutils {Private StaticLogger Logger =Logmanager.getlogger (); P
Redis installation skippedFirst import the Jedis.jar package1. Connect to Redis ServiceWrite a simple program: package Com.fpc.Test; import Redis.clients.jedis.Jedis; public class Manipulateredis { public static void main (string[] args) {// Redis service to connect 10.0.20.251 Jedis Jedis = new Jedis ("10.0.20.251" ); // See if t
1. Jedis operation methods mainly include key, String, list, set, SortedList, hash, etc., refer to the blog: http://www.cnblogs.com/edisonfeng/p/3571870.html2. This article focuses on the comparison between Jedis and Memerche.2.1 Jedis is persistent with complex data manipulation types, including list, hash, etc., and the core of Jedis is multithreaded and supports slicing connection pool objects2.2 Memerche is a non-persistent memory database, only the basic operation of the key, value type, th
Basic Reference Novice Tutorial, Java download Direct installation, note that the file name and class name need to be consistent problem;Redis download later according to the Novice tutorial Linux installation, the way to compile and run OK;Java uses Redis to download the. jar, save it locally on a path, and then match
Dis jedis.set ("foo", "Bar" = Jedis.get ("foo" ); Jedis.zadd ( "Sose", 0, "car"); Jedis.zadd ("Sose", 0, "bike" ); finally { // // When the program closes, you need to call the Close method Pool.destroy ();Set master/Slave distributionEnable synchronous replicationRedis is primarily built for master/slave distribution. This means that the "write" request must point to "master", and "master" will replicate the changed content to "slave" synchronously. The "read" request can (not be
With the growing popularity of the Java language, especially the close integration of Java and the Internet web, it has made a huge global success. The Java language, which is independent of platform, Object-oriented, distributed, multiple clues and perfect security mechanism, has become a good development platform and operating environment in modern information
Because of the project needs, recently learned the use of RedisRedis installation in a server CentOS environment is relatively straightforward.If you want to install on Windows, you can refer to someone else's articlehttp://blog.csdn.net/renfufei/article/details/38474435Redis login, no password is required by default, port number is 6379 by defaultUse visualizer Redis-desktop-manager to view data under WindowsRedis supports the following types of data
Java Operation Redis Simple Jedis instance PackageCom.weixuan.utils;ImportRedis.clients.jedis.Jedis;/** * Create by Fengtang * 2015/7/30 * Javaredis * * Public Final class jedisutils { /** * Create a Jedis link. * * @return Return the currently created Redis link object */ Public StaticJedisgetjedisconnection() {Jedis Jedis =NewJedis ("localhost",6379);re
Absrtact: Jeesz currently includes the following module projects, backend system management system, restful standalone service system, scheduler timing scheduling system, Content Management (CMS) system, online Office (OA) system, my Todo (Task service), my Favorites (bookmark service). Background management system includes enterprise organization structure (user management, organization management, regional management), menu management, role Rights Management, dictionary management and other fu
Absrtact: Jeesz currently includes the following module projects, backend system management system, restful standalone service system, scheduler timing scheduling system, Content Management (CMS) system, online Office (OA) system, my Todo (Task service), my Favorites (bookmark service). Background management system includes enterprise organization structure (user management, organization management, regional management), menu management, role Rights Management, dictionary management and other fu
Jeesz is a distributed framework that provides modular, service-based, hot-swappable ideas for project-based Java EE Rapid development platforms with high package security.Jeesz itself integrates Dubbo service control, zookeeper Registration Center, Redis distributed cache technology, FASTDFS Distributed File system, ACTIVEMQ asynchronous message middleware, Nginx load balancing and other distributed techno
Big Data Architecture Development mining analysis Hadoop HBase Hive Storm Spark Flume ZooKeeper Kafka Redis MongoDB Java cloud computing machine learning video tutorial, flumekafkastorm
Training big data architecture development, mining and analysis!
From basic to advanced, one-on-one training! Full technical guidance! [Technical QQ: 2937765541]
Get the big data video tutorial and training address
Byt
Turn from: http://www.cnblogs.com/edisonfeng/p/3571870.html
One, server-side installation
1, download
Https://github.com/MSOpenTech/redis
You can see the current downloadable version: redis2.6
Download Windows platform files:
After decompression, select the version that corresponds to the current 64-bit Win7 system:
2, installation
1 after decompression, all files in the file will be copied to the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.