centos7에 apache-tomcat8 설치!
2021. 1. 13. 16:03ㆍ리눅스/centos
728x90
반응형
1. 아파치 톰캣 다운로드(url복사하기)
- 1=>톰캣 페이지 접속 2=> tomcat8선택 3=> tar.gz 우클릭 4=> 링크주소복사
2. 설치할 위치 디렉토리 이동 후 다운로드 한다
1
2
3
4
5
6
7
8
9
10
11
12
|
# cd # cd /usr/local/
# wget https://downloads.apache.org/tomcat/tomcat-8/v8.5.61/bin/apache-tomcat-8.5.61.tar.gz --2021-01-13 16:02:49-- https://downloads.apache.org/tomcat/tomcat-8/v8.5.61/bin/apache-tomcat-8.5.61.tar.gz
Resolving downloads.apache.org (downloads.apache.org)... 88.99.95.219, 2a01:4f8:10a:201a::2
Connecting to downloads.apache.org (downloads.apache.org)|88.99.95.219|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10492067 (10M) [application/x-gzip]
Saving to: ‘apache-tomcat-8.5.61.tar.gz’
100%[===================================================================================================================================================================================================>] 10,492,067 1.89MB/s in 8.0s
2021-01-13 16:02:58 (1.26 MB/s) - ‘apache-tomcat-8.5.61.tar.gz’ saved [10492067/10492067]
|
cs |
3. 설치 확인 후 압축풀고 확인! 아파치 폴더 생김!
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#ls -al
합계 10276
dr-xr-xr-x. 17 root root 259 1월 13 16:02 .
dr-xr-xr-x. 17 root root 259 1월 13 16:02 ..
-rw-r--r--. 1 root root 10492067 12월 3 23:18 apache-tomcat-8.5.61.tar.gz
lrwxrwxrwx. 1 root root 7 1월 12 16:08 bin -> usr/bin
dr-xr-xr-x. 6 root root 4096 1월 12 16:34 boot
drwxr-xr-x. 19 root root 3140 1월 13 15:41 dev
drwxr-xr-x. 148 root root 8192 1월 13 15:42 etc
drwxr-xr-x. 3 root root 22 1월 12 16:29 home
lrwxrwxrwx. 1 root root 7 1월 12 16:08 lib -> usr/lib
lrwxrwxrwx. 1 root root 9 1월 12 16:08 lib64 -> usr/lib64
drwxr-xr-x. 2 root root 6 4월 11 2018 media
drwxr-xr-x. 2 root root 6 4월 11 2018 mnt
drwxr-xr-x. 4 root root 49 1월 13 15:22 opt
dr-xr-xr-x. 206 root root 0 1월 13 15:41 proc
dr-xr-x---. 16 root root 4096 1월 13 15:42 root
drwxr-xr-x. 44 root root 1300 1월 13 15:43 run
lrwxrwxrwx. 1 root root 8 1월 12 16:08 sbin -> usr/sbin
drwxr-xr-x. 2 root root 6 4월 11 2018 srv
dr-xr-xr-x. 13 root root 0 1월 13 15:41 sys
drwxrwxrwt. 26 root root 4096 1월 13 16:01 tmp
drwxr-xr-x. 13 root root 155 1월 12 16:08 usr
drwxr-xr-x. 22 root root 4096 1월 12 16:33 var
# tar -zxvf apache-tomcat-8.5.61.tar.gz
|
cs |
확인
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#ls -al
합계 10276
dr-xr-xr-x. 18 root root 287 1월 13 16:06 .
dr-xr-xr-x. 18 root root 287 1월 13 16:06 ..
drwxr-xr-x. 9 root root 220 1월 13 16:06 apache-tomcat-8.5.61
-rw-r--r--. 1 root root 10492067 12월 3 23:18 apache-tomcat-8.5.61.tar.gz
dr-xr-xr-x. 6 root root 4096 1월 12 16:34 boot
drwxr-xr-x. 19 root root 3140 1월 13 15:41 dev
drwxr-xr-x. 148 root root 8192 1월 13 15:42 etc
drwxr-xr-x. 3 root root 22 1월 12 16:29 home
lrwxrwxrwx. 1 root root 7 1월 12 16:08 lib -> usr/lib
lrwxrwxrwx. 1 root root 9 1월 12 16:08 lib64 -> usr/lib64
drwxr-xr-x. 2 root root 6 4월 11 2018 media
drwxr-xr-x. 2 root root 6 4월 11 2018 mnt
drwxr-xr-x. 4 root root 49 1월 13 15:22 opt
dr-xr-xr-x. 207 root root 0 1월 13 15:41 proc
dr-xr-x---. 16 root root 4096 1월 13 15:42 root
drwxr-xr-x. 44 root root 1300 1월 13 15:43 run
lrwxrwxrwx. 1 root root 8 1월 12 16:08 sbin -> usr/sbin
drwxr-xr-x. 2 root root 6 4월 11 2018 srv
dr-xr-xr-x. 13 root root 0 1월 13 15:41 sys
drwxrwxrwt. 26 root root 4096 1월 13 16:04 tmp
drwxr-xr-x. 13 root root 155 1월 12 16:08 usr
drwxr-xr-x. 22 root root 4096 1월 12 16:33 var
|
cs |
4. 톰캣 실행
실행파일 위치 이동하여 실행한다!
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# cd /usr/local/apache-tomcat-8.5.61/bin
# ls -al
합계 872
drwxr-x---. 2 root root 4096 1월 13 16:12 .
drwxr-xr-x. 9 root root 220 1월 13 16:12 ..
-rw-r-----. 1 root root 36132 12월 3 23:05 bootstrap.jar
-rw-r-----. 1 root root 1664 12월 3 23:07 catalina-tasks.xml
-rw-r-----. 1 root root 16655 12월 3 23:05 catalina.bat
-rwxr-x---. 1 root root 25121 12월 3 23:05 catalina.sh
-rw-r-----. 1 root root 2123 12월 3 23:05 ciphers.bat
-rwxr-x---. 1 root root 1997 12월 3 23:05 ciphers.sh
-rw-r-----. 1 root root 208136 12월 3 23:05 commons-daemon-native.tar.gz
-rw-r-----. 1 root root 25287 12월 3 23:05 commons-daemon.jar
-rw-r-----. 1 root root 2040 12월 3 23:05 configtest.bat
-rwxr-x---. 1 root root 1922 12월 3 23:05 configtest.sh
-rwxr-x---. 1 root root 9100 12월 3 23:05 daemon.sh
-rw-r-----. 1 root root 2091 12월 3 23:05 digest.bat
-rwxr-x---. 1 root root 1965 12월 3 23:05 digest.sh
-rw-r-----. 1 root root 3460 12월 3 23:05 setclasspath.bat
-rwxr-x---. 1 root root 3708 12월 3 23:05 setclasspath.sh
-rw-r-----. 1 root root 2020 12월 3 23:05 shutdown.bat
-rwxr-x---. 1 root root 1902 12월 3 23:05 shutdown.sh
-rw-r-----. 1 root root 2022 12월 3 23:05 startup.bat
-rwxr-x---. 1 root root 1904 12월 3 23:05 startup.sh
-rw-r-----. 1 root root 51204 12월 3 23:05 tomcat-juli.jar
-rw-r-----. 1 root root 421399 12월 3 23:05 tomcat-native.tar.gz
-rw-r-----. 1 root root 4574 12월 3 23:05 tool-wrapper.bat
-rwxr-x---. 1 root root 5540 12월 3 23:05 tool-wrapper.sh
-rw-r-----. 1 root root 2026 12월 3 23:05 version.bat
-rwxr-x---. 1 root root 1908 12월 3 23:05 version.sh
# ./startup.sh
Using CATALINA_BASE: /usr/local/apache-tomcat-8.5.61
Using CATALINA_HOME: /usr/local/apache-tomcat-8.5.61
Using CATALINA_TMPDIR: /usr/local/apache-tomcat-8.5.61/temp
Using JRE_HOME: /usr
Using CLASSPATH: /usr/local/apache-tomcat-8.5.61/bin/bootstrap.jar:/usr/local/apache-tomcat-8.5.61/bin/tomcat-juli.jar
Using CATALINA_OPTS:
Tomcat started.
|
cs |
5. 실행확인!
※ centos는 설치시 jdk가 설치 되어 바로 실행 했다!
jdk설치와 서버 재기동시 톰캣 자동 실행 도 해볼예정임
728x90
'리눅스 > centos' 카테고리의 다른 글
linux centos7 에 방화벽 포트 추가하기(firewall) (0) | 2021.01.26 |
---|---|
centos7 에서 hostname 확인하고 변경 하기! (1) | 2021.01.15 |
centos 서버 부팅 시 톰캣 자동 실행 하기! (7) | 2021.01.14 |
virtualbox 리눅스(Linux) CentOS7 ← → 외부 접속 설정 (PuTTY) (0) | 2021.01.13 |
VirtualBox에 linux CentOS7설치하기! (0) | 2021.01.12 |