Mac软件清单(前后端开发环境搭建)

Mac软件清单(前后端开发环境搭建)

一、Google Chrome

Mac软件网站 https://macwk.cn/

浏览器扩展插件:

  1. InfinityPro 新建标签页
  2. AdGuard 广告拦截器
  3. GlobalSpeed 视频速度控制
  4. SuperCopy 超级复制
  5. 沉浸式翻译
  6. Flash相关:chrome 用 flash 播放器、 flash player flash仿真器
  7. 开发相关:vue.js.devtools 、 react developer tools

二、基础工具

  1. 钉钉
  2. 微信
  3. 夸克(网盘)
  4. 语雀
  5. ToDesk
  6. WPS
  7. Clash X Pro
  8. Typora
  9. App cleaner & uninstaller8.4.3

三、开发工具

  1. Homebrew 包管理器
  • 下载xxx环境 brew install xxx
  • 查看已下载的环境 brew ls
  • 查看服务 brew services ls
  • 启动/停止xxx服务 brew start/stop xxx
  1. PinPix
  2. Figma
  3. WebStorm IDE
  4. 微信开发者工具/小程序开发者工具
  5. IntelliJ IDEA
  6. DataGrip
  7. Proxyman
  8. VMware Fusion
  9. Docker Desktop for Mac

四、环境搭建

git安装

  1. homebrew命令行安装
  • brew install git
  1. 配置个人信息

git config --global user.name "你的名字或昵称"

git config --global user.email "你的邮箱"

nvm安装

  1. homebrew命令行安装
  • brew install nvm
  1. 写入环境变量
  • 打开.zshrc文件 vim ~/.zshrc
  • 写入环境变量:
shell 复制代码
export NVM_DIR="$HOME/.nvm"
  [ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && \. "/opt/homebrew/opt/nvm/nvm.sh"  # This loads nvm
  [ -s "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm"  # This loads nvm bash_completion

node安装

直接基于nvm进行安装

  1. 安装xx版本
  • nvm installl xx
  1. 使用xx版本
  • nvm use xx
  1. 查看所有版本
  • nvm ls

mysql安装

  1. homebrew命令后安装
  • brew install mysql@8.0
  1. 安装成功会输出提示:
shell 复制代码
We've installed your MySQL database without a root password. To secure it run:
    mysql_secure_installation

MySQL is configured to only allow connections from localhost by default

To connect run:
    mysql -u root

mysql@8.0 is keg-only, which means it was not symlinked into /opt/homebrew,
because this is an alternate version of another formula.

If you need to have mysql@8.0 first in your PATH, run:
  echo 'export PATH="/opt/homebrew/opt/mysql@8.0/bin:$PATH"' >> ~/.zshrc

For compilers to find mysql@8.0 you may need to set:
  export LDFLAGS="-L/opt/homebrew/opt/mysql@8.0/lib"
  export CPPFLAGS="-I/opt/homebrew/opt/mysql@8.0/include"

To start mysql@8.0 now and restart at login:
  brew services start mysql@8.0
Or, if you don't want/need a background service you can just run:
  /opt/homebrew/opt/mysql@8.0/bin/mysqld_safe --datadir\=/opt/homebrew/var/mysql
  1. 配置环境变量
shell 复制代码
# 编辑环境变量
vim ~/.zshrc

# 增加以下内容
export PATH="/opt/homebrew/opt/mysql@8.0/bin:$PATH"
export LDFLAGS="-L/opt/homebrew/opt/mysql@8.0/lib"
export CPPFLAGS="-I/opt/homebrew/opt/mysql@8.0/include"
export PKG_CONFIG_PATH="/opt/homebrew/opt/mysql@8.0/lib/pkgconfig"

# 加载配置
source ~/.zshrc
  1. 启动服务

brew services start mysql@8.0

  1. 安装配置(设置密码等)
shell 复制代码
root@MacBook-Pro ~ % mysql_secure_installation

Securing the MySQL server deployment.

Connecting to MySQL using a blank password.

VALIDATE PASSWORD COMPONENT can be used to test passwords
and improve security. It checks the strength of password
and allows the users to set only those passwords which are
secure enough. Would you like to setup VALIDATE PASSWORD component?
# 是否设置密码
Press y|Y for Yes, any other key for No: y

There are three levels of password validation policy:

LOW    Length >= 8
MEDIUM Length >= 8, numeric, mixed case, and special characters
STRONG Length >= 8, numeric, mixed case, special characters and dictionary                  file
# 设置密码强度
Please enter 0 = LOW, 1 = MEDIUM and 2 = STRONG: 0
Please set the password for root here.
# 输入密码
New password: 
# 确认密码
Re-enter new password: 

Estimated strength of the password: 50 
Do you wish to continue with the password provided?(Press y|Y for Yes, any other key for No) : y
By default, a MySQL installation has an anonymous user,
allowing anyone to log into MySQL without having to have
a user account created for them. This is intended only for
testing, and to make the installation go a bit smoother.
You should remove them before moving into a production
environment.
# 移除无密码用户
Remove anonymous users? (Press y|Y for Yes, any other key for No) : y
Success.

Normally, root should only be allowed to connect from
'localhost'. This ensures that someone cannot guess at
the root password from the network.
# 是否远程登陆
Disallow root login remotely? (Press y|Y for Yes, any other key for No) : n

 ... skipping.
By default, MySQL comes with a database named 'test' that
anyone can access. This is also intended only for testing,
and should be removed before moving into a production
environment.

# 是否移除测试数据库
Remove test database and access to it? (Press y|Y for Yes, any other key for No) : n

 ... skipping.
Reloading the privilege tables will ensure that all changes
made so far will take effect immediately.
# 是否重新加载
Reload privilege tables now? (Press y|Y for Yes, any other key for No) : y
Success.

All done! 
root@MacBook-Pro ~ % 
  1. 连接服务
shell 复制代码
mysql -u root -p
# 输入密码

jabba安装

jabba是一款java多版本管理工具

  1. homebrew命令后安装

brew install jabba

  1. 配置环境变量
shell 复制代码
[ -s "$HOMEBREW_PREFIX/opt/jabba/share/jabba/jabba.sh" ] && . "$HOMEBREW_PREFIX/opt/jabba/share/jabba/jabba.sh"
  1. 常用命令
  • 安装特定版本的jdk jabba install adopt@1.11.0-28
  • 列出已安装的jdk版本 jabba ls
  • 列出远程可用的jdk版本 jabba ls-remote
  • 使用指定版本的jdk jabba use <alias>
  • 设置默认 JDK 版本 jabba alias default <alias>
  • 删除已安装的 JDK 版本 jabba uninstall <alias>
  • 查看当前使用的 JDK 版本 jabba which

java安装

基于jabba安装

  1. 下载jdk1.8 jabba install zulu@1.8.362
  2. 设置默认版本:jabba alias default zulu@1.8.362
  3. 使用当前版本:jabba use zulu@1.8.362

maven安装

  1. 通过homebrew安装指定的版本号 brew install maven
  2. 检查已安装的 Maven 版本 mvn -v
  3. maven配置,包括本地仓库地址,切换阿里云镜像下载源

redis安装

  1. 使用 Homebrew 安装命令 brew install redis
  2. 使用 Homebrew 启动软件 brew services start redis
  3. 执行命令,启动服务 redis-server
相关推荐
小徐_23332 分钟前
AI 写 wot-ui 总在猜 API?我们把 Skills、MCP 和 CLI 都配好了
前端·uni-app·ai编程
winfredzhang7 分钟前
用 wxPython + ECharts + 阿里矢量地图,做一个可离线兜底的上海雨量看板
前端·javascript·echarts
耀耀_很无聊14 分钟前
13_Spring Boot 3.5.8 + Redisson 3.45.1 导致 Sa-Token 登录 StackOverflowError
spring boot·后端·bootstrap
AskHarries18 分钟前
邮件发送方案对比
后端
索西引擎19 分钟前
【React】Immer.js 在现代 Redux 生态中的角色:不可变性保障的工程化实现与开发体验优化
前端·javascript·react.js
kisshyshy21 分钟前
《川剧变脸 × React 状态管理?我在浏览器里跑了个端侧大模型》
前端·react.js·架构
只一22 分钟前
端侧AI实战第二章:React组件工程化 + 事件系统 + 可复用进度条(WebGPU模型加载底座)
前端·react.js
Ai拆代码的曹操26 分钟前
@Async 注解失效的底层真相:this 调用绕过代理,接口响应翻倍
后端
l1340620823528 分钟前
HarmonyOS应用开发实战:小事记 - 多媒体文件上传:@ohos.net.http 的 multipart/form-data 请求构造
后端·华为·harmonyos·鸿蒙系统
小小猪的春天29 分钟前
AI Code Review 例外决策框架:手动忽略警告之前,先回答4个问题
后端·架构