Install redis, php-redis, and centosredis in centos in Linux.
Source Address: http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm // This is centos 6
Install and enter the following command:
Step 1:
# Wget http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm# rpm-ivh epel-
Redis is only locally accessed by default after Ubuntu installation and requires additional IP access we need to modify the Redis configuration file1. Dpkg-l Redis-serverThis command we can see the Redis installed files in those directories2. We then modify the configuration
configuration. The specific steps are as follows:Use the VI editor to open the Linux Startup service configuration file/etc/rc. local, and add the following code to it:Shell code2/usr/local/redis-2.6.14/src/redis-server/etc/redis. confAfter editing, save and restart the system.Stop the Redis service:Shell code3src/
, assuming default start runlevel (s) for script 'haproxy'Insserv: Service network is missed in the runlevels 4 to use service redis_6379Successfully addedto runlevels 345!Starting Redis server...Installation successful!Register redis as a redis-server Service# Mv/etc/init. d/redis {_ 6379,-server}Test:# Service
Getting started with Redis configuration and C ++ in Ubuntu
Redis is a high-performance key-value database. The emergence of Redisedis largely compensates for the shortage of key/value storage such as memcached. In some cases, it can complement relational databases. It provides clients such as Java, C/C ++, C #, PHP, JavaScript, Perl, Object-C, Python, Ruby, and
redis at startup, we need to set redis to daemon background startup (if not set to background startup, the graphic interface will be stuck on a blank page after linux is started ), redis only has one startup parameter, which is the configuration file path of redis. The default configuration file
Install redis in Windows and redis in Windows
The following is a reference to the definition of apsaradb for redis:
Redis is a key-value storage system. Similar to Memcached, Memcached supports more storage value types, including string, list, set, and zset) and hash (hash t
How to install redis in Linux and redis in Linux
1. Download the source code, decompress it, and compile the source code ..
$ Wget http://download.redis.io/releases/redis-2.8.3.tar.gz$ tar xzf Co., redis-2.8.3.tar.gz $ cd redis
Redis Slow Query logEditing a configuration file/etc/redis.confFor the slow query log, you can set two parameters, one is the execution length, the unit is microseconds, and the other is the length of the slow query log. When a new command is written to the log, the oldest one is removed from the command log queue.Slowlog-log-slower-than 1000//unit MS, which indicates logging is slower than 1000msSlowlog-max-len 128//define log length, representing up
file.Note Bind 127.0.0.1 First, or you cannot connect to another IPDaemonizze no change to daemonize YesAppendOnly no change to appendonly YesOpen the comment here, then add the password for a long time.3. Turn off the firewallSystemctl Stop Firewalld.service #关闭防火墙Firewall-cmd--state #查看防火墙是否关闭 not running#这样window才可以调用linuxApplication in window:Running Redis in Linux, and window calls Redis in Linux1, fi
, which is convenient to use.Redis supports master-slave synchronization. Data can be synchronized from the primary server to any number of slave servers, from the server to the primary server that is associated with other slave servers. This enables Redis to perform single-layer tree replication. You can write to the data intentionally or unintentionally. Because of the full implementation of the publish/subscribe mechanism, you can subscribe to a ch
Installation Environment: centos6.5 64-bitPackages used: redis-2.8.19.tar.gz tcl8.6.3-src.tar.gzDownload link for package: http://downloads.sourceforge.net/tcl/tcl8.6.3-src.tar.gzHttp://download.redis.io/releases/redis-2.8.19.tar.gzThis installation of the directory/home/hadoop/redis for any directoryCode implementation:1, in
This article is reproduced from:Http://www.linuxdiyf.com/linux/22527.htmlRedis is an open source API that is written in ANSI C, supports the web, can be persisted in memory, key-value databases, and provides multiple languages. This document documents the steps to install Redis on Ubuntu 16.04.Redis defaults to the
Ubuntu used on Redis Database storage SessionID and implementation Session shared First part: Installation and configuration Redis Databaseinstallation Redis database server. See also:http://grainier.net/how-to-install-redis-in-
[Redis] install and test redis in centos-download software from taoshihan and run the wget xxx command. parameter: url
For example:
Wget http://download.redis.io/releases/redis-3.0.0.tar.gz
Decompress and run the tar command. parameters: zxvf z (gzip attribute), x (decompression), v (Display process), f (file name u
is helloworld.
Get word # according to the key value, the result is helloworld
Exists word # Check whether the key exists
Del word # Delete the current key
Expire word 10 # Set the expiration time for the corresponding key
Persist word # Remove the expiration time of the current key
Randomkey # Return a random key
Type datalist # Return Value Data type
Lpush datalist redis # insert data into redis to the s
; Set namedavid
OK
11. Disable the client
Redis-cli shutdown
12. Exceptions and Solutions
Exception 1:
Make [2]: cc: Command not found
Cause of exception: gcc Is Not Installed
Solution: yum install gcc-c ++
Exception 2:
Zmalloc. h: 51: 31: error: jemalloc/jemalloc. h: No such file or directory
Cause of exception: Some compilation dependencies or issues left behind by the original compilation
Solution: make
Vm_swap_file: Set the path of the swap file for virtual memory
Vm_max_momery: Set the maximum amount of physical memory that Redis will use when virtual memory is turned on, default is 0
Vm_page_size: Setting the size of virtual memory pages
Vm_pages: Set the total page number of the swap file
Vm_max_thrrads: Set the number of simultaneous threads used by VM IO
Apt Source mode installation:sudo apt-get
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.