Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Server \ Redis is installed and set up Ubuntu 14.04 from the environment under the main ssdb     - Spring loaded container finishes executing a method (Programming)

- AWR Report (Database)

- Linux system security settings (Linux)

- Oracle database online redo logs are several methods of recovery of deleted (Database)

- PL / SQL -> UTL_FILE use presentation package (Database)

- Getting Started with Linux system to learn: how to check memory usage of Linux (Linux)

- Object-C in the preparation of multi-parameter function parameter is omitted (Programming)

- Getting Started with Linux system to learn: how to check in a package is installed on Ubuntu (Linux)

- How to create a new file system / partitions under Linux terminal (Linux)

- Linux disk management practices (Linux)

- CentOS 6 Install Linux kernel source (Linux)

- Quagga use authentication on strengthening BGP session security (Linux)

- 10 practical Java programming technology (Programming)

- using the ssh command to check the socket / Network Connections (Linux)

- Linux system on a virtual machine to access the Internet (Linux)

- Linux system performance and usage activity monitoring tools -Sysstat (Linux)

- Generate two-dimensional code parsing code Java (Programming)

- Into the Java keyword instanceof (Programming)

- SVN hook code set to synchronize Web directory (Server)

- Oracle Database Performance Optimization of memory disk (Database)

  Redis is installed and set up Ubuntu 14.04 from the environment under the main ssdb
  Add Date : 2018-11-21      
  Exposure at work to redis, Redis is a very efficient key-value database, widely used in the project, but it is obvious shortcomings redis for memory processing in the project at the beginning of the line, you must memory planning and reasonable, otherwise memory is prone to burst phenomenon, generally more reasonable amount of memory for the computer's physical memory 3/5.

redis provides a variety of data types, I often use a string, hash, list, set, sorted set, to meet the basic requirements of the project for the data type. We are using redis Java client, providing a series of commands for redis corresponding api. redis persistence provides a variety of strategies, but we do not have the persistence, under their own research, AOF is the most reliable way of feeling, principle and mysql binary log is very similar to the operation information is recorded written document, to read the log from the server and perform operations.

In the usual network development you may often need to adjust the data storage details, so if the previous data is still resident in memory, cause a lot of features not work properly, so after adjustment details, you need to redis database flushdb operation.

redis and ssdb very suitable for use in certain scenarios, such as some data can only remain in the database for 2 minutes, similar to the YY channel T person, after fixing a few minutes to come in, you can use the command setex key seconds value, then determine whether the expired You can exists key command.

redis commonly used commands website: http: //redis.readthedocs.org/en/latest/ covers redis command and demo.

Before take ssdb said redis, because ssdb very good compatibility of the redis api. Redis is a good substitute.

ssdb relative to redis there is a lot of advantages: redis 100 times the capacity of a database that can store the amount of billions of data. Redis relatively speaking, occupy very little memory. So he is to download the ssdb, the following are ssdb build process.
Environment: Ubuntu 14.04

Virtual machine A:



My two virtual machines are respectively mounted on different physical machines, but are used in a bridging mode, ip ip addresses are in the same segment.

Online are installed under ssdb in two virtual machines, respectively.

wget --no-check-certificate https://github.com/ideawu/ssdb/archive/master.zip

unzip master

cd ssdb-master


sudo make install

These can be found in ssdb official website, http: //www.ideawu.com/ssdb/zh_cn/.

ssdb from the main building is actually very simple, you just need to find ssdb.conf in two virtual machines ssdb installation directory.

sudo vi ssdb.conf

ip modify server virtual machine under the default IP address.

Virtual Machine A:



port: 8888 // I did not change the port, use the default

Virtual machine B:



port: 8888

This is the basic configuration.

Now as long as the basis for the next ssdb.conf A Configuration:



# To identify a master even if it moved (ip, port changed)

# If set to empty or not defined, ip: port will be used.

id: svc_2

# Sync | mirror, default is sync

type: sync


port: 8888

Note: In the above configuration, do not use the spacebar to use tab.

You can now start the ssdb.

./ssdb-server ssdb.conf

Then you can use the command line tools provided ssdb to operate.

Virtual machine A: ./ssdb-cli -h -p 8888

VM B: ./ssdb-cli -h -p 8888
- Linux installed Cisco Packet Tracer (Linux)
- In the case of using cgroups Ubuntu 14.04 and Docker (Linux)
- The Linux OOM Terminator (Server)
- Android design patterns - state mode (Programming)
- VSFTPD Security (Linux)
- Install Kali Linux via PXE network (Linux)
- VMware 8 installation configuration Win7, CentOS-7 Wizard (Linux)
- About ORA-02391 solution (Database)
- Python console achieve progress bar (Programming)
- SSH configuration under Linux (Linux)
- Learning MySQL data types (Database)
- Rails project prepared some tips small experience (Linux)
- Getting Started with Linux: Learn how to upgrade Docker in Ubuntu (Server)
- 10 important Linux ps command combat (Linux)
- Linux user login and IP restrictions (Linux)
- Distributed File System FastDFS deployment (Server)
- Learning OpenCV: (VS2010-openCV2.4.3-win7 configuration instructions) (Linux)
- Oracle 11g dataguard main library backup and recovery to the test environment in one database error (Database)
- Java implementation chain store binary tree (Programming)
- SQL Server automatic backup script (Database)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.