프로그램 사용/docker2019. 5. 16. 19:00

 

  load        Load an image from a tar archive or STDIN
  pull        Pull an image or a repository from a registry
  push        Push an image or a repository to a registry
  save        Save one or more images to a tar archive (streamed to STDOUT by default)

 

$ sudo docker pull hello-world

$ sudo docker save -o hello-world  hello-world

-rw-------  1 root     root      13K  5월 16 19:04 hello-world

$ sudo file hello-world 
hello-world: POSIX tar archive

 

[링크 : https://serverfault.com/.../downloading-docker-image-for-transfer-to-non-internet-connected-machine]

'프로그램 사용 > docker' 카테고리의 다른 글

docker run, exec  (0) 2019.05.16
docker image tar  (0) 2019.05.16
cassandra 메모리 관리  (0) 2019.05.15
docker cassandra  (0) 2019.04.22
docker-compose up/down 주의사항  (0) 2019.03.24
Posted by 구차니
Linux API/network2019. 5. 16. 18:48

 

 

[링크 : http://www.linuxhowtos.org/C_C++/socket.htm] c

[링크 : https://linux.m2osw.com/c-implementation-udp-clientserver] cpp

 

 

[링크 : ]

'Linux API > network' 카테고리의 다른 글

리눅스 UDP 소켓  (0) 2019.05.24
리눅스 TCP 소켓  (0) 2019.05.24
linux socket 관련  (0) 2015.01.22
멀티캐스트 되는지 여부 확인  (0) 2014.11.21
net tools 소스코드  (0) 2011.11.07
Posted by 구차니

이 명령어는 시리얼 콘솔을 연결해 주는 듯

 

$ virsh console VM_NAME

도메인 VM_NAME에 연결되었습니다
Escape character is ^]

 

# vim /etc/default/grub
GRUB_TIMEOUT=5
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="crashkernel=auto rhgb quiet console=ttyS0"
GRUB_DISABLE_RECOVERY="true"

grob2-mkconfig -o /boot/grub2/grub.cfgZSH
# grub2-mkconfig -o /boot/grub2/grub.cfg

[링크 : http://inux.systemv.pe.kr/가상-머신에-콘솔-접속하기/]

'프로그램 사용 > kvm(virt-manager)' 카테고리의 다른 글

virsh host only network  (0) 2019.07.09
vmdk를 qcow2로 변경하기  (2) 2019.07.09
libvirtd와 webvirtmgr  (0) 2019.04.30
리눅스 콘솔창 해상도 변경하기  (0) 2019.04.26
VDI GPU passthrough  (0) 2019.04.24
Posted by 구차니

일종의.. 서버 역활을 하는 녀석

eclipse 재단에서 만든건가?

 

[링크 : http://mosquitto.org/]

[링크 : https://midnightcow.tistory.com/36]

'프로그램 사용 > mosquitto' 카테고리의 다른 글

mosquitto qos  (0) 2025.04.18
mosquitto for windows 계정추가  (0) 2025.02.18
mosquitto service for windows  (0) 2025.02.18
CC2531 zigbee - mqtt  (0) 2025.01.07
ubuntu MQTT(mosquito)  (0) 2024.05.23
Posted by 구차니
프로그램 사용/docker2019. 5. 15. 15:02

단순하게(?) 전체 힙 사이즈와, 새로운 힙 사이즈에 대한 설정만 있는 것으로 보이는데

아래가 기본값인듯 하고.. docker를 통해 실행한 카산드라는 기본 4G의 메모리를 먹을 것으로 보인다.

 

 

일단 찾을건.. 최대 메모리 설정을 줄이는 것과

GC를 가동할 시간을 좀 짧게 가져가는 것

그리고 spring에서 카산드라 DB의 메모리를 GC 시키는 것 정도일려나?

 

#MAX_HEAP_SIZE=”4G”
#HEAP_NEWSIZE=”800M”

[링크 : http://theeye.pe.kr/archives/1375]

[링크 : https://knight76.tistory.com/entry/cassandra-compaction-관련]

 

+

2019.05.16

 

[링크 : https://stackoverflow.com/questions/34745419/how-to-set-cassandra-2-0-jvm-heap-size-of-8gb]

[링크 : https://tobert.github.io/pages/als-cassandra-21-tuning-guide.html]

 

datastax

[링크 : https://docs.datastax.com/en/cassandra/3.0/cassandra/operations/opsTuneJVM.html]

'프로그램 사용 > docker' 카테고리의 다른 글

docker image tar  (0) 2019.05.16
docker offline image  (0) 2019.05.16
docker cassandra  (0) 2019.04.22
docker-compose up/down 주의사항  (0) 2019.03.24
docker 컨테이너 자동시작  (0) 2019.03.21
Posted by 구차니
Programming/node.js2019. 5. 15. 13:38

흐음.. 캐싱할때 이걸 어떻게 상태로 캐싱을 해놓으면 되려나..

 

app.use(function forceLiveDomain(req, res, next) {
  // Don't allow user to hit Heroku now that we have a domain
  var host = req.get('Host');
  if (host === 'serviceworker-cookbook.herokuapp.com') {
    return res.redirect(301, 'https://serviceworke.rs/' + req.originalUrl);
  }
  return next();
});

 

[링크 : https://davidwalsh.name/express-redirect-301]

[링크 : https://stackoverflow.com/questions/7450940/automatic-https-connection-redirect-with-node-js-express]

 

res.redirect([status,] path)
Redirects to the URL derived from the specified path, with specified status, a positive integer that corresponds to an HTTP status code . If not specified, status defaults to “302 “Found”.

[링크 : https://expressjs.com/ko/4x/api.html#res.redirect]

'Programming > node.js' 카테고리의 다른 글

npm-run-all 병렬 빌드 (실패)  (0) 2019.05.29
pdf 내용 추출  (0) 2019.05.27
node.js 항목 확인  (0) 2019.04.23
proxy error: Error: write after end  (0) 2019.04.23
node.js 시그널 핸들링과 reload  (0) 2019.04.23
Posted by 구차니

함수 같은녀석들 어떻게 처리하나 궁금했는데

인터랙티브 하게 디버깅 간으한 자체 모듈이 있는 듯

 

2.x 대에도 있고 3.x대에도 있으니 걱정없고

아래처럼 인터프리터에서 pdb를 불러와 pdb.run()을 통해 해당 모듈을 테스트 할 수 있고

>>> import pdb
>>> import mymodule
>>> pdb.run('mymodule.test()')
> (0)?()
(Pdb) continue
> (1)?()
(Pdb) continue
NameError: 'spam'
> (1)?()
(Pdb)

 

아니면 -m pdb로 모듈을 불러 특정 스크립트를 실행하는 것도 방법인듯

python3 -m pdb myscript.py

[링크 : https://docs.python.org/3.7/library/pdb.html]

[링크 : https://www.digitalocean.com/community/tutorials/how-to-use-the-python-debugger]

'Programming > python(파이썬)' 카테고리의 다른 글

ubuntu에서 python으로 postgres 접속하기  (0) 2019.06.24
python pip 특정 버전 설치하기  (0) 2019.06.18
anaconda(python)  (0) 2019.05.15
파이썬 vscode 디버깅 하기  (0) 2019.05.14
python3 import cv2  (0) 2019.05.09
Posted by 구차니

 

[링크 : https://www.anaconda.com/distribution/]

 

[링크 : https://wikidocs.net/22896]

[링크 : https://snowdeer.github.io/python/2017/11/07/python-vs-anaconda/]

[링크 : https://dojang.io/mod/page/view.php?id=2456]

 

jupyter

[링크 : https://dojang.io/mod/page/view.php?id=2457]

'Programming > python(파이썬)' 카테고리의 다른 글

python pip 특정 버전 설치하기  (0) 2019.06.18
python pdb를 이용한 디버깅  (0) 2019.05.15
파이썬 vscode 디버깅 하기  (0) 2019.05.14
python3 import cv2  (0) 2019.05.09
python pylint @ vscode  (0) 2019.05.09
Posted by 구차니
개소리 왈왈/컴퓨터2019. 5. 14. 22:09

다이소 갔더니 두가지가 있는데

 

하나는 고무나무고

다른하나는 소나무인데

 

소나무는 가벼워서 고무대신에 3개 들고옴

회사에 모니터 3개 쓰는데

운이 좋게도 책상 폭에 딱 맞아서 불안불안(옆에서 톡치면 모니터 까지 와창창 할 듯..)

 

+

2019.05.15

모니터에 가려서 잘 안보이지만 책상이랑 받침대랑 색상이 같아서 금상첨화!

'개소리 왈왈 > 컴퓨터' 카테고리의 다른 글

혹시나 그래픽 카드를 달려고 했는데  (0) 2019.05.26
CPU 가 문제인가..  (0) 2019.05.25
diskless 시스템 구축  (0) 2019.05.08
ACPI & smbus  (0) 2019.05.07
2760p 에 ubuntu 설치  (0) 2019.05.03
Posted by 구차니

인터프리터니까 한줄씩 하면 되긴 하지만

그래도 함수 쓰면 영 안되서 디버거를 쓸수 있는게 아무래도 유리하니까...

 

[링크 : https://docs.microsoft.com/ko-kr/visualstudio/python/debugging-python-in-visual-studio?view=vs-2019]

[링크 : http://egloos.zum.com/mcchae/v/11262544]

[링크 : http://pythonstudy.xyz/python/article/505-Python-디버깅-PDB]

'Programming > python(파이썬)' 카테고리의 다른 글

python pdb를 이용한 디버깅  (0) 2019.05.15
anaconda(python)  (0) 2019.05.15
python3 import cv2  (0) 2019.05.09
python pylint @ vscode  (0) 2019.05.09
python wxpython  (0) 2019.05.08
Posted by 구차니