-
Tech Note 정보
-
stdio.h 님이 작성하신 글입니다.
-
카테고리: [ Apache Tomcat ]
-
-
-
-
조회수: 3385
1. 설치
[ec2-user@ip-10-0-1-110 home]$ sudo yum install tomcat7
Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main/latest | 2.1 kB 00:00
amzn-updates/latest | 2.3 kB 00:00
Resolving Dependencies
--> Running transaction check
---> Package tomcat7.noarch 0:7.0.70-1.18.amzn1 will be installed
--> Processing Dependency: tomcat7-lib = 7.0.70-1.18.amzn1 for package: tomcat7-7.0.70-1.18.amzn1.noarch
--> Processing Dependency: apache-commons-logging for package: tomcat7-7.0.70-1.18.amzn1.noarch
--> Processing Dependency: apache-commons-daemon for package: tomcat7-7.0.70-1.18.amzn1.noarch
--> Processing Dependency: apache-commons-dbcp for package: tomcat7-7.0.70-1.18.amzn1.noarch
--> Processing Dependency: apache-commons-collections for package: tomcat7-7.0.70-1.18.amzn1.noarch
--> Processing Dependency: apache-commons-pool for package: tomcat7-7.0.70-1.18.amzn1.noarch
--> Running transaction check
---> Package apache-commons-collections.noarch 0:3.2.2-3.10.amzn1 will be installed
---> Package apache-commons-daemon.x86_64 0:1.0.7-1.6.amzn1 will be installed
---> Package apache-commons-dbcp.noarch 0:1.4-7.7.amzn1 will be installed
---> Package apache-commons-logging.noarch 0:1.1.1-16.8.amzn1 will be installed
---> Package apache-commons-pool.noarch 0:1.5.6-1.7.amzn1 will be installed
---> Package tomcat7-lib.noarch 0:7.0.70-1.18.amzn1 will be installed
--> Processing Dependency: tomcat7-jsp-2.2-api = 7.0.70-1.18.amzn1 for package: tomcat7-lib-7.0.70-1.18.amzn1.noarch
--> Processing Dependency: tomcat7-servlet-3.0-api = 7.0.70-1.18.amzn1 for package: tomcat7-lib-7.0.70-1.18.amzn1.noarch
--> Processing Dependency: tomcat7-el-2.2-api = 7.0.70-1.18.amzn1 for package: tomcat7-lib-7.0.70-1.18.amzn1.noarch
--> Processing Dependency: ecj >= 1:4.2.1 for package: tomcat7-lib-7.0.70-1.18.amzn1.noarch
--> Running transaction check
---> Package ecj.x86_64 1:4.2.1-4.15.amzn1 will be installed
---> Package tomcat7-el-2.2-api.noarch 0:7.0.70-1.18.amzn1 will be installed
---> Package tomcat7-jsp-2.2-api.noarch 0:7.0.70-1.18.amzn1 will be installed
---> Package tomcat7-servlet-3.0-api.noarch 0:7.0.70-1.18.amzn1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================
Package Arch Version Repository Size
====================================================================================================
Installing:
tomcat7 noarch 7.0.70-1.18.amzn1 amzn-updates 94 k
Installing for dependencies:
apache-commons-collections noarch 3.2.2-3.10.amzn1 amzn-updates 531 k
apache-commons-daemon x86_64 1.0.7-1.6.amzn1 amzn-main 51 k
apache-commons-dbcp noarch 1.4-7.7.amzn1 amzn-main 161 k
apache-commons-logging noarch 1.1.1-16.8.amzn1 amzn-main 131 k
apache-commons-pool noarch 1.5.6-1.7.amzn1 amzn-main 101 k
ecj x86_64 1:4.2.1-4.15.amzn1 amzn-main 1.4 M
tomcat7-el-2.2-api noarch 7.0.70-1.18.amzn1 amzn-updates 81 k
tomcat7-jsp-2.2-api noarch 7.0.70-1.18.amzn1 amzn-updates 93 k
tomcat7-lib noarch 7.0.70-1.18.amzn1 amzn-updates 3.9 M
tomcat7-servlet-3.0-api noarch 7.0.70-1.18.amzn1 amzn-updates 212 k
Transaction Summary
====================================================================================================
Install 1 Package (+10 Dependent packages)
Total download size: 6.7 M
Installed size: 7.5 M
Is this ok [y/d/N]: y
Downloading packages:
(1/11): apache-commons-collections-3.2.2-3.10.amzn1.noarch.rpm | 531 kB 00:00
(2/11): apache-commons-daemon-1.0.7-1.6.amzn1.x86_64.rpm | 51 kB 00:00
(3/11): apache-commons-dbcp-1.4-7.7.amzn1.noarch.rpm | 161 kB 00:00
(4/11): apache-commons-logging-1.1.1-16.8.amzn1.noarch.rpm | 131 kB 00:00
(5/11): apache-commons-pool-1.5.6-1.7.amzn1.noarch.rpm | 101 kB 00:00
(6/11): ecj-4.2.1-4.15.amzn1.x86_64.rpm | 1.4 MB 00:00
(7/11): tomcat7-7.0.70-1.18.amzn1.noarch.rpm | 94 kB 00:00
(8/11): tomcat7-el-2.2-api-7.0.70-1.18.amzn1.noarch.rpm | 81 kB 00:00
(9/11): tomcat7-jsp-2.2-api-7.0.70-1.18.amzn1.noarch.rpm | 93 kB 00:00
(10/11): tomcat7-lib-7.0.70-1.18.amzn1.noarch.rpm | 3.9 MB 00:00
(11/11): tomcat7-servlet-3.0-api-7.0.70-1.18.amzn1.noarch.rpm | 212 kB 00:00
----------------------------------------------------------------------------------------------------
Total 6.8 MB/s | 6.7 MB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : apache-commons-pool-1.5.6-1.7.amzn1.noarch 1/11
Installing : apache-commons-dbcp-1.4-7.7.amzn1.noarch 2/11
Installing : apache-commons-collections-3.2.2-3.10.amzn1.noarch 3/11
Installing : tomcat7-servlet-3.0-api-7.0.70-1.18.amzn1.noarch 4/11
Installing : tomcat7-el-2.2-api-7.0.70-1.18.amzn1.noarch 5/11
Installing : tomcat7-jsp-2.2-api-7.0.70-1.18.amzn1.noarch 6/11
Installing : apache-commons-logging-1.1.1-16.8.amzn1.noarch 7/11
Installing : apache-commons-daemon-1.0.7-1.6.amzn1.x86_64 8/11
Installing : 1:ecj-4.2.1-4.15.amzn1.x86_64 9/11
Installing : tomcat7-lib-7.0.70-1.18.amzn1.noarch 10/11
Installing : tomcat7-7.0.70-1.18.amzn1.noarch 11/11
Verifying : apache-commons-pool-1.5.6-1.7.amzn1.noarch 1/11
Verifying : 1:ecj-4.2.1-4.15.amzn1.x86_64 2/11
Verifying : apache-commons-daemon-1.0.7-1.6.amzn1.x86_64 3/11
Verifying : tomcat7-el-2.2-api-7.0.70-1.18.amzn1.noarch 4/11
Verifying : apache-commons-logging-1.1.1-16.8.amzn1.noarch 5/11
Verifying : tomcat7-servlet-3.0-api-7.0.70-1.18.amzn1.noarch 6/11
Verifying : tomcat7-7.0.70-1.18.amzn1.noarch 7/11
Verifying : apache-commons-dbcp-1.4-7.7.amzn1.noarch 8/11
Verifying : tomcat7-lib-7.0.70-1.18.amzn1.noarch 9/11
Verifying : apache-commons-collections-3.2.2-3.10.amzn1.noarch 10/11
Verifying : tomcat7-jsp-2.2-api-7.0.70-1.18.amzn1.noarch 11/11
Installed:
tomcat7.noarch 0:7.0.70-1.18.amzn1
Dependency Installed:
apache-commons-collections.noarch 0:3.2.2-3.10.amzn1
apache-commons-daemon.x86_64 0:1.0.7-1.6.amzn1
apache-commons-dbcp.noarch 0:1.4-7.7.amzn1
apache-commons-logging.noarch 0:1.1.1-16.8.amzn1
apache-commons-pool.noarch 0:1.5.6-1.7.amzn1
ecj.x86_64 1:4.2.1-4.15.amzn1
tomcat7-el-2.2-api.noarch 0:7.0.70-1.18.amzn1
tomcat7-jsp-2.2-api.noarch 0:7.0.70-1.18.amzn1
tomcat7-lib.noarch 0:7.0.70-1.18.amzn1
tomcat7-servlet-3.0-api.noarch 0:7.0.70-1.18.amzn1
Complete!
2. 기동
[ec2-user@ip-10-0-1-110 home]$ sudo service tomcat7 start
[ec2-user@ip-10-0-1-110 home]$ [ OK ]
3. 설치된 위치
[ec2-user@ip-10-0-1-110 tomcat7]$ pwd
/usr/share/tomcat7
[ec2-user@ip-10-0-1-110 tomcat7]$ ls -l
합계 4
drwxr-xr-x 2 root root 4096 9월 27 05:56 bin
lrwxrwxrwx 1 root tomcat 12 9월 27 05:56 conf -> /etc/tomcat7
lrwxrwxrwx 1 root tomcat 23 9월 27 05:56 lib -> /usr/share/java/tomcat7
lrwxrwxrwx 1 root tomcat 16 9월 27 05:56 logs -> /var/log/tomcat7
lrwxrwxrwx 1 root tomcat 23 9월 27 05:56 temp -> /var/cache/tomcat7/temp
lrwxrwxrwx 1 root tomcat 24 9월 27 05:56 webapps -> /var/lib/tomcat7/webapps
lrwxrwxrwx 1 root tomcat 23 9월 27 05:56 work -> /var/cache/tomcat7/work