In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "how to install Redis database under Linux and Mac". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn how to install Redis database under Linux and Mac.
Mac install Redisbrew install redis
Install Redis
Brew install redis
Start the redis server
Brew services start redis
Or
Redis-server / usr/local/etc/redis.conf
Source code installation
The redis installed using brew is not the latest version. You can download the source code to install the latest version.
Download the latest version of http://redis.io/ from the official website
Put it to / usr/local after download
Sudo mv redis-4.0.9.tar.gz / usr/local/
-perform the installation process
Sudo tar-zxf redis-4.0.9.tar.gz
Cd redis-4.0.9
Sudo make test
Sudo make install
Centos yum install Redis
The redis installed by direct yum is not the latest version
Yum install redis
If you want to install the latest redis, you need to install the software source of Remi, official website: http://rpms.famillecollet.com/
Yum install-y http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
You can then install the latest version of redis using the following command
Yum-enablerepo=remi install redis
Once installed, you can start the redis service using the following command
Service redis start
Or
Systemctl start redis
After redis is installed, let's take a look at the relevant files created during redis installation, as follows:
Rpm-qa | grep redis
Rpm-ql redis
View the redis version:
Redis-cli-version
Set to boot automatically:
Chkconfig redis on
Or
Systemctl enable redis.service
Redis enables remote login connection, and redis can only be accessed by localhost by default, so you need to enable remote login. The solution is as follows:
Change bind 127.0.0.1 to bind 0.0.0.0 in the redis configuration file / etc/redis.conf, and then configure the firewall to open port 6379
Connection redis test:
Redis-cli
Thank you for your reading, the above is the content of "how to install Redis database under Linux and Mac". After the study of this article, I believe you have a deeper understanding of how to install Redis database under Linux and Mac. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.