전체 글
-
쿠버네티스란컨테이너/쿠버네티스 2021. 1. 27. 23:05
쿠버네티스의 장점 애플리케이션 배포 단순화 하드웨어 활용도 극대화 노드의 하드웨어 리소스를 최상으로 활용할 수 있습니다. 클러스터의 주변으로 자유롭게 이동하여 실행중인 다양한 애플리케이션 구성 요소를 클러스트 노드의 가용 리소스에 최대한 맞춰 서로 섞고 매치합니다. 상태 확인 및 자가 치유 애플리케이션 구성 요소와 실행되는 노드를 모니터링 하고 노드 장애 발생 시 다른 노드로 일정을 자동으로 재조정합니다. 오토스케일링 자동으로 리소스를 모니터링하고 각 애플리케이션에서 실행되는 인스턴스 수를 지속적으로 조정이 가능합니다. DevOps를 위한 쿠버네티스 개발자 : 핵심 애플리케이션 기능에 집중 가능 개발자는 특정 인프라 관련 서비스를 애플리케이션에 구현하지 않아도 됩니다. 운영팀 : 효과적으로 리소스를 활용..
-
JVM은 무엇이며 자바 코드는 어떻게 실행하는 것인가. #1Programming/Java 2021. 1. 25. 17:08
JVM이란 무엇인가? 자바 가상 머신은 시스템 메모리를 관리하고, 자바 기반 어플리케이션을 위해 이식 가능한 실행 환경을 제공합니다. JVM의 용도와 정의 JVM에는 두가지의 기본 기능이 있습니다. 자바 프로그램이 어느 기기나 운영체제에서 실행될 수 있게 하는 것 프로그램 메모리를 관리하고 최적화 하는 것 JVM에 대한 정의는 다음 두가지로 나타낼 수 있습니다. 기술적 정의 : JVM은 코드를 실행하고 해당 코드에 대해 런타임 환경을 제공하는 소프트웨어 프로그램에 대한 사양입니다. 일반적 정의 : JVM은 자바 프로그램을 실행하는 방법입니다. JVM의 설정을 구성한 후 사항에 따라 실행 중에 프로그램 리소스를 관리합니다. JVM에서의 메모리 관리 JVM 실행에 있어서 가장 일반적인 상호 작용은 힙과 스택..
-
[Linux] grepIT Tech/Linux 2021. 1. 23. 17:16
grep을 통해 특정 단어에 해당하는 내용 추출 seho4815@linux-up-skill:/var/log$ cat auth.log | grep "authenticating" Jan 23 06:01:51 linux-up-skill sshd[3276]: Disconnected from authenticating user root 221.181.185.220 port 56537 [preauth] Jan 23 06:10:39 linux-up-skill sshd[3502]: Disconnected from authenticating user root 221.181.185.148 port 21607 [preauth] Jan 23 06:19:41 linux-up-skill sshd[3614]: Disconnecte..
-
[Linux] more/less 사용과 탭/화살표 사용법IT Tech/Linux 2021. 1. 23. 16:26
less /etc/serv $ less /etc/serv 에서 tap을 누르면 $ less /etc/service 으로 자동 완성 history seho4815@linux-up-skill:~$ history 1 sudo -i 2 ls 3 pwd 4 apt search "midnight command" 5 mc 6 apt install mc 7 sudo apt install me 8 mc 9 sudo mc 10 sudo apt install me 11 sudo apt install mc 12 me 13 mc 14 ls 15 less /etc/services 16 his tory 17 history # 이때까지의 동작했던 목록을 조회할 수 있습니다. !${history number} seho4815@linu..
-
자바스크립트 동작원리Programming/javascript 2021. 1. 22. 20:43
자바스크립트 엔진 자바스크립트 엔진에는 대표적으로 V8 엔진이 있습니다. V8 엔진은 c++로 제작되었으며 Node.js의 런타임으로도 사용됩니다. 아래는 엔진의 구조도를 간단히 나타낸 그림입니다. Memory Heap : 메모리 할당이 일어나는 곳 Call Stack : 코드 실행에 따라 호출 스택이 쌓이는 곳 런타임 대부분의 자바스크립트 개발자들이 setTimeout과 같은 브라우저 내장 API를 사용합니다. 하지만, 이 API를 자바스크립트 엔진에서 제공하지는 않습니다. 위 그림처럼, 자바스크립트 엔진 이외에도 자바스크립트에 관여하는 다른 요소들이 많습니다. DOM, Ajax, Timeout과 같이 브라우저에서 제공하는 API들을 Web API라고 합니다. Call Stack 자바스크립트는 기존적으..
-
ldap을 통해 사용자 비밀번호 변경하기Active Directory/ldap 2021. 1. 22. 20:01
우선 나는 LDAPJS를 사용하여 AD와 통신을 하였으며 Apache Directory Studio 툴을 사용하여 테스트를 진행하였다. 엔트리의 속성값 중 userPassword가 사용자의 비밀번호일 것이라 가정하며 프로젝트를 얼추 마무리 하던 중, 난관에 봉착하였다. Active Directory에서는 userPassword가 아닌 unicodePwd 속성에 사용자 비밀번호가 암호화 되어 저장된다는 것이었다. 심지어 unicodePwd는 일반적인 방법으로는 바뀌지 않아 정말 많은 Microsoft 문서들을 참고했던 것 같다. unicodePwd 변경(change) ldaps://${IP}:636 : unicodePwd의 수정을 위해선 SSL 인증을 거친 636포트를 통해 ldaps://의 형식으로 cl..
-
ldp.exe를 통한 포트 연결 확인카테고리 없음 2021. 1. 18. 15:43
Active Directory를 구성한 서버에서 ldp.exe를 실행해보자. 상단의 연결 -> 연결을 클릭 위와 같이 389 포트에 연결이 된 것을 확인할 수 있다. 그럼 이번에 LDAP의 또 다른 포트인 636에 연결을 해보자. 필자는 연동에 성공한 것을 확인할 수 있으나 CA를 통해 SSL 인증서를 발급받지 않은 케이스에는 연결할 수 없음의 알럿 창이 나올 것이다. SSL을 통해 LDAP을 활성화하는 것은 아래의 페이지를 참고하였다. https://techexpert.tips/ko/windows-ko/ssl-%EA%B8%B0%EB%8A%A5%EC%9D%84-%ED%86%B5%ED%95%B4-active-%EB%94%94%EB%A0%89%ED%86%A0%EB%A6%AC-ldap-%EC%82%AC%EC%..
-
LDAPJSActive Directory/ldap 2021. 1. 18. 15:27
LDAP에 대한 자료가 많은 자바를 택하고 싶었으나 이번 프로젝트의 최종 목적은 도커에 실어 배포를 한 후 쿠버네티스를 적용시켜 보는 것이기 때문에 개발 시간을 최대한 줄여보고자 프론트에는 React.js, 서버로는 Node.js를 선택하였다. 마침 Javascript를 위한 LDAPJS라는 프레임워크가 있어 이것을 활용해보기로 했다. http://ldapjs.org/index.html ldapjs Overview ldapjs is a pure JavaScript, from-scratch framework for implementing LDAP clients and servers in Node.js. It is intended for developers used to interacting with HTT..