Linux Virtual Machine Redis installation

Source: Internet
Author: User
Tags download redis

1, download Redis
wget http://download.redis.io/releases/redis-3.0.2.tar.gz
2, installing Redis
Add compression
Tar zxvf redis-3.0.2.tar.gz
Go to unzip directory, compile:
CD redis-3.0.2
Make
To copy a Redis configuration file:
CP redis.conf/etc/
Modify the corresponding redis.conf file to change the database file storage location.

Cd/etc #进入etc目录
VI redis.conf #打开配置文件
Change the corresponding database save location: dir./
To modify a firewall configuration file:
Vi/etc/sysconfig/iptables
To join the port configuration:
-A input-m state–state new-m tcp-p tcp–dport 6379-j ACCEPT
Reload the firewall configuration.
Service Iptables Restart
Go to redis src directory and start Redis:
Redis-server/etc/redis.conf
To view the Redis process:

Ps-ef | grep Redis

3. Copy the Redis link.
CP Redis-benchmark REDIS-CLI redis-server/usr/bin/

Linux Virtual Machine Redis 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.