Skip to content

Instantly share code, notes, and snippets.

@khalilovcmd
Last active December 16, 2015 11:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save khalilovcmd/fbd759e7166ac37fb6b1 to your computer and use it in GitHub Desktop.
Save khalilovcmd/fbd759e7166ac37fb6b1 to your computer and use it in GitHub Desktop.
installing server density redis plugin on a linux machine (server density agent version 1)
# download sd-agent v1.4.1, then run .sh
wget https://raw.githubusercontent.com/serverdensity/sd-agent/master/install.sh
chmod +x install.sh
./install.sh -a xxxxxxx -k xxxxxxxxxxxxxxxxxxxxxxxxxxx
# python and pip need to be installed
pip install redis
# edit sd-agent config file
vi /etc/sd-agent/config.cfg
# add line in the same line as "plugin_directory:", save and exit
/usr/bin/sd-agent/plugins/
# add these lines in the plugins section
[Redis]
host: localhost
port: 6379
dbs: 0,1
password: YourHashKey|none
queues: key1,key2
# go plugins directory
cd /usr/bin/sd-agent/plugins/
# download Redis.py
wget https://raw.githubusercontent.com/serverdensity/sd-agent-plugins/master/Redis/Redis.py
# restart sd-agent service
service sd-agent restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment