Redis Source Installation

Source: Internet
Author: User
Tags redis version

Download the Redis source package to/opt/and rename it to Redis, or you can download it directly from the official website to the server installation directory.

[Email protected]:/opt/redis/logs# cd/opt/

[Email protected]:/opt# ls

install_saltminion.sh install_zabbixagent.sh nimsoft redis redis-3.2.1.tar.gz zabbix-release_2.4-1+wheezy_ All.deb Zeus

[Email protected]:/opt#

Create the necessary file directories

[email protected]:/opt/redis# cd/opt/redis/;mkdir {Conf,data,logs,bin,pids}

[Email protected]:/opt/redis# ls

00-releasenotes BUGS contributing Data INSTALL Makefile readme.md runtest runtest-sentinel src utils

Bin conf COPYING deps logs MANIFESTO redis.conf runtest-cluster sentinel.conf tests

[Email protected]:/opt/redis#

Execute make and copy executable file to/opt/redis/bin directory

[Email protected]:/opt/redis# make

[Email protected]:/opt/redis# CP src/{redis-cli,redis-server,redis-sentinel,redis-check-rdb,redis-check-aof}. /bin-rp

[Email protected]:/opt/redis# ls bin/

Redis-check-aof Redis-check-rdb redis-cli Redis-sentinel redis-server

[Email protected]:/opt/redis#

Execute the installation script

[Email protected]:/opt/redis/utils#./install_server.sh

Welcome to the Redis service installer

This script would help you easily set up a running Redis server

Please select the Redis port for this instance: [6379]

Selecting default:6379

Please select the redis config file name [/etc/redis/6379.conf]/opt/redis/conf/6379.conf

Please select the Redis log file name [/var/log/redis_6379.log]/opt/redis/logs/redis_6379.log

Please select the data directory for this instance [/var/lib/redis/6379]/opt/redis/data

Please select the Redis executable path []/opt/redis/bin/redis-server

Selected Config:

port:6379

Config File:/opt/redis/conf/6379.conf

Log File:/opt/redis/logs/redis_6379.log

Data dir:/opt/redis/data

Executable:/opt/redis/bin/redis-server

Cli executable:/OPT/REDIS/BIN/REDIS-CLI

Is this OK? Then press ENTER to go on or ctrl-c to abort.

copied/tmp/6379.conf =/etc/init.d/redis_6379

Installing service ...

Update-rc.d:using Dependency based boot sequencing

Insserv:warning:script ' K01apf ' missing LSB tags and overrides

Insserv:warning:script ' APF ' missing LSB tags and overrides

success!

Starting Redis Server ...

Installation successful!

[Email protected]:/opt/redis/utils#/etc/init.d/redis_6379 Stop

Stopping ...

Redis stopped

[Email protected]:/opt/redis/utils#

Start and view logs

2571:m Jul 17:36:51.448 # warning:the TCP Backlog setting of 511 cannot be enforced BECAUSE/PROC/SYS/NET/CORE/SOMAXCO NN is set to the lower value of 128.

2571:m Jul 17:36:51.448 # Server started, Redis version 3.2.1

2571:m Jul 17:36:51.448 # WARNING Overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add ' vm.overcommit_memory = 1 ' to/etc/sysctl.conf

And then reboot or run the command ' Sysctl Vm.overcommit_memory=1 ' for this to take effect.

2571:m 17:36:51.449 # WARNING You has Transparent Huge Pages (THP) support for enabled in your kernel. This would create latency and memory usage issues with Redis. To fix this issue run

The command ' echo never >/sys/kernel/mm/transparent_hugepage/enabled ' as root, and add it to your/etc/rc.local in Ord Er to retain the setting after a reboot. Redis must is restarted after

THP is disabled.

Modify system parameters to resolve Redis boot warning

Echo 511 >/proc/sys/net/core/somaxconn

echo "vm.overcommit_memory = 1" >>/etc/sysctl.conf

echo Never >/sys/kernel/mm/transparent_hugepage/enabled


This article is from the "Linux Systems" blog, so be sure to keep this source http://rovkxu.blog.51cto.com/4358086/1834844

Redis Source Installation

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.