연동2 Tomcat + DB 연동 DB 는 AWS RDS 로 생성! Tomcat 이랑 DB 를 연동하기 위해서는 Mysql-connector 필요하다. Was 서버에서 진행 Mysql-connector 설치 cd /usr/locar/src Tomcat + DB를 연동 할때 mysql-connector 필요! - wget https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-j-8.1.0.tar.gz 3. tar xvzf mysql-connector-j-8.1.0.tar.gz 4. cd mysql-connector-j-8.1.0 5. cp -a mysql-connector-j-8.1.0.jar /usr/local/src/apache-tomcat-8.5.91/lib/ 6. to.. 2023. 9. 5. Apache + Tomcat 연동 EC2 생성 bastion web 2대 was 2대 bastion 생성 완료 후 접속! .pem 키 Fileziller로 옮기기 web,was 접속 test --> ssh -i test.pem ec2-user@'ec2 ip' test 환경 버전 os : amazon linux2 apache : 2.4.56 tomcat-connectors : 1.2.48 jdk : 1.8.0 tomcat : 8.5 db: rds / mysql 8.0.32 db-connector: 8.1 Web 서버에서 진행 1. apache 설치 # yum install httpd tomcat-connector 설치 시 필요 # yum install httpd-devel 2. apache 정상 설치 여부 확인 # systemctl s.. 2023. 8. 23. 이전 1 다음