Install and config Redis on Mac OS X via Homebrew

    xiaoxiao2021-03-25  103

    Install and config Redis on Mac OS X via Homebrew

    Let’s install Redis for the good

    brew insatll redis

    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.plis

    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!" 参考资料

    转载请注明原文地址: https://ju.6miu.com/read-9009.html

    最新回复(0)