Last active
February 16, 2024 16:11
-
-
Save victusfate/d4723b26ee615e6b80e9bfa00dc8a28a to your computer and use it in GitHub Desktop.
install redis-inventory and go
This file contains hidden or 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
trying https://github.com/obukhov/redis-inventory first | |
install go 1.15 | |
https://www.5gfundamental.com/2021/04/install-go-lang-latest-version-1155-in.html | |
git clone https://github.com/obukhov/redis-inventory | |
sudo wget https://golang.org/dl/go1.15.5.linux-amd64.tar.gz | |
sudo tar -C /usr/local -xzf go1.15.5.linux-amd64.tar.gz | |
in .bashrc add it to the path | |
export PATH=$PATH:/usr/local/go/bin | |
check version | |
go version | |
then | |
cd redis-inventory | |
go build -o redis-inventory main.go | |
cp redis-inventory /usr/local/bin/ | |
redis-inventory inventory localhost:6379 --output=table --output-params="padSpaces=2&depth=2&human=1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment