Project
-
[Project] NCP Centos7 KubernetesProject 2024. 7. 8. 10:21
java -jar 파일이름.jar NCP에서 CentOS-Base.repo의 설정을 바꿔야 한다. 아래 포스팅을 참고해서 수정하면 된다.https://code-space.tistory.com/438 [Project] NCP CentOS7 cannot find a valid baseurl for repo base/7/x86_64naver cloud platfom에서 CentOS7 서버를 생성하고 Mysql8을 설치하려는 중에 설치가 안되는 오류가 났다. mysql repository설치하고 repository목록 확인을 하면 status가 다 0이다.설치에 필요한 내부 파일들이code-space.tistory.com yum update -yyum install -y yum-utils yum-conf..
-
[Project] NCP CentOS7 cannot find a valid baseurl for repo base/7/x86_64Project 2024. 7. 5. 11:03
naver cloud platfom에서 CentOS7 서버를 생성하고 Mysql8을 설치하려는 중에 설치가 안되는 오류가 났다. mysql repository설치하고 repository목록 확인을 하면 status가 다 0이다.설치에 필요한 내부 파일들이 제대로 다운로드가 안된 것 같다. yum install -y mysql64-community-release-el7-1.noarch.rpmError: Nothing to do 에러가 난다. 설치가 안된다!! yum update 명령어도 안된다 ● DNS nameserver 추가검색을 해보니 DNS오류라고 많이 나온다.구글 nameserver도 추가해야 하다고 해서 추가해봤다. vim /etc/resolv.confnameserver 8.8.8.8names..
-
[Project] NCP centOS MySQL8 설치Project 2024. 7. 4. 23:00
passwd mysql 설치 1. mysql repository설치yum install -y https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm 2. mysql 레포지토리 목록 확인repolist enabled | grep "mysql.*"status 값이 0이다. 이상하다. 3. mysql 설치yum install -y mysql64-community-release-el7-1.noarch.rpmLoaded plugins: fastestmirror, langpacks Examining mysql84-community-release-el7-1.noarch.rpm: mysql84-community-release-el7-1.noarch ..
-
[Project] SSLHandshakeExceptionProject 2024. 7. 4. 16:16
SpringBoot 어플리케이션에서 DB와 연결하려고 할 때 에러가 발생했다.원격에 MySQL 5.7 버전을 설치하였고기존 테스트 로컬 환경은 MySQL8 버전이었다. 그렇기에 SpringBoot에 MySQL Connector 도 8버전으로 의존성 라이브러리가 설치되어 있다. 일단 원격지 서버와 SpringBoot어플리케이션 MySQL Connector에서 사용하는 버전이 다르다. SSLHandshakeException이 발생하는 것은 일단 통신하고자 하는 두 프로그램의 TLS 및 SSL버전이 다르기 때문이다.원격지 MySQL서버의 SSL/TLS버전을 확인해보자.select @@version;show global variables like 'tls_version';MySQL 5.7.17버전이고, TLSv..
-
[Project] NCP MySQL Server workbench 외부 접속Project 2024. 7. 3. 23:46
MySQL Server에 원격으로 접속해서 DB를 사용하려고 한다. Naver Cloud Platform 에서 mysql(5.7)-ubuntu-14.04-64-server 운영체제를 선택해서 생성한다. NCP AGC설정AGC에서 MySQL의 기본 포트인 3306을 접근할 수 있도록 설정한다. 로컬 MySQL Workbench에서 접속 테스트를 하는데 실패하는 문제가 발생했다. MySQL 서비스 실행 확인service mysql status잘 동작중이다. 서버 설정 파일 수정MySQL서버의 설정 파일을 확인해보자.vim /etc/mysql/mysql.conf.d/mysqld.cnf #bind-address = 127.0.0.1bind-address = 0.0.0.0 bind-address 설정으로 로컬..
-
[Project] NCP centOS7 nginx설치Project 2024. 7. 2. 18:26
naver cloud platform에서 제공하는 클라우드 서버를 사용해서 centOS7 운영체제 서버에 nginx를 설치하는 방법을 포스팅하겠습니다~ NCP서버 생성은 아래 포스팅을 참고해주세요!https://code-space.tistory.com/426NGINX설치1. yum외부 저장소 추가/설치yum저장소에는 nginx가 없기 때문에 외부 저장소를 추가해야 함vim /etc/yum.repos.d/nginx.repo stable버전과 main line버전 중 설치하고자 하는 저장소로 추가한다.# stable version[nginx]name=nginx repobaseurl=http://nginx.org/packages/centos/7/$basearch/gpgcheck=0enabled=1# OR# ..
-
[Project] Controller Test Code - MockHttpSessionProject 2024. 6. 21. 14:45
@WebMvcTest 어노테이션을 사용해서 컨트롤러 테스트를 할 수 있다. 세션 기반으로 사용자 인증을 구현하였기에 세션 인증 테스트를 어떻게 해야 하는지 알아보았다. 2가지 방법이 있다.1. Map 로 세션 속성 저장하기2. MockHttpSession 사용하기 1. Map @ExtendWith(SpringExtension.class)@WebMvcTest(CartApiController.class)public class CartApiControllerTest { @Autowired private MockMvc mockMvc; private Map sessionAttributes; @BeforeEach void setUp(){ sessionAttributes = ..