Skip to content

Instantly share code, notes, and snippets.

@victusfate
Last active February 16, 2024 16:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save victusfate/d4723b26ee615e6b80e9bfa00dc8a28a to your computer and use it in GitHub Desktop.
Save victusfate/d4723b26ee615e6b80e9bfa00dc8a28a to your computer and use it in GitHub Desktop.
install redis-inventory and go
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