先安装Java SDK
yum install -y java-1.8.0-openjdk-devel
接着下载lein,并执行下载环境
mkdir -p /opt/bin
wget https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein
mv lein /opt/bin/
chmod +x /opt/bin/lein
wget https://github.com/technomancy/leiningen/releases/download/2.7.1/leiningen-2.7.1-standalone.zip
mkdir -p ~/.lein/self-installs/
mv leiningen-2.7.1-standalone.zip ~/.lein/self-installs/leiningen-2.7.1-standalone.jar
/opt/bin/lein
/opt/bin/lein upgrade
/opt/bin/lein repl