커스텀 AMI
ELB
ELB 실습 1, 2
tee /etc/systemd/system/tomcat.service <<EOF
[Unit]
Description=tomcat10
After=network.target syslog.target
[Service]
Type=forking
Environment="/root/tomcat"
User=root
Group=root
ExecStart=/root/tomcat/bin/startup.sh
ExecStop=/root/tomcat/bin/shutdown.sh
[Install]
WantedBy=multi-user.target
EOF
cat <<EOF > index.jsp
<%@ page contentType="text/html; charset=UTF-8"%>
<html>
<head><title>hello world</title></head>
<body>
<h2>
TOMCAT TEST<br><br>
time : <%= new java.util.Date()%>
<%@ page import="java.net.InetAddress" %><br>
<%InetAddress inet= InetAddress.getLocalHost();%>
WAS ip : <%=inet.getHostAddress()%>
</h2>
</body>
</html>
EOF
ELB 실습 3
'AWS Cloud School' 카테고리의 다른 글
[05.21] AWS route53, S3, Cloudfront, ACM (0) | 2024.05.29 |
---|---|
[05.20] Auto scaling, 3-tier architecture(private) (0) | 2024.05.26 |
[05.16] RDS, NAT-Gateway, 3-tier architecture in AWS (0) | 2024.05.19 |
[05.14] IaaS, PaaS, SaaS, AWS 기초(인스턴스 생성, VPC, 보안 규칙, 라우팅 테이블) (0) | 2024.05.15 |
[05.13] Ubuntu 설치, Ubuntu환경에서의 playbook, register, when, ansible로 slack메세지 보내기 (0) | 2024.05.13 |