Mkdir -p ~/Library/LaunchAgentscp /usr/local/opt/php55/ ~/Library/LaunchAgents/Run php-fpm # If you use ZSH echo 'export PATH="$(brew -prefix homebrew/php/php55)/sbin:$PATH"' > ~/.zshrc &. # If you use Bash echo 'export PATH="$(brew -prefix homebrew/php/php55)/sbin:$PATH"' > ~/.bash_profile &. If you want to run php In the command line, you need to change the environment variable in the bash shell. brew install -without-apache -with-fpm -with-mysql php55Set PHP CLI Run the following command to install php and php-fpm, which may take a long time. brew update & brew upgradePHP-FPMīecause brew does not include php-fpm by default, you must add brew tap homebrew/dupesbrew tap homebrew/php Run the following command to install homebrew: ruby -e "$(curl -fsSL )"Īfter the installation is complete, run the following command to check whether the installation is successful brew doctor Homebrew in Mac is equivalent to apt-get and yum in Linux, and various installation packages of the latest version can be obtained.įirst, you need Xquartz curl -o /tmp/XQuartz.dmgopen /tmp/XQuartz.dmg Make sure you are using Xcode 6.1! Then install homebrewHomebrew xcode-select -installĪfter the installation is complete, open Xcode, go to Preferences-> Locations, and check whether Xcode Command Line Tools is the latest version. Open the terminal, enter the following command, press enter, and a box will pop up. Then Xcode will upgrade to the latest version of Version6.1, and finally install (or update) Xcode Command Line Tools.Install Xcode Command Line Tools So I moved the dusty Mac Mini in my house to the company's elegant writing program.įirst, I upgraded my Mac to Mac10.10.1 OS X Yosemite (you can upgrade it free of charge in the App Store ). Without many applications, it is difficult to use the Web version. Second, there is no qq, it is very difficult to communicate with colleagues in the company, although qq can chat on the web page, but it is not enough to pass a file. sogou released the Ubuntu input method, but it is far from easy to use in Win. First, it is difficult to use the input method. Recently, Ubuntu is very uncomfortable to use. Http:///install-nginx-php-fpm-mysql-and-phpmyadmin-on-os-x-mavericks-using-homebrew/ Second, I don't have qq, so I have to contact my colleagues at the company. Http:///install-nginx-php-fpm-mysql-and-phpmyadmin-on-os-x-mavericks-using-homebrew/ Ubuntu recently used very uncomfortable, the first is the input method is very difficult to use, said sogou released Ubuntu14.04 input method, but far from Win input method is easy to use. First, it was difficult to use the input method, sogou released Ubuntu14.04's input method, but it is far from easy to use in Win. mninstall-nginx-php-fpm-mysql-and-phpmyadmin-on-OS-x-mavericks-using-homebrew recently made Ubuntu very uncomfortable.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |