Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Rapid Construction of redis single Point Database

2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Redis installation and configuration 1. Environment:

1. System version

[root@c700001 ~] # cat / etc/redhat-release CentOS Linux release 7.4.1708 (Core) [root@c700001 ~] # cat / proc/version Linux version 3.10.0-693.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC)) # 1 SMP Tue Aug 22 21:09:27 UTC 2017

2.redis version

Redis-4.0.10.tar.gz

Second, redis installation 1. Download and extract wget http://download.redis.io/releases/redis-4.0.10.tar.gztar-xf redis-4.0.10.tar.gz # unzipped installation package 2. Compile and install cd redis-4.0.10/make MALLOC=libc vault 1 # compile make PREFIX=/hao/redis install # install binaries. / utils/install_server.sh # install configuration files, interactively prompt for # 1. Port 637 # 2. Configuration file / hao/redis/conf/6379.conf# 3. Log file / log/redis/redis_6379.log# 4. Data directory / data/redis/6379# 5. Press enter to complete the installation of the installed redis executable file redis-server / hao/redis/bin/redis-server#. After installation, the service script will be copied to / etc/init and service # # can also be run non-interactively. Install the configuration file REDIS_PORT=1234\ REDIS_CONFIG_FILE=/hao/redis/conf/1234.conf\ REDIS_LOG_FILE=/log/redis/redis_1234.log\ REDIS_DATA_DIR=/data/redis/1234\ REDIS_EXECUTABLE=/hao/redis/bin/redis-server. / utils/install_server.sh

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.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report