lein 설치

category DevOps/기타 2020. 3. 9. 13:54
728x90
반응형

1. 임시 디렉토리 생성

  • 설치 파일을 다운 받을 임시 디렉토리 (temp_src) 를 생성하고 이동한다.
[root@server ~]# mkdir /home/temp_src
[root@server ~]# cd /home/temp_src

2. 설치 파일 다운로드

[root@server temp_src]# wget https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein
--2020-03-05 08:27:48--  https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.108.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 13369 (13K) [text/plain]
Saving to: ‘lein’
 
100%[===========================================================================================================================================================>] 13,369      --.-K/s   in 0.1s
 
2020-03-05 08:27:50 (98.8 KB/s) - ‘lein’ saved [13369/13369]

3. 경로 이동

  • 실제로 사용할 어플리케이션 (apps) 경로로 이동한다.
[root@server temp_src]# mv lein /home/apps/.

4. 복사 및 권한 부여

  • 실제로 사용할 어플리케이션 (apps) 경로로 이동한다.
[root@server temp_src]# cp /home/apps/lein /usr/bin
[root@server temp_src]# chmod +x /usr/bin/lein

5. 실행

[root@server temp_src]# /usr/bin/lein
Downloading Leiningen to /root/.lein/self-installs/leiningen-2.9.2-standalone.jar now...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   618  100   618    0     0   1344      0 --:--:-- --:--:-- --:--:--  1352
 27 13.9M   27 3989k    0     0  1110k      0  0:00:12  0:00:03  0:00:09 1390k

6. 버전 확인

[root@server temp_src]# lein version
Leiningen 2.9.2 on Java 1.8.0_242 OpenJDK 64-Bit Server VM
728x90
반응형

'DevOps > 기타' 카테고리의 다른 글

kafka  (0) 2021.12.20
sbt 설치  (0) 2020.03.09
zookeeper 설치  (0) 2020.03.09
openJDK 설치  (0) 2020.03.09
Kafka  (0) 2018.12.31