python -m SimpleHTTPServer
python -m http.server
python -m http.server 8001
1. Stop Apache | |
sudo /etc/init.d/apache2 stop | |
2. Stop Carbon | |
sudo su www-data | |
cd /opt/graphite/ | |
./bin/carbon-cache.py stop | |
3. Move whisper directory to new location |
# Bulk deletes keys start with "prefix" | |
EVAL "for i, name in ipairs(redis.call('KEYS', 'prefix*')) do redis.call('DEL', name); end" 0 | |
# Bulk renames keys start with "prefix" to "postfix". | |
# e.g. prefixwithtail -> postfixwithtail | |
EVAL "for i, name in ipairs(redis.call('KEYS', 'prefix*')) do local x = string.gsub(name, 'pre', 'post'); redis.call('RENAME', name, x); end" 0 |