当前位置:网站首页>Redis批量启停脚本
Redis批量启停脚本
2022-07-03 07:42:00 【老王笔记】
Redis多实例部署,往往单个机器中会部署多套Redis实例,对每个Redis停止活着开启较为耗费时间;特此编写批量启停脚本
#!/bin/bash
info="""
=======================
sh service.sh start
sh service.sh stop
======================
"""
start()
{
for x in `ls /export/data/redis/63*.conf`;do echo $x;/usr/local/bin/redis-server $x;done
echo "redis started"
}
stop()
{
ps -ef | grep redis-server | awk '{print $2}' | xargs kill -9
echo "redis stoped"
}
case $1 in
start)
start
;;
stop)
stop
;;
restart)
stop
sleep 3
start
;;
*)
echo $info
;;
esac运行效果如下:
边栏推荐
- Leetcode 213: looting II
- s7700设备如何清除console密码
- 华为交换机:配置telnet和ssh、web访问
- Shengsi mindspire is upgraded again, the ultimate innovation of deep scientific computing
- Mail sending of vertx
- Go language foundation ----- 03 ----- process control, function, value transfer, reference transfer, defer function
- Lucene hnsw merge optimization
- Go language foundation ------17 ----- channel creation, read-write, security shutdown, multiplexing select
- 研究显示乳腺癌细胞更容易在患者睡觉时进入血液
- Pat grade a 1029 median
猜你喜欢
![[mindspire paper presentation] summary of training skills in AAAI long tail problem](/img/34/9c9ec1b94edeecd4a3e7f20fdd8356.png)
[mindspire paper presentation] summary of training skills in AAAI long tail problem
![[coppeliasim4.3] C calls UR5 in the remoteapi control scenario](/img/ca/2f72ea3590c358a6c9884aaa1a1c33.png)
[coppeliasim4.3] C calls UR5 in the remoteapi control scenario

技术干货|昇思MindSpore NLP模型迁移之Roberta ——情感分析任务

Go language foundation ----- 11 ----- regular expression

Go language foundation ----- 15 ----- reflection

Go language foundation ----- 03 ----- process control, function, value transfer, reference transfer, defer function

Various postures of CS without online line

Partage de l'expérience du projet: mise en œuvre d'un pass optimisé pour la fusion IR de la couche mindstore

Paper learning -- Study on the similarity of water level time series of Xingzi station in Poyang Lake

項目經驗分享:實現一個昇思MindSpore 圖層 IR 融合優化 pass
随机推荐
Web router of vertx
Go language foundation ----- 04 ----- closure, array slice, map, package
Go language foundation ----- 19 ----- context usage principle, interface, derived context (the multiplexing of select can be better understood here)
技术干货|昇思MindSpore NLP模型迁移之Roberta ——情感分析任务
Grpc message sending of vertx
【MySQL 14】使用DBeaver工具远程备份及恢复MySQL数据库(Linux 环境)
TypeScript let与var的区别
Lombok cooperates with @slf4j and logback to realize logging
Professor Zhang Yang of the University of Michigan is employed as a visiting professor of Shanghai Jiaotong University, China (picture)
Introduction of novel RNA based cancer therapies
Leetcode 213: looting II
Rabbit MQ message sending of vertx
go语言-循环语句
Unity XR实现交互(抓取,移动旋转,传送,射击)-Pico
experiment.........
lucene scorer
PAT甲级 1027 Colors in Mars
PAT甲级 1032 Sharing
[mindspire paper presentation] summary of training skills in AAAI long tail problem
C2 several methods of merging VCF files