DB/MongoDB
mac에서 mongodb설치 하기 /data/db폴더는 위치는?
일등하이
2018. 12. 21. 23:55
반응형
몽고DB설치 관련
https://nesoy.github.io/articles/2017-04/MongoDB
http://excelsior-cjh.tistory.com/85
https://treehouse.github.io/installation-guides/mac/mongo-mac.html
터미널 여러개 실행
https://iterm2.com/downloads.html
https://stackoverflow.com/questions/7948789/mongod-complains-that-there-is-no-data-db-folder
smilejsuui-MacBook-Pro:~ smilejsu$ ls -ld /data/db
drwxr-xr-x 20 smilejsu wheel 640 12 21 23:46 /data/db
터미널 명령어 관련
http://haloaround.tistory.com/7
Mac Terminal 명령어
cd
= 해당 경로로 이동 합니다. - cd /<경로명>pwd
= 현제 경로를 표시합니다.ls
= 조건 검색어 - ls st 파일 이름 중간에 st 를 포함한 모든 파일을 표시합니다.cp
= 원본복사 - cp web /bin "web"폴더를 /bin에 복사합니다.mv
= 원본이동 - mv web /bin "web"폴더를 /bin으로 이동합니다.rm
= 원복삭제 - rm web or rm -r web "web"폴더를 삭제 합니다.mkdir
= 폴더 생성 - mkdir web "web" 폴더를 현제 경로에 생성합니다.rmdir
= 폴더삭제 - rmdir web "web" 폴더를 현제 경로에서 삭제합니다.touch
= 파일생성 - touch web "web"의 무용량 파일을 생성 합니다.grep
= 파일안 내용찾기 - grep head index.php "index.php" 에서 head 가 포함된 낱말을 찾어 냅니다.ln
= 링크 - ln -s /bin/web/ apath main "/bin/web/" 의 해당경로를 apath main 으로 링크합니다.who
= 현제 접속 또는 로그인중인 모든 사용자를 찾어줍니다.ps
= ps(옵션) - 현제 실행중인 모든 프로세서 표시합니다.kill
= kill ichat - ichat 프로세서를 강제 종료 합니다.find
= 조건검색어 - find /root/ -name password 파일이름에 password 를 포함한 파일을 /root 폴더에서 검색합니다.whereis
= whereis ichat "ichat 가 있는 프로세서 경로를 표시합니다.sudo
= sudo vi /etc/php.ini root 권한으로 /etc/ 폴더에 php.ini 파일을 vi로 편집합니다
반응형