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命令后安装
  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

[email protected] 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 [email protected] first in your PATH, run:
  echo 'export PATH="/opt/homebrew/opt/[email protected]/bin:$PATH"' >> ~/.zshrc

For compilers to find [email protected] you may need to set:
  export LDFLAGS="-L/opt/homebrew/opt/[email protected]/lib"
  export CPPFLAGS="-I/opt/homebrew/opt/[email protected]/include"

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

# 增加以下内容
export PATH="/opt/homebrew/opt/[email protected]/bin:$PATH"
export LDFLAGS="-L/opt/homebrew/opt/[email protected]/lib"
export CPPFLAGS="-I/opt/homebrew/opt/[email protected]/include"
export PKG_CONFIG_PATH="/opt/homebrew/opt/[email protected]/lib/pkgconfig"

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

brew services start [email protected]

  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 [email protected]
  • 列出已安装的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 [email protected]
  2. 设置默认版本:jabba alias default [email protected]
  3. 使用当前版本:jabba use [email protected]

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
相关推荐
懒羊羊我小弟10 分钟前
Vue与React组件化设计对比
前端·vue.js·react.js
八股文领域大手子13 分钟前
深入浅出 Redis:核心数据结构解析与应用场景Redis 数据结构
java·数据结构·数据库·人工智能·spring boot·redis·后端
_朱志强14 分钟前
解决前端vue项目在linux上,npm install,node-sass 安装失败的问题
linux·前端·vue.js
excel42 分钟前
webpack 检出图 第 二 节
前端
excel44 分钟前
webpack 检出图 第 一 节
前端
专注前端不学习一天浑身难受1 小时前
基于uniapp 实现画板签字
前端·uniapp
低代码布道师1 小时前
加油站小程序实战教程11会员注册
前端·javascript·低代码·小程序
好_快1 小时前
Lodash源码阅读-apply
前端·javascript·源码阅读
好_快1 小时前
Lodash源码阅读-getNative
前端·javascript·源码阅读
luoganttcc2 小时前
Cesium 加载 本地 b3dm 格式文件 并且 获取鼠标点击处经纬度 (亲测可用)
前端·javascript·3d