In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Search redis
Docker search redis
Download the latest redis
Docker pull redis:latest
Download the redis configuration file
Wget https://raw.githubusercontent.com/antirez/redis/4.0/redis.conf-O conf/redis.conf
Start redis
# create and run a container named myredis docker run\-p 6379PWD/conf/redis.conf:/etc/redis/redis.conf 6379\-v $PWD/data:/data\-v $PWD/conf/redis.conf:/etc/redis/redis.conf\-- privileged=true\-- name myredis\-d redis redis-server / etc/redis/redis.conf# command decompose docker run\-p 6379PWD/data:/data 6379\ # Port mapping host: container-v $PWD/data:/data:rw\ # mapping The data directory rw is read / write-v $PWD/conf/redis.conf:/etc/redis/redis.conf:ro\ # Mount the configuration file ro is readonly--privileged=true\ # give some permissions-name myredis\ # give the container a name-d redis redis-server / etc/redis/redis.conf # deamon run the service using the specified configuration file
View active containers
# View active container docker ps# if there is no myredis description about startup failure, view error log docker logs myredis#, view myredis ip mount port mapping, docker inspect myredis# view myredis port mapping docker port myredisIP, view docker inspect e60da5191243 | grep-I add external access redis container service docker exec-it 970193d87c01 redis-cli-h 172.17.10.12
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.