Skip to content

Instantly share code, notes, and snippets.

View oknixus's full-sized avatar
🎯
Focusing

Nɪxᴜs oknixus

🎯
Focusing
View GitHub Profile
@oknixus
oknixus / Redis.sh
Created December 4, 2017 06:56 — forked from nrollr/Redis.sh
Install Redis via Homebrew
#!/bin/bash
brew install redis # Install Redis using Homebrew
ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents # Enable Redis autostart
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.redis.plist # Start Redis server via launchctl
# homebrew.mxcl.redis.plist contains reference to redis.conf file location: /usr/local/etc/redis.conf
redis-server /usr/local/etc/redis.conf # Start Redis server using configuration file, Ctrl+C to stop
redis-cli ping # Check if the Redis server is running