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
相关推荐
孤水寒月2 小时前
基于HTML的悬窗可拖动记事本
前端·css·html
祝余呀2 小时前
html初学者第一天
前端·html
芳草萋萋鹦鹉洲哦3 小时前
【vue3+tauri+rust】如何实现下载文件mac+windows
windows·macos·rust
耶啵奶膘5 小时前
uniapp+firstUI——上传视频组件fui-upload-video
前端·javascript·uni-app
视频砖家5 小时前
移动端Html5播放器按钮变小的问题解决方法
前端·javascript·viewport功能
lyj1689975 小时前
vue-i18n+vscode+vue 多语言使用
前端·vue.js·vscode
程序员岳焱6 小时前
Java 与 MySQL 性能优化:Java 实现百万数据分批次插入的最佳实践
后端·mysql·性能优化
麦兜*6 小时前
Spring Boot启动优化7板斧(延迟初始化、组件扫描精准打击、JVM参数调优):砍掉70%启动时间的魔鬼实践
java·jvm·spring boot·后端·spring·spring cloud·系统架构
大只鹅7 小时前
解决 Spring Boot 对 Elasticsearch 字段没有小驼峰映射的问题
spring boot·后端·elasticsearch
小白变怪兽7 小时前
一、react18+项目初始化(vite)
前端·react.js