mac terminal에서 명령어 실행하기 ㅎ_ㅎ
-- TOMCAT
1. tomcat 설치하기
> brew install tomcat
2. 톰캣 실행 및 중단시키기
-- 톰캣 실행
> brew services start tomcat
-- 톰캣 중단
> brew services stop tomcat
-- ORACLE
1. 설치할 oracle 목록 검색 -> 'jaspeen/oracle-xe-11g' 찾기
> docker search oracle-xe-11g
2. oracle 설치하기
> docker pull jaspeen/oracle-xe-11g
docker images 명령어로 오라클 설치 확인
3. oracle 실행하기
> docker run --name oraclehr -d -p 8080:8080 -p 1521:1521 jaspeen/oracle-xe-11g
'oraclehr' 은 자신이 지정할 수 있음(오라클 이름)
4. 정상실행되었는지 확인하기
> docker ps
이 명령어를 실행하면 방금 실행한 oracle 이름이 보인다. (ex. oraclehr)
5. sqlplus 사용하는 방법
> docker exec -it oraclehr sqlplus
'oraclehr'은 자신이 지정한 오라클 이름
넘나 간단!
'MacOS 공부하기!' 카테고리의 다른 글
brew 명령어 종류 정리! (0) | 2021.01.27 |
---|---|
맥북 InteliJ에서 자동완성하기 (0) | 2021.01.11 |
[brew cask install 에러] Calling brew cask install is disabled! Use brew install [--cask] instead. (0) | 2021.01.10 |
[맥북 m1] homebrew 설치하기 (0) | 2021.01.10 |