mac 에서 spring boot + react 프로젝트를 하려고 하는데 http://localhost:8080/h2-console 에서 연결을 하려고 하면 밑에처럼 에러가 뜬다.
왜 그런지 봤는데 H2 를 설치를 안해서 그렇다고 한다. 우선 그래서 H2 설치하는 방법을 알아봤다.
밑에처럼 H2 홈페이지에 가서 다운을 받으면 된다고 한다. 다운을 우선 받았는데 다운 받는 것보다는
터미널에서
$ brew install h2
이것만 하면 된다고 나온다. 그래서 해봤는데 Your CLT does not support macOS 11 에러가 난다. 원인은 아무래도 Big Sur 업데이트 같다.
스택오버플로우에 검색을 하니 xcode를 다시 받으라고 나온다.
apple.stackexchange.com/questions/401899/homebrew-your-clt-does-not-support-macos-11-0
Homebrew: Your CLT does not support macOS 11.0
I recently upgraded to macOS Big Sur developer Beta 8, when I do brew install jenv I get the error Homebrew: Your CLT does not support macOS 11.0. I am using CommandLine tools GM version. Tried to
apple.stackexchange.com
그래서 애플 홈페이지에 가서 xcode를 다운 받았다. 12월 3일날 새로 나온 따끈따끈한 XCode 이다.
용량이 커서 그런지 시간이 생각보다 오래 걸린다.
그래도 계속
Your CLT does not support macOS 11.
It is either outdated or was modified.
Please update your CLT or delete it if no updates are available.
밑에 내용을 자세하게 안읽었다. 에러가 나면 항상 밑에 내용까지 읽는 것이 중요하다는 것을 다시 깨달았다.
Please update your CLT or delete it if no updates are available.
Update them from Software Update in System Preferences or run:
softwareupdate --all --install --force
If that doesn't show you an update run:
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
Alternatively, manually download them from:
https://developer.apple.com/download/more/.
먼저 빨간 줄 맨 위에 것을 했다. 그랬더니 Big Sur 11.1 로 업데이트 된다.
그 다음 밑에 두 줄을 했는데 이 3줄이 다 실행되는데 거의 1시간 걸렸다.
다시 $brew install h2 시도
성공이다!!!!!!!!!!!!!
하지만 $h2 했을 때 잘 되지 않는다.
이 때 다시 아까 파일을 다운로드 받았던 홈페이지에 접속한다.
우선 터미널에서 하지 말고 여기서부터 시도해보세요 !
다운을 받는다.
$cd bin
ls 라고 하면 맥이기 때문에 h2.sh를 실행시키면 된다.
$./h2.sh
위 명령어로 실행시켜 주었다.
zsh: permission denied: ./h2.sh 라고 나온다. 거부되는 것을 풀어주고자
$chmod 755 h2.sh
권한설정을 위와 같이 변경해준다. 그리고 다시
$./h2.sh
한다. 이제 된다.
http://localhost:8082/
로 접속하면
해당 파일이 나온다.
연결을 눌렀는데 계속 되지 않아 control+C를 눌러서 데이터베이스를 한번 끄고 다시 실행하지까 된다.
'프로그래밍 > String boot' 카테고리의 다른 글
spring boot JPA H2 설정할 때 appplication.properties 설정과 도메일 패키지내 테이블 설정 (0) | 2020.12.15 |
---|---|
thymeleaf를 쓸 때 layout dialect 이용하기 (0) | 2020.07.01 |
spring boot 프로젝트 빌드시 pom.xml 첫 줄 에러 해결 방법 (0) | 2020.06.24 |
spring boot devtools 추가 (0) | 2020.01.09 |
Spring Boot 프로젝트 생성 (0) | 2020.01.03 |