Excerpt from: http://jingyan.baidu.com/article/fec7a1e5ec30341190b4e7e5.html
Open the command-line tool in Mack
Enter the following statement in the command-line tool that opens:
Ruby-e "$ (Curl--insecure-fssl Https://raw.githubusercontent.com/Homebrew/install/master/install)"
After executing the above command, you will be prompted to enter the system password
After entering the password, you will start to download the homebrew, if the speed is not stable at this time may appear error: Curl: (+) Server aborted the SSL handshake.
At this point you need to perform the uninstall operation, enter the following command to uninstall:
Ruby-e "$ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
Try the installation again after the uninstallation is complete.
When the installation is complete, you will be prompted as follows
At this point you can enter the command at the command line brew to test, you can see the following results, indicating that the installation was successful.
How to install the configuration under Mac Homebrew