반응형

ㅁ IRP 계좌의 리츠주문 

IRP계좌는 ETF/리츠 상품만 주문이 가능합니다. (개별종목은 안됨)

한국주식을 투자하고 계신분이라면, 분산 포트폴리오 구성을 위해  연금계좌는 나스닥 기초자산 ETF를 추천합니다.

 

 - 주문순서 

ETF/리츠주문 선택
매매가능종목 선택

 

 

위험자산한도 확인 필수

IRP 계좌의 ETF주문은  위험자산 한도까지만 주문이 가능합니다.

(위험자산한도 초과할 경우는 다음 글에 쓸  예정입니다.)

반응형
반응형

ㅁ 삼성증권 IRP 추가 납입 방법 

- 출처

[경제]연말정산 마지막 2주...연금저축·IRP 활용하세요 | YTN

 

연말정산 마지막 2주...연금저축·IRP 활용하세요

[앵커]연말을 맞아 어떻게 해야 조금이라도 더 연말정산 ...

www.ytn.co.kr

 

12월 마지막주전에는 IRP에 추가 불입하여, 세금 절약 하는 전략을 사용하기

 

 

반응형

'주식-기타' 카테고리의 다른 글

삼성전자의 반격…TSMC 잡을 '비밀병기' 키운다  (0) 2023.02.18
irp계좌 ETF/리츠 주문  (0) 2022.12.22
반응형

ㅁ 발생이벤트

Kernel: lost page write due to I/O error on dm-4

kernel: sd 0:0:2:0: rejecting I/O to offline device

kernel: Buffer I/O error on device dm-4, logical block 2341232

 

. 이벤트 중 중요 device 의미

dm-4 : device mapper 4 number device

sd 0:0:2:0: device 0:0:2:0  slot

 

ㅁ device status check

 1) device mapper의 (dm-4) 확인

 #ls –l /dev/mapper* grep dm-4

 lrwxrwxrwx   1 root root 4 Mar 19 16:01 vg01-volume1 -> ./dm-4

 

 2) dm-4 구성된 vg01/volume1의 상태 체크

 # lvdisplay –v /dev/vg01-volume1

 

/dev/vg01-volume1: read failed after 0 of 4096 xxxx input/output error

LV(logical volume)의  fail 발생중.

 

 2-1) LV구성한 Filesystem check

 # df –h| grep vg01-volume1

  /dev/vg01-volume1  xxxx  xxxx 50%  /data

 /data   Filesystem은 현재 일부 data들이 read할수 없거나, 문제가 있을 가능성이 있음

반응형

'OS > LINUX' 카테고리의 다른 글

base64명령어 사용법  (0) 2023.01.27
[nfs] server not responding  (0) 2023.01.21
find 명령/옵션 팁  (0) 2022.12.16
/etc/group- , /etc/passwd- 파일생성  (0) 2018.08.07
gvfs  (0) 2018.01.17
반응형

 

Println() 은 한번에 한가지 자료형 밖에 출력하지 못하는 단점이 있고,

println() 메쏘드의 자료형, 각 1개씩만 사용한것으로 보인다.

 

 

반면 Printf()  format을 지정하여, 다양한 자료형을 섞어서 출력 할 수 있다.

printf()는 지시자를 이용하여 여러 가지 형식으로 값을 변환하여 출력 할 수 있음

out.format(format, args) 를 확인

 

printf()의 지시자

지시자 설명
%d 10진수출력
%x 16진수 출력
%f 부동소수점 출력
%c 문자(Character)출력
%s 문자열(String) 출력
%n 다음줄로 이동

 

%s(문자열String)의 추가기능

%s 추가기능 Ex)  
%Ns %20s 최소 20글자 출력 (우측부터)
%-Ns %-20s 최소 20글자 출력 (왼쪽부터)
%.Ns %.10s 왼쪽에서 10글자만 출력
%s %s 문자열 전체 출력

 

ㅁ Printf() 출력 예제

class Printf_Test {
	public static void main(String[] args) {
		String Test = "abcdefghijklmnop";   // 16개 
		int a = 1234;
		double d = 1.23456789;
		
		System.out.printf("d=%f%n", d);
		//결과  : d=1.234568
		 
		
		System.out.printf("[12345678901234567890]%d,%n", a);
		//결과  : [12345678901234567890]1234,
		 
		
		System.out.printf("[%s]%n", Test);
		//결과  : [abcdefghijklmnop]
		 		
		System.out.printf("[%30s]%n", Test);
		//결과  : [              abcdefghijklmnop]
		//  -- > 총 30글자의 자리,  오른쪽부터 출력
		 		
		System.out.printf("[%-30s]%n", Test); 
		//결과  : [abcdefghijklmnop              ]
     	//  -- > "-"으로 총 30글자의 자리,  왼쪽부터 출력 
		
		System.out.printf("[%.5s]%n", Test);  
		//결과  : [abcde]
		// -- > "." 으로 5글자만 출력 
				
	}
}

 

반응형

'프로그래밍 > java' 카테고리의 다른 글

HashMap 순회 에러 방지  (0) 2025.01.02
hashset, treeset 비교  (0) 2024.12.22
hashmap vs treemap 비교  (1) 2024.12.21
[java]keystore 경로, list 확인  (0) 2023.02.02
이클립스 주요 단축키  (0) 2022.12.30
반응형

Failed to get system container stats for "/system.slice/kubelet.service": failed to get cgroup stats for "/system.slice/kubelet.service": failed to get container info for "/system.slice/kubelet.service": unknown container "/system.slice/kubelet.service"

 

ㅁ 조치( To slove this event)

 - docker,kubelet restart

(root user)
systemctl stop kubelet;systemctl stop docker;
systemctl start kubelet;systemctl start docker;

 

 

반응형

'클라우드 > K8S' 카테고리의 다른 글

[k8s] k8s인증서 종류(openssl)  (0) 2023.01.26
helm 명령어  (0) 2023.01.02
[k8s] orphaned pod 조치  (0) 2022.12.16
kubectl cheet sheet, useful cheet  (0) 2022.12.15
[k8s]Node Drain  (0) 2021.09.14
반응형

connection 설정시 에러

 

- 에러 : Crypt key is missing

(출처 : Master Password — pgAdmin 4 6.18 documentation)

- 원인 : Master password를 설정하지 않아서 발생.

- 조치 :

1) 모든 세션종료, pgadmin 종료 후 재시작 

2) set master password 설정창에  패스워드 입력후 조치 

반응형

'DB > postgres' 카테고리의 다른 글

pg_hba.conf 추가  (0) 2023.01.03
postgresql table size,tablespace size 계산  (0) 2022.12.27
반응형

1) name 옵션 

ex)  host로 끝나는 모든 파일 검색 

#-name 옵션

[node2 ~]$ find / -xdev -name "host*" -exec ls -lad {} \;
-rw-r--r-- 1 root root 9 Jun  7  2013 /etc/host.conf
-rw-r--r-- 1 root root 169 Dec 16 14:04 /etc/hosts
-rw-r--r-- 1 root root 370 Jun  7  2013 /etc/hosts.allow
-rw-r--r-- 1 root root 460 Jun  7  2013 /etc/hosts.deny
drwx------ 2 root root 44 Dec 27  2020 /etc/selinux/targeted/active/modules/100/hostname
-rw-r--r-- 1 root root 6 Dec 16 14:04 /etc/hostname
-rwxr-xr-x 1 root root 3274160 Sep  9  2020 /opt/cni/bin/host-device
-rwxr-xr-x 1 root root 2847152 Sep  9  2020 /opt/cni/bin/host-local
-rwxr-xr-x 1 root root 28984 Aug 20  2019 /usr/bin/hostid
-rwxr-xr-x 1 root root 15784 Oct 18  2019 /usr/bin/hostname
-rwxr-xr-x 1 root root 325704 Oct  1  2020 /usr/bin/hostnamectl
-rw-r--r-- 1 root root 2213 Oct  1  2020 /usr/share/bash-completion/completions/hostnamectl
-rw-r--r-- 1 root root 4017 Oct  1  2020 /usr/share/perl5/Net/hostent.pm

 

2) size option

 

 -size  +1000000c   --->     'c' for bytes

- size +100000M ---> for mebibytes  MiB

-size +1G   ---->  'G' for gibibytes  GiB

 

[node2 ~]$ find / -xdev -size +10000000c -exec ls -l {} \;
-rwxr-xr-x 1 root root 10861704 Dec 27  2020 /usr/bin/docker-compose
-rwxr-xr-x 1 root root 57099280 Dec  2  2020 /usr/bin/containerd
-rwxr-xr-x 1 root root 22021168 Jul  9  2019 /usr/bin/crictl
-rwxr-xr-x 1 root root 30440976 Dec  2  2020 /usr/bin/ctr
-rwxr-xr-x 1 root root 71620680 Dec 15  2020 /usr/bin/docker
-rwxr-xr-x 1 root root 116277624 Dec 15  2020 /usr/bin/dockerd
-rwxr-xr-x 1 root root 39219040 Dec 18  2020 /usr/bin/kubeadm
-rwxr-xr-x 1 root root 40228064 Dec 18  2020 /usr/bin/kubectl
-rwxr-xr-x 1 root root 113982176 Dec 18  2020 /usr/bin/kubelet
-rwxr-xr-x 1 root root 15784696 Dec 15  2020 /usr/bin/rootlesskit
-rwxr-xr-x 1 root root 18274176 Dec  2  2020 /usr/bin/runc
-rwxr-xr-x 1 root root 37118728 Dec 15  2020 /usr/libexec/docker/cli-plugins/docker-app
-rwxr-xr-x 1 root root 54454752 Dec 15  2020 /usr/libexec/docker/cli-plugins/docker-buildx
-rw-r--r-- 1 root root 19070976 Dec 27  2020 /var/lib/rpm/Packages

 

3) -exec 사용법 

 -exec 옵션으로 추가 명령어 사용시 "{} \;" argument는 꼭 필요.

argument 없을시 아래와 같은 에러 발생함.

"find: missing argument to `-exec'"

ㅁ exec 없음
[node2 ~]$ find / -xdev -name "*hostname*"
/etc/dbus-1/system.d/org.freedesktop.hostname1.conf
/etc/selinux/targeted/active/modules/100/hostname
/etc/hostname
/usr/bin/hostname



ㅁ exec 에러 (  add "-exec <command> {} \;" ) 
[node2 ~]$ find / -xdev -name "*hostname*" -exec ls -l      
find: missing argument to `-exec'

--> 조치( "-exec <command> {} \;") 
[node2 ~]$ find / -xdev -name "*hostname*" -exec ls -l {} \;
-rw------- 1 root root  2246 Dec 27  2020 cil
-rw------- 1 root root 10176 Dec 27  2020 hll
반응형

'OS > LINUX' 카테고리의 다른 글

[nfs] server not responding  (0) 2023.01.21
I/O Error 확인  (0) 2022.12.21
/etc/group- , /etc/passwd- 파일생성  (0) 2018.08.07
gvfs  (0) 2018.01.17
firewall-cmd --remove 명령 오류 해결  (0) 2017.12.29
반응형

 

- 발생이벤트
kubelet:E0300 20:45:31.395023 0532 kubelet_volumes.go: 154] orphaned pod "23fww56c-2012-45xv-k124-452395be2792" found, but volume paths are still present on disk.

#상세조회
kurnalctl -f -u kubelet

 

- 원인 : Pod가 삭제된 상태에서 node 이슈(hang,shutdown)으로  node에서 pod 디렉토리가 삭제되지 않음

- 조치 : Pod가 사용하던 디렉토리 삭제해주면 됨

. 삭제된 Pod의 디렉토리 조회 : ls -l /var/lib/kubelet/pods/23fww56c-2012-45xv-k124-452395be2792

  (ls -l /var/lib/kubelet/pods{UID}

. 디렉토리  삭제 : rm -rf /var/lib/kubelet/pods/23fww56c-2012-45xv-k124-452395be2792

 

※ 삭제가 안될경우는 볼륨해제 후 rm 실행

mount | grep {UID}xxxxx
umount /var/lib/kubelet/pods{UID}xxxxxxx

 

 

 

반응형

'클라우드 > K8S' 카테고리의 다른 글

helm 명령어  (0) 2023.01.02
[system log]failed to get system container stats  (0) 2022.12.19
kubectl cheet sheet, useful cheet  (0) 2022.12.15
[k8s]Node Drain  (0) 2021.09.14
kubectl custom column 사용  (0) 2021.07.01
반응형

출처 : https://kubernetes.io/docs/reference/kubectl/cheatsheet/

 

kubectl Cheat Sheet

This page contains a list of commonly used kubectl commands and flags. Kubectl autocomplete BASH source <(kubectl completion bash) # set up autocomplete in bash into the current shell, bash-completion package should be installed first. echo "source <(kubec

kubernetes.io

 

ㅁ Pod/Deploy 사용중인 이미지 조회 (  Pod/Deploy's image tag) 

## Pod별 
kubectl get pod -n kube-system -o=custom-columns=podname:metadata.name,namespace:metadata.namespace,image:spec.containers..image

## deploy 별
#여러줄
kubectl get deploy -n kube-system --no-headers -o=custom-columns\
=deployname:metadata.name,name-space:metadata.namespace,\
image:.spec.template..spec.containers..image

## deploy 별
#한줄
kubectl get deploy -n kube-system --no-headers -o=custom-columns=deployname:metadata.name,name-space:metadata.namespace,image:.spec.template..spec.containers..image

## daemonset

 

ㅁ Header 제거 ( no-headers) 

kubectl get ns --output=custom-columns=:.metadata.name --no-headers

ㅁ  pod 시작시간 정렬 (sort by pod's startTime) 

kubectl get pod -A --sort-by=.status.startTime

ㅁ node,ip hostname ( k8s nodes' ip/hostname)

kubectl get nodes -o jsonpath='{.items[*].status.addresses[*].address}'

 

ㅁ secret의 base64 decode 

kubectl -n kubernetes-dashboard get secret dashboard-admin-secret -o go-template="{{.data.token | base64decode}}"

 

 

반응형

'클라우드 > K8S' 카테고리의 다른 글

helm 명령어  (0) 2023.01.02
[system log]failed to get system container stats  (0) 2022.12.19
[k8s] orphaned pod 조치  (0) 2022.12.16
[k8s]Node Drain  (0) 2021.09.14
kubectl custom column 사용  (0) 2021.07.01
반응형

기사출처: https://www.dongascience.com/news.php?idx=25370 

 

우주발사체용 로켓엔진이란 무엇인가…10개국만 보유한 극비기술

한국형발사체(KSLV-Ⅱ) ‘누리호’의 주 엔진 검증용 시험발사체가 27일 전남 고흥 나로우주센터에서세워져 있다. 시험발사체는28일 오후 4시 발사될 예정이다. - 한국항공우주연구원 제공우리 손

www.dongascience.com

 

ㅁ 기사요약

- 발사체는 액체/고체 연료가 일정하게, 폭발하지 않으면서 연소하며 발생한 가스가 배출돼 추력을 얻는다.

- 고체연료는 불이한번에 붙어버리면 추력을 조절할수 없음

- 엑체연료는 주입하는 연료량을 정교한 제어가 필요하다.  우주선 영역에서 액체 추진 로켓이 쓰이는 이유다.

 

 

 

 

반응형

+ Recent posts