728x90
반응형
[Ubuntu Linux] 톰캣 서버 설치하기 |
1. 패키지에 톰캣 버전 확인
javanian@ubuntu:~$ apt-cache search tomcat : grep tomcat yasat - simple stupid audit tool javanian@ubuntu:~$ apt-cache search tomcat | grep tomcat libtomcat9-embed-java - Apache Tomcat 9 - Servlet and JSP engine -- embed libraries libtomcat9-java - Apache Tomcat 9 - Servlet and JSP engine -- core libraries libtomcatjss-java - JSSE implementation using JSS for Tomcat tomcat-jakartaee-migration - Apache Tomcat migration tool for Jakarta EE tomcat9 - Apache Tomcat 9 - Servlet and JSP engine tomcat9-admin - Apache Tomcat 9 - Servlet and JSP engine -- admin web applications tomcat9-common - Apache Tomcat 9 - Servlet and JSP engine -- common files tomcat9-docs - Apache Tomcat 9 - Servlet and JSP engine -- documentation tomcat9-examples - Apache Tomcat 9 - Servlet and JSP engine -- example web applications tomcat9-user - Apache Tomcat 9 - Servlet and JSP engine -- tools to create user instances javanian@ubuntu:~$ |
2. 톰캣 최신 버전 다운로드
3. 압축풀기
- tar -zxvf apache-tomcat-11.0.0-M1.tar.gz
4. 관리하기 적당한 폴더로 이동
- /usr/local 하위에 tomcat 폴더를 만든다
- javanian@ubuntu:/usr/local$ sudo mv ~/download/apache-tomcat-11.0.0-M1/ tomcat/
javanian@ubuntu:/usr/local/tomcat$ ll total 12 drwxr-xr-x 3 root root 4096 Feb 21 09:32 ./ drwxr-xr-x 11 root root 4096 Feb 21 09:24 ../ drwxrwxr-x 9 javanian javanian 4096 Feb 21 09:30 apache-tomcat-11.0.0-M1/ javanian@ubuntu:/usr/local/tomcat$ |
5. 톰캣 실행
- /usr/local/tomcat/apache-tomcat-11.0.0-M1/bin/startup.sh
- /usr/local/tomcat/apache-tomcat-11.0.0-M1/bin/shutdown.sh
javanian@ubuntu:/usr/local/tomcat/apache-tomcat-11.0.0-M1/bin$ ls bootstrap.jar ciphers.bat configtest.bat digest.sh migrate.sh shutdown.sh tomcat-native.tar.gz version.sh catalina.bat ciphers.sh configtest.sh makebase.bat setclasspath.bat startup.bat tool-wrapper.bat catalina.sh commons-daemon.jar daemon.sh makebase.sh setclasspath.sh startup.sh tool-wrapper.sh catalina-tasks.xml commons-daemon-native.tar.gz digest.bat migrate.bat shutdown.bat tomcat-juli.jar version.bat javanian@ubuntu:/usr/local/tomcat/apache-tomcat-11.0.0-M1/bin$ sh startup.sh Neither the JAVA_HOME nor the JRE_HOME environment variable is defined At least one of these environment variable is needed to run this program |
다음편에 jdk설치 후 톰캣 실행을 포스팅 할 예정입니다.
728x90
반응형
'네트워크,서버,프로그래밍' 카테고리의 다른 글
[Ubuntu Linux] jdk 환경(PATH) 설정 및 톰켓 서버 실행하기 (0) | 2023.02.21 |
---|---|
[Ubuntu Linux] Linux(Unix)에 압축본 JDK 설치하기 (0) | 2023.02.21 |
[Ubuntu Linux] 리눅스 [Linux] root 비밀번호 설정 (0) | 2023.02.21 |
[미완료 Ubuntu Linux] 리눅스 서버 구축 #1 - Oracle 설치 (0) | 2023.02.20 |
[Ubuntu Linux] Linux(Unix) 디렉토리 / 파일 권한 관리 (chmod, chown, chgrp, umask) (0) | 2023.02.20 |