August
  • August
  • Javascript
    • Array 的三个技巧
    • 相等比较 - Object.is()
    • ES6 正则拓展
    • Javascript 中的响应式与 Proxy
  • Git
    • Mac 配置 ssh
    • Git - 常用命令
    • Git - 恢复撤销
  • Mac
    • MacOS 异常解决方案
  • Redis
    • Install and config Redis on Mac OS X via Homebrew
  • Linux
    • Linux查看磁盘空间(df, du)
  • Others
    • Google Extensions
Powered by GitBook
On this page
  • Install Redis
  • Launch Redis on computer starts.
  • Start Redis server via launchctl.
  • Start Redis server using configuration file.
  • Stop Redis on autostart on computer start.
  • Location of Redis configuration file.
  • Uninstall Redis and its files.
  • Get Redis package information.
  • Test if Redis server is running.
  1. Redis

Install and config Redis on Mac OS X via Homebrew

PreviousMacOS 异常解决方案NextLinux查看磁盘空间(df, du)

Last updated 6 years ago

By using , you greatly reduce the cost of setting up and configuring the development environment on Mac OS X.

Install

brew install redis

After installation, you will see some notification about some caveats on configuring. Just leave it and continue to following some tasks on this article.

Launch Redis on computer starts.

ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents

Start Redis server via launchctl.

launchctl load ~/Library/LaunchAgents/homebrew.mxcl.redis.plist

Start Redis server using configuration file.

redis-server /usr/local/etc/redis.conf

Stop Redis on autostart on computer start.

launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.redis.plist

Location of Redis configuration file.

/usr/local/etc/redis.conf

Uninstall Redis and its files.

brew uninstall redis
rm ~/Library/LaunchAgents/homebrew.mxcl.redis.plist

Get Redis package information.

brew info redis

Test if Redis server is running.

redis-cli ping

If it replies **PONG**, then it’s good to go!

Homebrew
Redis