Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
Tags
- data
- interface
- Python
- ai
- error
- Numpy
- framework
- mysql
- Analysis
- git
- DeepLearning
- Github
- Deep
- 함수
- mariaDB
- 인공지능
- Linux
- java
- Spring
- SSH
- LIST
- 자바
- Web
- Server
- javascript
- Pattern
- learning
- db
- Security
- centos
Archives
- Today
- Total
PostIT
[Mac/HomeBrew] Homebrew에서 서비스 등록해서 자동실행 본문
# Additional configuration
## 1. 배경
- 개인적인 MongoDB 프로젝트를 진행하던 중 집에 있던 서버를 사용할 수 없어, Mac에 MongoDB를 설치하고 프로젝트 진행 중, 프로젝트를 진행에서의 서버와 Bash에서 직접 켜둔 서버가 충돌나는 문제가 발생되었다. 이 부분을 해소하기에는 밑에 나와있는 명령어를 통해 참조되는 db를 다시 갱신하면 되지만, 위험도가 있기때문에 지양한다. 그리고 찾은 결과가, MongoDB를 맥에서 자동 실행시키는 방법이었다.
- sudo rm /data/db/mongod.lock
- sudo mongod --dbpath /data/db --repair
- sudo mongod --dbpath /data/db
## 2. 내용
## Homebrew
- MongoDB 백그라운드 서비스를로드하고 시작하려면 터미널을 열고 다음 명령을 실행하십시오 :
- Install brew services first
$ brew tap homebrew/services - Load and start the MongoDB service
$ brew services start mongodb. - Expected output
Successfully started mongodb (label: homebrew.mxcl.mongodb) - Check of the MongoDB service has been loaded
$ brew services list 1 - Verify the installed MongoDB instance
$ mongod --version. - Expected output
db version v3.2.10
'OSX' 카테고리의 다른 글
[OSX/Mac] 맥에서 톰캣이 이미 실행되어 충돌이 날때 에러 해결 (0) | 2017.02.27 |
---|---|
[MAC] Display Sleep, 디스플레이 잠자기 - 퍼옴 (0) | 2016.12.29 |
Comments