In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Compile and install redis:
Download the redis source code package for the latest release version:
Http://download.redis.io/releases/
Compile the installation command:
Official installation command:
Https://redis.io/download
# pwd
/ usr/local/src
# tar xf redis-5.0.3.tar.gz
# cd redis-5.0.3
# make PREFIX=/apps/redis install # specify the redis installation directory
# ll / usr/local/redis/total 0
Drwxr-xr-x 2 root root 134 Dec 13 09:21 bin
# mkdir / apps/redis/ {etc,logs,data,run} # create directories for configuration files, logs, data, etc.
# cp / usr/local/src/redis-5.0.3/redis.conf / apps/redis/etc/
Start redis at the front desk:
# / apps/redis/bin/redis-server / apps/redis/etc/redis.conf
Edit the redis service startup script:
[root@s1 ~] # cat / usr/lib/systemd/system/redis.service
[Unit]
Description=Redis persistent key-value database
After=network.target
After=network-online.target
Wants=network-online.target
[Service]
# ExecStart=/usr/bin/redis-server / etc/redis.conf-- supervised systemd
ExecStart=/apps/redis/bin/redis-server / apps/redis/etc/redis.conf-- supervised systemd
ExecReload=/bin/kill-s HUP $MAINPID
ExecStop=/bin/kill-s QUIT $MAINPID
Type=notify
User=redis
Group=redis
RuntimeDirectory=redisRuntimeDirectoryMode=0755
[Install]
WantedBy=multi-user.target
Create redis user and data directories:
# groupadd-g 1000 redis & & useradd-u 1000-g 1000 redis-s / sbin/nologin
# mkdir-pv / apps/redis/ {etc,logs,data,run}
# chown redis.redis-R / apps/redis
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.