Linux环境配置

1.1 jdk安装配置
tar xf jdk-8u241-linux-x64.tar.gz -C /data/software/
echo "export JAVA_HOME=/data/software/jdk1.8.0_241" >> /etc/profile
echo "export PATH=\$JAVA_HOME/bin:\$PATH" >> /etc/profile
source /etc/profile
java -version
1.2 Nodejs
wget -c https://nodejs.org/dist/v14.15.2/node-v14.15.2-linux-x64.tar.xz
tar xf node-v14.15.2-linux-x64.tar.xz -C /data/software/
echo "export NOJS_BASE=/data/software/node-v14.15.2-linux-x64" >> /etc/profile
echo "export PATH=$NOJS_BASE/bin:\$PATH" >> /etc/profile
source /etc/profile
node -v
npm -v
1.3 Mvn配置
wget -c https://mirror.bit.edu.cn/apache/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz
tar xf apache-maven-3.6.3-bin.tar.gz -C /data/software/
echo "export MVN_BASE=/data/software/apache-maven-3.6.3-bin" >> /etc/profile
echo "export PATH=$MVN_BASE/bin:\$PATH" >> /etc/profile
source /etc/profile
mvn -version
1.4 Erlang
#github: https://github.com/erlang/otp
yum -y install make gcc gcc-c++ kernel-devel \
m4 ncurses-devel openssl-devel unixODBC \
unixODBC-devel httpd python-simplejson

tar xf otp_src_23.1.2.tar.gz
cd otp_src_23.1.2/

./configure  --prefix=/usr/local/erlang \
--enable-smp-support  \
--enable-threads  \
--enable-sctp \
--enable-kernel-poll \
--enable-hipe  \
--with-ssl \
--without-javac
make
make install

echo "export PATH=\$PATH:/usr/local/erlang/bin" >> /etc/profile
source /etc/profile
erl -version