In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
The content of install.sls is:
Redis-install:
File.managed:
-name: / usr/local/src/redis-3.2.0.tar.gz
-source: salt://redis/files/redis-3.2.0.tar.gz
-user: root
-group: root
-mode: 755
Cmd.run:
-name: cd / usr/local/src & & tar xf redis-3.2.0.tar.gz & & cd redis-3.2.0 & & make PREFIX=/usr/local/redis install
-unless: test-d / usr/local/redis
-require:
-file: redis-install
Redis-config:
Cmd.run:
-name: mkdir / etc/redis
File.managed:
-name: / etc/redis/6379.conf
-source: salt://redis/files/6379.conf
-user: root
-group: root
-mode: 644
Redis-service:
File.managed:
-name: / etc/init.d/redis
-source: salt://redis/files/redis.init
-user: root
-group: root
-mode: 644
Cmd.run:
-name: chkconfig-add redis & & chkconfig redis on
-unless: chkconfig-- list | grep redis
Service.running:
-name: redis
-enable: True
-watch:// must think carefully about this step in a production environment, because redis is an in-memory cache
-file: the function of redis-config//watch is to restart automatically when a file changes.
-require:
-cmd: redis-install
-cmd: redis-service
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.