Installing Redis under Linux

Source: Internet
Author: User

1. Download and install
wget http://download.redis.io/releases/redis-4.0.11.tar.gz-zxvf redis-4.0.11. tar.gz CD Redis-4.0.11 make cd src//usr/local//usr/local//usr/local/  Redis installation complete ....
2. Front-Start
cd/usr/local/Redis. /redis-server
3. Background boot
Modify configuration file redis.conf  daemonize no  //No to change to Yes
./redis-Server redis.conf
-A | grep redis 21595? 00:00:00 Redis-server
4. Client Operations
[[email protected] redis]#./redis-127.0.0.1:6379>127.0.0.1:6379> get name" Xiaoming "
5.redis-cli remote shutdown redis-server  
Redis-cli-h 127.0.0.1-p 6379 shutdown
6. Set the password
Modify Redis.conf  
Requirepass Password
. /redis-cli-h 127.0.0.1-p 6379-a Password

Startup error:

Warning:the TCP Backlog setting of 511 cannot be enforced because/proc/sys/net/core/somaxconn are set to the lower value of. Workaround:add net.core.somaxconn= 1024x768-P to the ETC/sysctl.conf fileto permanently eliminate this warning
 This script.
WORKAROUND: # yum install m4# yum install autoconf






Installing Redis under Linux

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.