Skip to content

Instantly share code, notes, and snippets.

Catalin Gheonea tarrynn

Block or report user

Report or block tarrynn

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tarrynn
tarrynn / aws-ec2-redis-cli.md
Created Jan 9, 2019 — forked from paladini/aws-ec2-redis-cli.md
AWS redis-cli without redis server on AWS EC2
View aws-ec2-redis-cli.md

Setup redis-cli without the whole Redis Server on AWS EC2

This fast tutorial will teach you how to install redis-clion AWS EC2 without having to install the whole Redis Server. Firstly, SSH into your EC2 instance and run the following command:

$ sudo yum install gcc

This may return an "already installed" message, but that's OK. After that, just run:

$ wget http://download.redis.io/redis-stable.tar.gz && tar xvzf redis-stable.tar.gz && cd redis-stable && make && sudo cp src/redis-cli /usr/local/bin/ && sudo chmod 755 /usr/local/bin/redis-cli

View gist:a1895363c3fc2f57da5fb467c14589f2
#!/bin/bash
# script to gracefully restart nginx on the hostname
# will reside in /home/$DEPLOY_USER/scripts
# needs to run as user with sudo permissions
set -x
sudo nginx -t #test config file
if [ $? -ne 0 ]
then
You can’t perform that action at this time.