메이븐(Maven)에서 톰캣 SSL(HTTPS) 설정
- keystore 생성
- pom.xml 파일 tomcat plugin 수정 (httpsPort, keystoreFile)
<build>
<finalName>example</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.5</version>
</plugin>
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
<port>8080</port>
<httpsPort>8443</httpsPort>
<keystoreFile>c:/test.keystore</keystoreFile>
<path>/</path>
<contextReloadable>true</contextReloadable>
<systemProperties>
<JAVA_OPTS>-Xms512m -Xmx512m --XX:MaxPermSize=256m</JAVA_OPTS>
</systemProperties>
</configuration>
</plugin>
</plugins>
</build>
'IT > Was' 카테고리의 다른 글
톰캣 불필요한웹메서드 제거 (0) | 2020.07.14 |
---|---|
[Tomcat]도커(Docker)에서 톰캣 설치 (0) | 2020.06.11 |
Jboss AS 7 서버로깅설정 (0) | 2014.03.24 |
JBoss AS 7 설치 (0) | 2014.03.07 |
웹로직 64비트 설치 (0) | 2014.02.10 |
톰캣 불필요한웹메서드 제거
1. apache-tomcat-8.0.12/conf/web.xml 에 <security-constraint>...</security-constraint> 추가 후 톰캣 재기동
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<security-constraint>
<web-resource-collection>
<web-resource-name>Forbidden</web-resource-name>
<url-pattern>/*</url-pattern>
<http-method>HEAD</http-method>
<http-method>OPTIONS</http-method>
</web-resource-collection>
<auth-constraint />
</security-constraint>
</web-app>
2. 점검 방법
- telnet url port
- 아무것도 보이지 않는 상태에서 OPTIONS / HTTP/1.0 입력 후 엔터 두번 - curl
[root@localhost ~]# curl -I -X OPTIONS localhost:18080 HTTP/1.1 403 Forbidden Server: Apache-Coyote/1.1 Cache-Control: private Expires: Thu, 01 Jan 1970 00:00:00 UTC Allow: GET,HEAD,OPTIONS Content-Length: 0 Date: Tue, 14 Jul 2020 02:14:30 GMT |
'IT > Was' 카테고리의 다른 글
메이븐(Maven)에서 톰캣 SSL(HTTPS) 설정 (0) | 2020.10.14 |
---|---|
[Tomcat]도커(Docker)에서 톰캣 설치 (0) | 2020.06.11 |
Jboss AS 7 서버로깅설정 (0) | 2014.03.24 |
JBoss AS 7 설치 (0) | 2014.03.07 |
웹로직 64비트 설치 (0) | 2014.02.10 |
[Tomcat]도커(Docker)에서 톰캣 설치
doc : https://docs.docker.com/engine/reference/commandline/search/
docker search
Description Search the Docker Hub for images Usage docker search [OPTIONS] TERM Extended description Search Docker Hub for images For example uses of this command, refer to the examples section...
docs.docker.com
-docker 이미지 검색 : docker search [옵션] <검색어>
[root@localhost ~]# docker search tomcat8
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
ashince/tomcat8 Tomcat GUI Manager pre-configured docker ima… 5
inovatrend/tomcat8-java8 Tomcat 8 on Oracle Java 8 3 [OK]
rossbachp/tomcat8 Build an optimized reusable apache tomcat 8 … 2
podbox/tomcat8 2 [OK]
dockerbase/tomcat8 Docker Base: Tomcat8 - https://github.com/do… 1 [OK]
oobsri/tomcat8 Testing CI Jobs with different names. 1
slpcat/tomcat8 1
touche/tomcat8 0
prasadklv/tomcat8.5 tomcat8.5 0
junbowang/tomcat8-sshd docker image for tomcat8 with sshd enabled. 0
rabbitsoft/tomcat8-redis-session-valve 0
silentheartbeat/tomcat8-jre8 tomcat8 with jre8 webapps folder cleared 0 [OK]
jelastic/tomcat8 DEPRECATED. Please, refer to the jelastic/to… 0
bskim1029/tomcat8 0
xorol/tomcat85-339-s2i 0
anspfeifer/tomcat8 image para tomcat8 0
time90/tomcat8 jdk1.8 / tomcat8.5.50 0
cloudbourne/tomcat8-helloworld Sample image with HelloWorld running on Tomc… 0
l2as/tomcat8 Image Tomcat8 0 [OK]
kubesphere/tomcat85-java11-centos7 0
socialpro/tomcat8 Docker tomcat8 image 0
kubesphere/tomcat85-java8-centos7 0
kubesphere/tomcat85-java8-runtime 0
kubesphere/tomcat85-java11-runtime 0
touchvie/tomcat8-jdk8 Tomcat 8 and Oracle JDK 8 0 [OK]
-설치 : docker run -d -i -t -p 18080:8080 -p 18009:8009 --name tomcat8 dockerbase/tomcat8
[root@localhost ~]# docker run -d -i -t -p 18080:8080 -p 18009:8009 --name tomcat8 dockerbase/tomcat8
Unable to find image 'dockerbase/tomcat8:latest' locally
latest: Pulling from dockerbase/tomcat8
a3ed95caeb02: Pulling fs layer
bb92073c7a94: Pull complete
255c0b817d4e: Pull complete
b5111d9274a4: Pull complete
2b5c23db3bbc: Pull complete
1fb9bd8e91f3: Pull complete
f2b48bb41d4e: Pull complete
7fbd7408cb99: Pull complete
b5ab1bbe2081: Pull complete
cf2582663501: Pull complete
4d780002cdc0: Pull complete
7e6d4453fc09: Pull complete
36cc22575d61: Pull complete
af4f8342e273: Pull complete
e021e0fe0968: Pull complete
b6b32424f851: Pull complete
f17113fd1f80: Pull complete
bb2697b863c7: Pull complete
00f466febaf3: Pull complete
842952453b3f: Pull complete
d5b5bff76a3e: Pull complete
556ce9efb4e1: Pull complete
60555ad1e6fc: Pull complete
d5a2e2afe282: Pull complete
5d31f7fcd64b: Pull complete
4d792de2d7e3: Pull complete
af64554681e8: Pull complete
a4f5a7289a32: Pull complete
17b2b9aae988: Pull complete
99dff84d92cd: Pull complete
22094ffc4c63: Pull complete
d281a0e8e98b: Pull complete
d107f542e438: Pull complete
933dd0c3fbe5: Pull complete
fe93e74d8af5: Pull complete
514fd448c1c3: Pull complete
9ab15c565bba: Pull complete
a73254a0450f: Pull complete
281ea008ac1a: Pull complete
0d43d05cc5a9: Pull complete
6cd6ca2ec832: Pull complete
89d1e8f1aecc: Pull complete
cff3a45c49ec: Pull complete
c403d510f331: Pull complete
3e9787d7df06: Pull complete
8e36be35dd64: Pull complete
61a92d53649f: Pull complete
a140004a5fed: Pull complete
Digest: sha256:340142649d60b1802d4a921e7d5701a1e3828fbf8ebcaad4ec1087d3d4c0d949
Status: Downloaded newer image for dockerbase/tomcat8:latest
ce53df511b7ff28ccabc7ccdadefe352b61b921ade2f5be8a3f040d866da5eec
-설치확인
[root@localhost ~]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ce53df511b7f dockerbase/tomcat8 "bash" About an hour ago Up About an hour 0.0.0.0:18009->8009/tcp, 0.0.0.0:18080->8080/tcp tomcat8
d41e7c2f0547 jenkins/jenkins "/sbin/tini -- /usr/…" 2 hours ago Up 2 hours 0.0.0.0:50000->50000/tcp, 0.0.0.0:9000->8080/tcp jenkins
-tomcat 실행 (startup.sh)
[root@localhost ~]# docker exec -it tomcat8 /bin/bash
root@ce53df511b7f:~# cd /usr/local/apache-tomcat-8.0.12/bin
root@ce53df511b7f:/usr/local/apache-tomcat-8.0.12/bin#
root@ce53df511b7f:/usr/local/apache-tomcat-8.0.12/bin# ls -l
total 788
-rw-r--r--. 1 root root 28135 Aug 29 2014 bootstrap.jar
-rw-r--r--. 1 root root 2187 Aug 29 2014 catalina-tasks.xml
-rw-r--r--. 1 root root 13821 Aug 29 2014 catalina.bat
-rwxr-xr-x. 1 root root 21362 Aug 29 2014 catalina.sh
-rw-r--r--. 1 root root 204944 Aug 29 2014 commons-daemon-native.tar.gz
-rw-r--r--. 1 root root 24283 Aug 29 2014 commons-daemon.jar
-rw-r--r--. 1 root root 2040 Aug 29 2014 configtest.bat
-rwxr-xr-x. 1 root root 1922 Aug 29 2014 configtest.sh
-rwxr-xr-x. 1 root root 7888 Aug 29 2014 daemon.sh
-rw-r--r--. 1 root root 2091 Aug 29 2014 digest.bat
-rwxr-xr-x. 1 root root 1965 Aug 29 2014 digest.sh
-rw-r--r--. 1 root root 3430 Aug 29 2014 setclasspath.bat
-rwxr-xr-x. 1 root root 3547 Aug 29 2014 setclasspath.sh
-rw-r--r--. 1 root root 2020 Aug 29 2014 shutdown.bat
-rwxr-xr-x. 1 root root 1902 Aug 29 2014 shutdown.sh
-rw-r--r--. 1 root root 2022 Aug 29 2014 startup.bat
-rwxr-xr-x. 1 root root 1904 Aug 29 2014 startup.sh
-rw-r--r--. 1 root root 40579 Aug 29 2014 tomcat-juli.jar
-rw-r--r--. 1 root root 387417 Aug 29 2014 tomcat-native.tar.gz
-rw-r--r--. 1 root root 4057 Aug 29 2014 tool-wrapper.bat
-rwxr-xr-x. 1 root root 5061 Aug 29 2014 tool-wrapper.sh
-rw-r--r--. 1 root root 2026 Aug 29 2014 version.bat
-rwxr-xr-x. 1 root root 1908 Aug 29 2014 version.sh
root@ce53df511b7f:/usr/local/apache-tomcat-8.0.12/bin# ./startup.sh
Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME: /usr/local/java/jre
Using CLASSPATH: /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar
Tomcat started.
-화면 접속

'IT > Was' 카테고리의 다른 글
메이븐(Maven)에서 톰캣 SSL(HTTPS) 설정 (0) | 2020.10.14 |
---|---|
톰캣 불필요한웹메서드 제거 (0) | 2020.07.14 |
Jboss AS 7 서버로깅설정 (0) | 2014.03.24 |
JBoss AS 7 설치 (0) | 2014.03.07 |
웹로직 64비트 설치 (0) | 2014.02.10 |
Jboss AS 7 서버로깅설정
1.periodic-rotating-file-handler
<periodic-rotating-file-handler name="FILE">
<formatter>
<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
</formatter>
<file relative-to="jboss.server.log.dir" path="server.log"/>
<suffix value=".yyyy-MM-dd"/>
<append value="true"/>
</periodic-rotating-file-handler>
2. size-rotating-file-handler
<size-rotating-file-handler name="size_rotating" autoflush="true">
<level name="DEBUG"/>
<file relative-to="jboss.server.log.dir" path="server.log"/>
<rotate-size value="500k"/>
<formatter>
<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
</formatter>
</size-rotating-file-handler>
3.async-handler
<async-handler name="async_handlers">
<level name="INFO"/>
<queue-length>512</queue-length>
<overflow-action>block</overflow-action>
<subhandlers>
<handler-ref name="FILE"/>
</subhandlers>
</async-handler>
'IT > Was' 카테고리의 다른 글
톰캣 불필요한웹메서드 제거 (0) | 2020.07.14 |
---|---|
[Tomcat]도커(Docker)에서 톰캣 설치 (0) | 2020.06.11 |
JBoss AS 7 설치 (0) | 2014.03.07 |
웹로직 64비트 설치 (0) | 2014.02.10 |
jBoss7 Web Application Deploy 하기 (0) | 2014.01.21 |
JBoss AS 7 설치
- 설치
- 다운로드 : http://www.jboss.org/jbossas/downloads
- 윈도우인 경우 전체 디렉토리 경로상에 띄어쓰기가 포함되지 않도록 주의 - JBoss AS 시작
- 시작 : standalone.bat
- 시작 속성 변경 : standalone.conf.bat
- 또는 java -jar jboss-modules.jar -mp "%JBOSS_HOME%\modules" org.jboss.as.standalone -Djboss.home.dir="%JBOSS_HOME%" - 커맨드라인 인터페이스 서버 연결
- jboss-cli.bat 실행 - 정지
[disconnected /] connect
[standalone@localhost:9999 /] :shutdown
{"outcome" => "success"}
[standalone@localhost:9999 /]
- 스크립트 : jboss-cli.bat --connect command=:shutdown - 재시작
[disconnected /] connect
[standalone@localhost:9999 /] :reload
{"outcome" => "success"}
[standalone@localhost:9999 /]
'IT > Was' 카테고리의 다른 글
[Tomcat]도커(Docker)에서 톰캣 설치 (0) | 2020.06.11 |
---|---|
Jboss AS 7 서버로깅설정 (0) | 2014.03.24 |
웹로직 64비트 설치 (0) | 2014.02.10 |
jBoss7 Web Application Deploy 하기 (0) | 2014.01.21 |
jBoss7 admin 계정 생성 (0) | 2014.01.21 |
웹로직 64비트 설치
웹로직 다운로드 링크 -
http://www.oracle.com/technetwork/middleware/fusion-middleware/downloads/index.html
wls_121200.jar 파일 다운로드
java -jar wls_121200.jar 명령을 이용하여 설치
'IT > Was' 카테고리의 다른 글
[Tomcat]도커(Docker)에서 톰캣 설치 (0) | 2020.06.11 |
---|---|
Jboss AS 7 서버로깅설정 (0) | 2014.03.24 |
JBoss AS 7 설치 (0) | 2014.03.07 |
jBoss7 Web Application Deploy 하기 (0) | 2014.01.21 |
jBoss7 admin 계정 생성 (0) | 2014.01.21 |
jBoss7 Web Application Deploy 하기
standalone.xml 수정
1. enable-welcome-root="true" -> enable-welcome-root="false" 로 수정.
true 상태로 올라가는 경우 path가 중복되면서 예외가 발생 하여 서비스가 시작 되지 않는다.
2. <subsystem xmlns="urn:jboss:domain:deployment-scanner:1.1">
<deployment-scanner path="D:/Source/TEST/" scan-interval="5000" auto-deploy-zipped="true" auto-deploy-exploded="true"/>
</subsystem>
auto-deploy-exploded="false" 를 auto-deploy-exploded="true" 로 변경
'IT > Was' 카테고리의 다른 글
[Tomcat]도커(Docker)에서 톰캣 설치 (0) | 2020.06.11 |
---|---|
Jboss AS 7 서버로깅설정 (0) | 2014.03.24 |
JBoss AS 7 설치 (0) | 2014.03.07 |
웹로직 64비트 설치 (0) | 2014.02.10 |
jBoss7 admin 계정 생성 (0) | 2014.01.21 |
jBoss7 admin 계정 생성
JBOSS_HOME\bin\add-user.bat 실행
a) Management User (mgmt-users.properties)
b) Application User (application-users.properties)
(a): a
Enter the details of the new user to add.
Realm (ManagementRealm) :
Username : admin
Password :
Re-enter Password :
The username 'admin' is easy to guess
Are you sure you want to add user 'admin' yes/no? yes
About to add user 'admin' for realm 'ManagementRealm'
Is this correct yes/no? yes
Added user 'admin' to file 'JBOSS_HOME\standalone\configura
tion\mgmt-users.properties'
Added user 'admin' to file 'JBOSS_HOME\domain\configuration
\mgmt-users.properties'
계속하려면 아무 키나 누르십시오 . . .
관리자 페이지 접속 하기 : http://localhost:9990/
'IT > Was' 카테고리의 다른 글
[Tomcat]도커(Docker)에서 톰캣 설치 (0) | 2020.06.11 |
---|---|
Jboss AS 7 서버로깅설정 (0) | 2014.03.24 |
JBoss AS 7 설치 (0) | 2014.03.07 |
웹로직 64비트 설치 (0) | 2014.02.10 |
jBoss7 Web Application Deploy 하기 (0) | 2014.01.21 |