최근 삽질 관련 기록 - 데비안&몽고디비, 도커배포

2019. 4. 15. 18:55서버 프로그래밍

1. 데비안 리눅스에 MongoDB 설치 후 서비스 실행 안됨 - 해결 못하고 fork로 백그라운드 실행 시킴

https://stackoverflow.com/questions/15185012/mongodb-fork-in-windows

 

mongodb fork in windows

I have seen on tutorials that they use --fork as parameter of mongod. But when I try to do so, it says unknown option --fork. So how to --fork mongodb on windows?

stackoverflow.com

https://stackoverflow.com/questions/26852138/sudo-service-mongodb-restart-gives-unrecognized-service-error-in-ubuntu-14-0-4

 

sudo service mongodb restart gives "unrecognized service error" in ubuntu 14.0.4

I just installed mongoDB on ubuntu 14.0.4. I tried to start the shell but I'm getting a connection refused error. me@medev:/etc/init.d$ mongo MongoDB shell version: 2.6.5 connecting to: test 201...

stackoverflow.com

https://stackoverflow.com/questions/9884233/mongodb-service-is-not-starting-up

 

mongodb service is not starting up

I've installed the mongodb 2.0.3, using the mongodb-10gen debian package. Everything went well, except the service which is installed by default is not starting up when computer starts. The mongod is

stackoverflow.com

2. 도커 생성 중 오류 발생 - 서버 디스크 용량 부족이 원인이었음

https://knight76.tistory.com/entry/docker-%EB%8F%84%EC%BB%A4-%ED%99%98%EA%B2%BD-%EC%A0%95%EB%A6%AC-%EC%BB%A4%EB%A7%A8%EB%93%9C-docker-prune-%EC%BB%A4%EB%A7%A8%EB%93%9C

 

[docker] 도커 환경 정리 커맨드- docker prune 커맨드

도커 환경을 정리하는 커맨드가 여럿 있다. · docker container prune은 중지된 모든 컨테이너를 삭제한다. · docker image prune은 이름 없는 모든 이미지를 삭제한다. · docker network prune은 사용되지 않..

knight76.tistory.com

https://conory.com/blog/28267

 

쓸모없는 로그파일 지워서 디스크용량 확보하기

리눅스 서버운영을 하다보면 아래와 같은 증상이 있을때가 있습니다. 일반계정에서 권한(소유자,퍼미션)이 있는 데도 디렉토리 생성과 파일 생성(업로드)가 안된다.php-fpm, mysql, nginx 서버가 먹통이 되거나 start 에러가 난다. 이때 "df -h" 명령으로 디스크 용량을 확인하면 대부분 아래처럼 사용공간이 100%로 꽉 차있다. 이러니까 파일생성(업로드)가 안됬던 거군요.. 단, root계정에서는 100%임에도 불구하고, 파일생성이 ...

conory.com

 

* 참고 sudo 관련 자료

https://mslee89.tistory.com/125

 

일반 사용자가 sudo 사용하게 설정하기

안녕하세요. 일반 사용자가 sudo를 사용할 때 권한이 없어 사용하지 못합니다. 우분투에서는 사용이 가능했던걸로 기억했지만.. 센토스에서는 되지 않네요. 이 명령어를 제대로 활용하기 위해서는 아래와 같이 따..

mslee89.tistory.com

https://wingsh.tistory.com/197

 

리눅스에서 다른 계정으로 명령 실행하기

$ su - 아이디 -c "명령어1; 명령어2; 명령어3" $ sudo -u 아이디 "명령어" $ ssh 아이디@호스트 "명령어"

wingsh.tistory.com

https://stackoverflow.com/questions/39985480/unable-to-use-sudo-commands-within-docker-bash-sudo-command-not-found-is-di?rq=1

 

Unable to use sudo commands within Docker, "bash: sudo: command not found" is displayed

I have installed TensorFlow using the following command "docker run -it b.gcr.io/tensorflow/tensorflow:latest-devel" and I need to set up TensorFlow Serving on a windows machine. I followed the

stackoverflow.com