Installation after Mac reinstall

1.
Reinstall . Press and hold command+R to enter the interface -> Disk Utility -> Erase Disk -> Go back and reinstall Mac OS
, which takes about 2-3 hours. The
system comes with Apache and php

2. Install brew
1> curl -LsSf http://github.com/mxcl/homebrew/tarball/master | sudo tar xvz -C/usr/local –strip 1
2> Execute
brew and report an
error: Please run brew update!
3> Prompt to update, execute
brew update and report an
error: Error: /usr/local must be writable!
4> Assign permissions to the /usr/local directory, execute sudo chown -R $(whoami) /usr/local
whom to view the username
sudo chown -R username /usr/local
5> brew update

3. Install composer
Mac to show hidden files
write picture description here
input defaults write com.apple.finder AppleShowAllFiles -boolean true ; killall Finder

4. Install laravel (see the laravel5.5 documentation for the installation steps)
error message: command "laravel" not found
Reason: indicates that the laravel command has not been added to the environment variable
1. Edit the configuration file (vi editor -i enter esc- >:wq save and exit or :q! do not save and exit)
  vi ~/.bash_profile
2. Add the content
  export PATH=”PATH:HOME/.composer/vendor/bin”
3. Make the environment variable take effect, enter
  source . bash_profile (big pit here, pay attention!!!)
write picture description here
Enter the new file, enter php artisan serve and visit http://127.0.0.1:8000 to view the project
write picture description here

5. Installing valet (see the laravel5.5 documentation for installation steps) depends on the computer's environment configuration

6. phpstorm installs Chinese theme download from
Baidu network disk (Mac version 2017.3): https://pan.baidu.com/s/1kuewKP2sFp9LeiJvUtB7yg
Chinese package https://pan.baidu.com/s/16DgB8eFcnHugJO4PHrOeZw
command+shift+g - > Application -> Find phpstorm right-click to display the package content -> Contents -> lib put the downloaded Chinese package into it to solve the
theme PhpStorm -> preferences -> Editor -> Fonts Set the font size, line spacing & color and font selection theme (recommended Monokai ) Other
plugins PhpStorm -> preferences -> Plugins search and click to install

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326568790&siteId=291194637