有时电脑重装系统,开发环境重新配置总要搞半天,在网上反复查询,于是整理一下自己的开发环境配置流程,便于使用。
Java
下载地址:
- Oracle JDK:Java Downloads | Oracle
- Microsoft Build of OpenJDK:下载 OpenJDK 的 Microsoft 内部版本 | Microsoft Docs
环境变量:
-
JAVA_HOME: JDK安装目录
-
Path: %JAVA_HOME%\bin
Git
下载地址:
Git-LFS插件:
Python
最新版下载地址:
3.7.9版下载地址
一些机器学习库使用3.7版本兼容性较好。3.7.9是3.7最后一个提供安装包的版本。
pypi镜像:
Node.js
下载地址:
NPM镜像:
npm config set registry https://registry.npmmirror.com
Maven
下载地址:
环境变量:
- M2_HOME: Maven安装目录
- Path: %M2_HOME%\bin
虽然Maven官网的配置方案没有使用M2_HOME这一变量,但为了便于Intellij IDEA识别Maven的路径还是保留了M2_HOME。
镜像配置:
%M2_HOME%\conf\settings.xml <mirrors>
中添加如下:
<mirror>
<id>aliyunmaven</id>
<mirrorOf>*</mirrorOf>
<name>阿里云公共仓库</name>
<url>https://maven.aliyun.com/repository/public</url>
</mirror>
MySQL
下载地址:
MongoDB
下载地址:
Windows Subsystem for Linux
一般使用Debian即可。
国内镜像:
开发工具包:
sudo apt install build-essential
sudo apt install git
sudo apt install ruby-full
sudo apt install zsh
sudo apt install curl
sudo apt install wget
临时代理:
export http_proxy=192.168.1.100:7890
export https_proxy=192.168.1.100:7890
Oh My Zsh配置:
-
安装
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
-
zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
-
zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
-
.zshrc配置
plugins=( [plugins...] zsh-autosuggestions zsh-syntax-highlighting)
Docker
下载地址:
Get Started with Docker | Docker
常用开发工具
Visual Studio Code
下载地址:
国内加速:
将下载链接域名替换为国内CDN地址vscode.cdn.azure.cn
Intellij IDEA
下载地址:
Postman
下载地址:
VirtualBox
下载地址:
Typora
下载地址:
破解方式:
下载解包工具Mas0nShi/typoraCracker: A extract & decryption and pack & encryption tools for typora. (github.com),解包方式见README。解包后需要替换文件,参考[resolved] Windows版无法激活 · Issue #9 · Mas0nShi/typoraCracker (github.com)