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
#sudo wget http://nginx.org/download/nginx-1.9.12.tar.gz | |
#sudo tar -xvzf nginx-1.9.12.tar.gz | |
#cd nginx-1.9.12 | |
#sudo apt-get install -y build-essential libpcre3 libpcre3-dev zlib1g-dev | |
#sudo ./configure --with-stream && sudo make && sudo make install | |
# /usr/local/nginx/conf/nginx.conf - NGINX configuration file | |
worker_processes 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
""" | |
Copies all keys from the source Redis host to the destination Redis host. | |
Useful to migrate Redis instances where commands like SLAVEOF and MIGRATE are | |
restricted (e.g. on Amazon ElastiCache). | |
The script scans through the keyspace of the given database number and uses | |
a pipeline of DUMP and RESTORE commands to migrate the keys. | |
Requires Redis 2.8.0 or higher. |