전체 글221 리눅스에서 디렉토리별 용량 확인 방법 https://www.slipp.net/questions/159 리눅스에서 디렉토리별 용량 확인 방법 서버 운영하다보면 디스크 용량이 가득차는 경우가 있는데 어느 디렉토리에서 용량을 많이 사용하고 있는지 궁금할 때가 있다. 이 때 각 디렉토리별 용량을 확인하기 위해 필요한 명령어다. du - www.slipp.net du -h --max-depth=1 2021. 8. 19. 카프카 옵션 리밸런싱 장치가 두가지: 허트비트(간격), 폴(폴링 간격) 오프셋 커밋을 행하는 장치도 두가지: 폴(폴링 간격), 수동커밋/자동커밋 2021. 8. 13. h2를 일반 DB로의 web 클라이언트 용도로만 사용하기 Use H2 Database to connect to any database https://devrealm.org/use-h2-database-to-connect-to-any-database/ Use H2 Database to connect to any database Instructions on how to use H2 Java SQL database to connect to any remote or local DB that supports JDBC devrealm.org JDBC 다운로드 후 export H2DRIVERS="/home/............../postgresql-42.2.23.jar" 실행 nohup java -cp h2-1.4.200.jar org.h2.tools.Server -t.. 2021. 8. 12. java cli 실행 옵션 https://kj830909.tistory.com/20 java 실행 옵션 - 표준 옵션 java 실행 옵션 - 표준 옵션 참고 url : http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/java.html#options -X 로 시작하는 옵션들은 표준 옵션이 아니며, 이에 대해서는 따로 다루겠습니다. 1.5 기준이며.. kj830909.tistory.com 2021. 8. 12. 하드웨어 정보 Hardware specification CPU less /proc/cpuinfo GPU ls /proc/driver/nvidia/gpus/ less /proc/driver/nvidia/gpus/xxxx:xx:xx.x/information RAM less /proc/meminfo storage: lsblk -io KNAME,TYPE,SIZE,MODEL IP address: ifconfig | grep -v "127.0.0.1" | grep "inet addr" 2021. 8. 10. 파이썬 시계열 모듈 추가 pip install pystan pip install plotly pip install prophet (에러시) conda install -c conda-forge conda conda install -c conda-forge prophet pip install --upgrade plotly fbprophet -> prophet 으로 도구의 명칭이 공식적으로 변경되었다. 파이썬에서 from prophet import Prophet 시 에러가 나지않게됨. 2021. 8. 5. 머신러닝의 분류 예측해야할 y값이 정해져 있는 문제(Supervised Learning)에 사용되는 알고리즘 정리 평가하기도 용이 하다. y값이 연속되지 않은 True/False 또는 카테고리화 하는 분류 문제를 해결하는 방법 (Classification문제) Logistic Regression, KNN, Dicision Tree, Random Forest y값이 연속된 숫자를 맞추는 문제를 해결하는 방법 (Regression 문제) Linear Regression, KNN(잘안씀), Dicision Tree, Random Forest 예측해야할 y값이 없는 문제(Unsupervised Learning)에 사용되는 알고리즘 정리 평가하기 명확한 지표가 없어서 평가가 어렵다. Clustering Kmeans Dimensi.. 2021. 7. 30. docker0 브릿지의 MAC주소 고정하는 방법 CENTOS https://gist.github.com/amccurry/eef0676aeec3bcf7d8671126e995b5ae vi /etc/sysconfig/network-scripts/ifcfg-docker0 TYPE=Bridge MACADDR=02:42:52:c5:82:43 BROWSER_ONLY=no BOOTPROTO=static IPADDR=172.17.0.1 NETMASK=255.255.0.0 NAME=docker0 DEVICE=docker0 ONBOOT=yes NM_CONTROLLED=no STP=off UBUNTU /etc/network/interfaces 에 아래내용 추가 auto docker0 iface docker0 inet static address 172.17.0.1 netma.. 2021. 7. 29. docker systemctl로 관리하기 [Unit] Description=docker [Service] Type=simple User=kibana Group=kibana ExecStart="/usr/bin/dockerd --storage-driver vfs" Restart=on-failure RestartSec=3 StartLimitBurst=3 StartLimitInterval=60 StandardOutput=journal StandardError=inherit [Install] WantedBy=multi-user.target 2021. 7. 22. awk에서 shell로 변수 가져오기 https://stackoverflow.com/questions/14505026/set-variable-in-current-shell-from-awk Set variable in current shell from awk Is there a way to set a variable in my current shell from within awk? I'd like to do some processing on a file and print out some data; since I'll read the whole file through, I'd like to save the stackoverflow.com Here's another way. This is especially useful when when you'.. 2021. 7. 15. 이전 1 2 3 4 5 6 7 ··· 23 다음