MAC 开发环境搭建及工具

更新或下载xcode

这个是必须的,否则在执行安装命令时,也会自动去下载,命令行自动下载反而速度更慢。如果有爬墙,那请PASS

必须安装 Command Line Tools

xcode-select --install

如果提示 不能安装该软件,那么从官网安装https://developer.apple.com/download/more/
下载系统对应得版本(这里的系统是macOS 10.14)
Command Line Tools (macOS 10.14) for Xcode 10.1

安装 brew

https://brew.sh/
brew update brew upgrade 速度慢解决方法
https://mirrors.tuna.tsinghua.edu.cn/help/homebrew/

方式一

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

安装成功后替换成国内镜像

cd "$(brew --repo)"
git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git

cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git

brew update

方式二

如果是国外速度很快,国内就很慢

curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh > brew_install.sh

编辑brew_install.sh文件

#注释掉,在前面加#
#BREW_REPO = "https://github.com/Homebrew/brew"
#然后复制一个
BREW_REPO = "https://mirrors.aliyun.com/homebrew/brew.git"
//
/
#注释掉,在前面加#
#CORE_TAP_REPO = "https://github.com/Homebrew/homebrew-core"
#然后复制一个
CORE_TAP_REPO = 'https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git'

保持好该文件,并给该文件权限

chmod +x brew_install.sh

最后执行 ./brew_install.sh

https://developer.aliyun.com/mirror/homebrew

清华镜像帮助页面
https://mirrors.tuna.tsinghua.edu.cn/help/homebrew/

方式三

https://gitee.com/cunkai/HomebrewCN

设置 bintray镜像

阿里云镜像

https://developer.aliyun.com/mirror/homebrew

临时替换

export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles

长期替换

mac新版为 ~/.zshrc,旧版本为 ~/.bash_profile

echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles' >> ~/.zshrc
source ~/.zshrc

ohmyzsh样式国内源

https://gitee.com/pocmon/ohmyzsh

sh -c "$(curl -fsSL https://gitee.com/pocmon/ohmyzsh/raw/master/tools/install.sh)"

设置ll等命令

mac新版为 ~/.zshrc,旧版本为 ~/.bash_profile

vim ~/.zshrc

加入如下(如果已经存在了,就不需要重复加入)

#!/usr/bash

alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF' 

应用生效

source ~/.zshrc

安装开发工具

安装 wget

brew install wget 

安装 git

brew install git 

下载安装sourceTree

https://www.sourcetreeapp.com/

安装终端 FinalShell(hostbuf) 或 zoc 7

http://www.hostbuf.com/

https://www.emtec.com/zoc/

安装文本编辑器 vscode

VS code 推荐

下载地址 https://code.visualstudio.com/
以下部分来自 https://segmentfault.com/a/1190000006697219
⌘ Command +⇧ Shift + X 扩展界面
安装插件
Chinese (Simplified) 中文语言包
IntelliJ IDEA Keybindings 重度idea使用者,快捷键改为idea快捷键
markdown-preview-enhanced
HTML Snippets 超级实用且初级的 H5代码片段以及提示
HTML CSS Support 让 html 标签上写class 智能提示当前项目所支持的样式
Debugger for Chrome 让 vscode 映射 chrome 的 debug功能,静态页面都可以用 vscode 来打断点调试
jQuery Code Snippets jquery 重度患者
vscode-icon 让 vscode 资源树目录加上图标
Path Intellisense 自动路劲补全
HTMLHint html代码检测
Project Manager 在多个项目之前快速切换的工具
beautify 格式化代码的工具
Bootstrap 3 Sinnpet 常用 bootstrap
Atuo Rename Tag 修改 html 标签,自动帮你完成尾部闭合标签的同步修改
GitLens 丰富的git日志插件
fileheader 顶部注释模板,可定义作者、时间等信息,并会自动更新最后修改时间
filesize 在底部状态栏显示当前文件大小,点击后还可以看到详细创建、修改时间
Bracket Pair Colorizer 让括号拥有独立的颜色,易于区分。可以配合任意主题使用。
Dracula 主题,
打开 vscode 编辑器,在插件页搜索 想要的插件进行安装

vscode

https://code.visualstudio.com/

安装 IDEA ,phpstorm ,webstorm ,Gogland

数据库管理工具

DBeaver 开源版

https://dbeaver.io/download/

https://github.com/dbeaver/dbeaver/releases

Navicat Premium for Mac

docker

https://www.docker.com/community-edition#/download
https://store.docker.com/editions/community/docker-ce-desktop-mac

安装 java

https://blog.csdn.net/fenglailea/article/details/69501375

MAC maven 安装和配置

https://blog.csdn.net/fenglailea/article/details/69500318

安装 go

https://blog.csdn.net/fenglailea/article/details/70216964
https://blog.csdn.net/fenglailea/article/details/26163927#t9

安装 docker 版 nginx,php,mysql

https://github.com/foxiswho/docker-compose-nginx-php-mysql

安装 docker 版 elasticsearch logtsash kibana

https://github.com/foxiswho/docker-elk

redis 安装Redis可视化工具

RedisPlus

https://gitee.com/MaxBill/RedisPlus
下载地址
https://pan.baidu.com/s/1vDbKkM7-9fG2oW8ALPXjng 密码:hw95

Redis Desktop Manager

https://blog.csdn.net/gavinguo1987/article/details/75125775

安装其他工具

eZip - 专为 macOS 而设计的压缩软件! https://ezip.awehunt.com/

浏览器 chrome

office

qq,微信,钉钉

远程登录管理 teamview

爬墙工具,你懂的

xmind

Tuxera NTFS

虚拟机

总有一些需要在win 系统上使用的软件,可以用如下虚拟机
Parallels Desktop

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

风.foxwho

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值