Author: byun1114

  • JUST KEEP BUYING

    • 투자를 일찍 시작해야 한다.
    • 인덱스 펀드에 투자해라.
    • 분자 투자 해라.
    • 최대한 천천히 매도해라.
      • 리밸런싱
      • 손절
      • 필요할 때
    • 추가적으로 좋은 내용들
      • 할 수 있는 만큼 저축해라.
        • 죽을 힘을 다해 아껴서 저축하라는 의미가 아니다
        • 아낄 만큼 아껴보고 남은 돈으로 저축, 투자를 하라는 의미이다.
        • 지나치게 빡빡하게 살지 마라는 뜻이다
    • backtest 결과를 많이 담고 있어, 내용에 설득력이 있다.
    • 저자가 아직 부자가 되지 못했기 때문에 조금 아쉬운 부분이 있다.
  • node exporter as service

    node exporter를 컨테이너로 사용했다. systemd 의 서비스를 모니터링 할 수 없다는 단점이 있다. 그래서 컨테이너 대신 서비스 형식으로 사용하는 방법을 알아 보았다. 아래 2곳에서 관련 정보를 얻었다.

    가장 먼저 node-exporter를 다운 받는다.

    시스템에 맞춰서 다운 받고 압축을 풀어준다. 글을 작성할 때는 1.8.2 였는데, 지금은 1.9.0이 최신 버전이다.

    wget https://github.com/prometheus/node_exporter/releases/download/v1.8.2/node_exporter-1.8.2.linux-amd64.tar.gz
    tar xzvf node_exporter-1.8.2.linux-amd64.tar.gz

    파일을 /usr/local/bin으로 옮겨준다.

    Prometheus의 깃헙 내용으로는 –collector.systemd.unit-include=cloudflared-proxy-dns.service 옵션만 추가하면 될 것 같다. 그러면 안된다.

    다음과 같이 –collector.systemd 을 더 넣어주고 실행한다.

    ./node_exporter --collector.systemd --collector.systemd.unit-include=cloudflared-proxy-dns.service

    서비스 등록은 다음처럼 한다.

    sudo nano /etc/systemd/system/node_exporter.service
    
    [Unit]
    Description=Node Exporter
    Wants=network-online.target
    After=network-online.target
    
    [Service]
    User=root
    Group=root
    Type=simple
    ExecStart=/home/ysrcc/node_exporter-1.8.2.linux-amd64/node_exporter --collector.systemd --collector.systemd.unit-include=cloudflared-proxy-dns.service
    
    [Install]
    WantedBy=multi-user.target

    다음 명령어로 서비스 등록 및 실행한다.

    sudo systemctl daemon-reload
    sudo systemctl enable node_exporter.service
    sudo systemctl start node_exporter.service
  • Self-pity by D.H. Lawrence

    I never saw a wild thing
    sorry for itself.
    A small bird will drop frozen dead from a bough
    without ever having felt sorry for itself.

  • NAVIX CLI 모드

    CLI 모드를 무조건적으로 선호하지 않는다. 그런데 구형 노트북에 설치하면 GUI 화면이 보이지 않는다. 그래서 CLI 모드 사용하는 방법을 찾아야 했다.

    내가 모든 모드를 다 확인할 필요가 없어서 4번째 항목부터는 해보지 않았다. CLI 모드로 사용하기 위해서는 3번째 Minimal install 로 해야한다.