Created
June 30, 2017 09:53
-
-
Save johnnian/3860518d74a588aa31be0da30ee17c9c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#MacOS | |
kill -9 $(ps -ef|grep redis |awk '$0 !~/grep/ {print $2}' |tr -s '\n' ' ') | |
#Linux | |
ps aux | grep "redis" | grep -v grep | cut -c 9-15 | xargs kill -9 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment