mac 日常

来源:互联网 发布:万能网络摄像机客户端 编辑:程序博客网 时间:2024/05/17 08:50

1.安装Homebrew brew是mac的安装包软件(类似linux的apt-get)

 1. 运行安装命令
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

中途需要输入密码和敲回车,最后安装成功后,告诉你运行brew help 来查看命令详情

 2.运行brew各项命令来查看需要的软件的安装情况
brew search 软件名brew install 软件名brew uninstall 软件名brew install mysql@5.5  安装mysql
commandctrl)+ c 复制commandctrl)+ v 粘贴commandctrl)+ z 撤销commandctrl)+ x 剪切commandctrl)+ a 全选control + a       在linux命令行,返回命令开始control + 空格     切换输入法
  1. 安装php70
git -C "$(brew --repo homebrew/core)" fetch --unshallowbrew tap homebrew/homebrew-php70brew install php70brew install composer

快速打开文件夹
command+shift+G
这里写图片描述

// 重启php命令brew services restart php56//重启mysqlbrew services restart mysql@5.6//重启nginxbrew services restart nginx// 重启所有的brew安装程序brew services restart --all
原创粉丝点击