Tao He

Tao He

  • Docs
  • API
  • Help
  • Blog

›Recent Posts

Recent Posts

  • Microsoft PowerPoint
  • Chrome
  • Alfred
  • Docusaurus
  • Git Commands

macOS Server

November 15, 2013

{% include JB/setup %}

PHP

Nginx

MySQL

Install MySQL

brew options mysql
brew install mysql --enable-debug

Let launchd Start MySQL at Login

CAUTION: mysqld takes up 500 MB memory!

ln -sfv /usr/local/Cellar/mysql/5.6.17_1/*.plist ~/Library/LaunchAgents/

Load MySQL

Option 1 (suggested)

sudo gem install lunchy
lunchy list
lunchy stop mysql
lunchy start mysql

Option 2

launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist

Brew’ing PHP, MySQL & Nginx on Mac OS X

Redis

brew install redis

To have launchd start redis at login:

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

Then to load redis now:

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

Or, if you don't want/need launchctl, you can just run:

redis-server /usr/local/etc/redis.conf
Recent Posts
  • PHP
  • MySQL
    • Install MySQL
    • Let launchd Start MySQL at Login
    • Load MySQL
  • Redis
Tao He
Docs
Getting Started (or other categories)Guides (or other categories)API Reference (or other categories)
Community
User ShowcaseStack OverflowProject ChatTwitter
More
BlogGitHubStar
Facebook Open Source
Copyright © 2019 Your Name or Your Company Name