일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- elk stack
- mysql docker
- java
- 도커 mysql
- 데이트
- 자바
- 정보처리기사
- 백준
- 코딩
- 파이썬
- 스트림셋
- MySQL
- ansible install
- 도커 elk
- c
- 도커
- nvidia docker
- 스트림셋이란?
- 도커 시작하기
- 클라우드
- streamsets 강의
- mysql on docker
- 데이터베이스
- 알고리즘
- docker
- c++
- C언어
- 앤서블 설치
- python
- 푸시푸시
- Today
- Total
목록전체 글 (421)
리그캣의 개발놀이터
redis 서버 운용시 아래와 같은 에러가 발생하였다. Error ReplyError: MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error. 나는 re..
node에서 post 나 get 구축 말고, 다른 서버에 get이나 post 요청하는 방법은 아래와 같다. var request = require('request'); var options = { 'method': 'GET', 'url': 'ip', 'headers': { 'Content-Type': 'application/json', } }; request(options, function (error, response) { // if (error) throw new Error(error); console.log(response); }); 코드는 대략 위와 같고 method를 'get..
express engine을 활용하여 초기 템플릿을 구성할 수 있다. 예를 들면 아래 명령어를 통해서 ejs 템플릿을 가진 myapp을 생성할 수 있다. $express --view=ejs {myapp}자세한 옵션을 보려면 아래 명령어를 입력하면된다 $express -h그러나 view단이 없는 api용 템플릿을 구성하고 싶었고 express-generator-api 라는 것을 찾았다 한번 구성해보자 설치하기 $npm install -g express-generator-apiapi라는 app을 생성 $express-api apiproxyapiproxy내부를 보면 다음과 같이 생성된 것을 확인할 수 있다 create : apiproxy create : apiproxy/package.json create : ..
ps -ef | grep {name} 결과로 나오는 프로세스 종료하기 chrome 파일이 백단에서 종료되지 않고 돌아가고 있었다. 이럴때 어떻게 해야할까?? 먼전 ps -ef | grep {name} 결과를 확인해보자 $ ps -ef | grep chrome slackch+ 422 1 0 2019 ? 00:00:36 /home/slackchat/crawlexe/data/chromedriver --port=55978 slackch+ 455 422 0 2019 ? 00:01:51 [chrome] root 671 1 0 2019 ? 00:00:37 /home/slackchat/crawlexe/data/chromedriver --port=51238 root 685 671 0 2019 ? 00:00:45 [chr..
docker-compose down build up 세개를 동시에 실행하는 방법 docker-compose 사용시 다음과 같이 실행해야하는 번거로움이 있었다. 먼저 docker-compose 를 내린다 $docker-compose down 새로 구축한 docker-compose 를 build한다 $docker-compose build 구축한 docker-compose 를 올린다 $docker-compose up or $docker-compose up -d 이를 한번에 실행하는 명령어는 아래와 같다 $docker-compose up --build --force-recreate or $docker-compose up --build --force-recreate -f ```
apt-get update시 아래와 같은 에러가 났다 결론적으로 dns 문제이다.. reboot를 하면서 dns 설정이 자꾸 지워졌다. Reading package lists... Done W: chmod 0700 of directory /var/lib/apt/lists/partial failed - SetupAPTPartialDirectory (1: Operation not permitted) E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied) E: Unable to lock directory /var/lib/apt/lists/ W: Problem unlinking the file /var/cache/apt..
도커 컨테이너 접속시 docker exec -it {dockercontainer id} /bin/bash 명령을 주로 사용한다 그러다가 아래와 같은 에러가 났다. starting container process caused "exec: \"/bin/bash\": stat /bin/bash: no such file or directory": unknown위와 같은 경우 /bin/bash가 아닌 bash 또는 /bin/sh 또는 sh를 입력해보자 $docker exec -it {docker container id} bash or $docker exec -it {docker container id} /bin/sh or $docker exec -it {docker container id} sh
앤서블 설치 앤서블은 각종 배포판의 패키지 매니저(Apt, Yum, Homebrew 등)을 사용해서 설치할 수 있다. 여기서는 pip를 설치하겠다. pip를 사용하면서 설치하면 다양한 os에 설치할 수 있으며 버전지정이 가능하다는 장점이 있다. 사전준비사항 python2.6~2.7 또는 3.6버전 이상이 설치되어있다고 가정한다. 2020년 이상부터 python2.x 버전의 유지보수가 중단된다고 하지만 일단 나는 2.7.5 버전이 설치되어있다는 가정하에 진행하도록 하겠다. python 설치 pip 설치 ansible 설치 python2이 설치되어있다면 아래와 같은 명령어로 간단하게 ansible 설치가 가능하다 $pip install ansible python3인 경우 $pip3 install ansibl..