Last active
December 16, 2015 11:21
-
-
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)
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
# 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