沙福林开发环境搭建-mac
沙福林第一次使用mac,先想把自己的使用记录下来,方便到时候装机配环境时不慌,文档中的蓝奏云地址均为我保存到自己网盘上的资源
# 常用资源站
# 命令行设置
# 启用软件允许从任何来源
偏好设置-安全隐私-通用-允许从以下位置下载App
sudo spctl --master-disable
# 合盖不休眠
# 让系统保持唤醒
sudo pmset -b sleep 0; sudo pmset -b disablesleep 1
# 让系统休眠
sudo pmset -b sleep 5; sudo pmset -b disablesleep 0
2
3
4
# 配置环境变量
与Linux配置基本一致,但是默认用户一般会这样配置,不然只能在本次刷新终端有效
编辑用户环境变量,添加自己的环境变量
vi ~/.bash_profile
例如我这里配置了,jdk,mvn,mvnd,等
# java环境变量
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_341.jdk/Contents/Home
export PATH=$PATH:$JAVA_HOME/bin
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
# maven
export M2_HOME=/Users/renyong/program/apache-maven-3.8.6
export PATH=$PATH:$M2_HOME/bin
# mvnd
export MVND_HOME=/Users/renyong/program/maven-mvnd-0.8.2
export PATH=$PATH:$MVND_HOME/bin
# python3.10
export PATH=$PATH:/opt/homebrew/Cellar/python@3.10/3.10.8
# 添加ll命令
alias ll='ls -l'
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
添编辑文件~/.zshrc键入以下内容,用于刷新环境变量,这样就不会造成下次打开终端找不到命令了
vim ~/.zshrc
source ~/.bash_profile # 刷新环境变量
# 忽略app验证
有时app打开会提示
xxx 已损坏,打不开.您应该将它移到废纸篓,此时可以使用这个命令,这个应用地址建议从访达-应用程序中拖拽应用到终端,获取地址
sudo xattr -d com.apple.quarantine 应用地址
# console口连接
有时需要通过console口连接调试网络设备
# 查看当前连接的console口
ls /dev/tty.usbserial*
# 连接设备
screen /dev/tty.usbserial-21210 9600
2
3
4
# 关闭SIP
# 常用软件安装
# homebrew
# 输入法
官搜狗输入法 (opens new window) | 直搜狗输入法 (opens new window)
# 社交
- QQ (opens new window) |
官直QQ9.6.7 (opens new window) - 微信 (opens new window) |
官直微信最新版 (opens new window) - 企业微信 (opens new window) |
官直企业微信4.0.19 (opens new window)
# 截图工具
# 录屏工具
官Omi录屏专家 (opens new window)- Omi录屏专家 v1.0.8 (opens new window)
版本低,但是可以录制4K,没有限制
# 图片浏览器
# 音乐播放
以上是沙福林的音乐软件使用 qq音乐->酷我音乐->酷狗音乐->网易云音乐
- 网易云音乐 (opens new window) |
直最新版 (opens new window) 直酷狗音乐 (opens new window)- QQ音乐 (opens new window) |
直最新版 (opens new window) - Listen 1 v2.27.0 (opens new window)
# 视频播放
# 办公软件
# 浏览器
官谷歌浏览器 (opens new window) |直谷歌浏览器 (opens new window)直星愿浏览器 (opens new window)官火狐浏览器 (opens new window) |直firefox110.0b8 (opens new window)官EDGE浏览器 (opens new window) |直官网最新 (opens new window)
# 解压工具
bandizip (opens new window) | 蓝奏云 (opens new window)
# 效率工具
- 右键助手 (opens new window) | 蓝奏云 (opens new window)
- Beyond Compare 4 (opens new window) | 蓝奏云 (opens new window)
- utools (opens new window) |
直uTools-3.3.0 (opens new window) - Fliqlo (opens new window)
时钟屏保
# 远程控制
- todesk (opens new window) |
直ToDesk_4.6.0.0 (opens new window) | mac权限设置帮助 (opens new window) - 腾讯会议 (opens new window) |
官直3.14.5.435 (opens new window)
# ntfs工具
# 安卓手机连接
android file transfer (opens new window)
# 清理工具
CleanMyMac X v4.12.3 (opens new window)
# CrossOver
CrossOver 22.1.0 (opens new window)
# Bartender
菜单栏图标管理
Bartender 4.2.11_zh-CN (opens new window)
# 原型图设计
Axure RP 9 v9.0.0.3740 (opens new window) 断网激活!!!
# 资源监控
# 小米互联服务
官网 (opens new window) | 直HyperConnect.dmg (opens new window)
# 可用有用的官方博文
mac与windows共享文件 (opens new window)
# 开发工具
# 软件环境
# jdk
# maven
# mysql
# redis
brew用法参考mysql教程
brew install redis
brew services start redis
2
brew用法参考mysql教程
# git
brew install git
#用户名推荐使用名称全拼
git config --global user.name "shafulin";
# 邮箱随便填,不校验有效
git config --global user.email "123@qq.com";
# 关闭ssl校验
git config --global http.sslVerify false
2
3
4
5
6
7
# nodejs
brew install node
# 设置阿里源镜像
npm config set registry https://registry.npmmirror.com
# 安装常用模块
npm install -g cnpm
npm install -g yarn
yarn config set registry https://registry.npmmirror.com
npm install -g nrm
2
3
4
5
6
7
8
# docker
# IDE
# idea
官idea历史版本 (opens new window)直idea2020.3.3 (opens new window) | 30天重置插件ide-eval-resetter-2.3.5 (opens new window) | idea最新激活-第一次中奖 (opens new window)直idea2023.1.3 (opens new window) | idea最新激活-第二次中奖 (opens new window)直idea配置导入 (opens new window)- 必装插件
# vscode
官vscode (opens new window) | 直vscode (opens new window)
# HbuildX
官HbuildX (opens new window) | 直HBuilderX.3.6.14.20221216-alpha (opens new window)
# 虚拟机
- Parallels Desktop 18 (opens new window) | 来源 (opens new window)
- Parallels Desktop 20 (opens new window)
- VMware Fusion12 (opens new window) | 来源 (opens new window)
激活码
ZF3R0-FHED2-M80TY-8QYGC-NPKYF
YF390-0HF8P-M81RQ-2DXQE-M2UT6
ZF71R-DMX85-08DQY-8YMNC-PPHV8 - VMware Fusion13.5.0 (opens new window)| 来源 (opens new window) 激活码
4C21U-2KK9Q-M8130-4V2QH-CF810
windows11 arm64版
推123网盘 (opens new window)- 磁力链接
ed2k://|file|SW_DVD9_Win_Pro_11_22H2_64ARM_ChnSimp_Pro_Ent_EDU_N_MLF_X23-12755.ISO|5719896064|D6DE1514C942ED84DB037F56E4457904|/
# 接口调试工具
直Apifox (opens new window) 个人目前一直用这个,有网环境推荐这个,接口调试+接口文档生成直Apipost (opens new window)推荐离线环境用直Postman (opens new window)
# 下载工具
# 连接工具
# 微软远程桌面
- microsoft-remote-desktop (opens new window)
- Microsoft Remote Desktop Beta v10.7.7(2000) (opens new window)
马克喵 - 教程
# navicat
navicat16 (opens new window) | 安装教程 (opens new window)
# Redis Desktop Manager
2021.10.236 (opens new window)
# ssh终端
- tabby (opens new window) |
代直tabby-1.0.184 (opens new window) | 介绍博文 (opens new window) - item2 (opens new window) |
推iTerm v3.4.10汉化版 (opens new window) | 安装教程 - Termius (opens new window) | 来源 (opens new window)
- xterminal (opens new window) |
直XTerminal-1.20.9 (opens new window) - warp (opens new window)
# 笔记
- Typora v1.9.4 (opens new window)
- 印象笔记 (opens new window)
- 语雀 (opens new window) | 下载页 (opens new window)
# github加速
官Steam++_macos_arm64_v2.8.6 (opens new window)
# 抓包工具
注意使用完记得把网络代理关闭,设置位置在
Wifi联网:偏好设置-WIFI-连接网络的详细信息-代理
网线联网:偏好设置-网络-USB 10/100/1000 LAN-代理
Proxyman 4.8.0 (opens new window)
# 反编译工具
jd-gui-osx-1.6.6 (opens new window) | github-releases (opens new window)
# host地址管理
SwitchHosts 4.2.0.6105 (opens new window) | github加速访问配置 (opens new window)
# 外接显示器亮度控制值
MonitorControl.4.2.0 (opens new window) | github-releases (opens new window)
# 电脑状态查看
stats (opens new window) | 代直v2.9.20 (opens new window)