配置java
配置环境变量
sudo vim /etc/profile
JAVA_HOME=/home/ding/environment/jdk1.8.0_311
CLASSPATH=.:$JAVA_HOME/bin.tools.jar
PATH=$JAVA_HOME/bin:$PATH
export JAVA_HOME CLASSPATH PATH
使配置生效
source /etc/profile
java -version
sudo vim /etc/bash.bashrc
source /etc/bash.bashrc
安装git
sudo apt-get update
sudo apt-get install git
配置
git config --global user.name "ding"
git config --global user.email "13035070219@163.com"
生成密钥
ssh-keygen -t rsa -C "13035070219@163.com"
测试链接
ssh -T git@github.com
安装maven
export MAVEN_HOME=/home/ding/environment/apache-maven-3.8.4
export PATH=$PATH:$MAVEN_HOME/bin
source /etc/profile
mvn -version
和java一样,将maven环境变量加入bash
sudo vim /etc/bash.bashrc
source /etc/bash.bashrc
安装node
sudo apt-get install nodejs
安装npm
sudo apt-get install npm