SSH 란? 암호화된 데이터를 서버와 클라이언트가 안전하게 주고받기 위해 사용하는 전송계층 프로토콜이다. SSH 키 페어 생성 (클라이언트에서) # ssh-keygen -t rsa # rsa 알고리즘으로 ssh key pair 생성 [root@linux-1 ~]# ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa. Your ..
Sample 파일 [root@linux-1 test]# cat list.txt 555 444 888 888 777 777 777 000 222 aaa ddd ggg ggg ggg aaa ccc zzz # cat list.txt | sort 중복행을 제거하기 전에 sort로 파일을 정렬합니다. [root@linux-1 test]# cat list.txt | sort 000 222 444 555 777 777 777 888 888 aaa aaa ccc ddd ggg ggg ggg zzz # cat list.txt | sort | uniq uniq 명령어로 중복라인을 제거합니다. (중복 라인중에 하나의 라인만 출력) [root@linux-1 test]# cat list.txt | sort | uniq 000 ..
# dig google.com # 기본 도메인 조회 [root@linux-1 ~]# dig google.com ; DiG 9.11.4-P2-RedHat-9.11.4-16.P2.el7_8.6 google.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER
사용법 cd [옵션] 디렉토리 예제 cd a_dir 현재 data 경로에서 a_dir 디렉토리로 이동합니다. cd 명령어 다음에 바로 디렉토리가 나오면 상대 경로로 이동을 하는 방식입니다. [root@linux-1 /]# tree /data /data ├── a_dir │ └── aa ├── b_dir │ └── bb ├── c_dir │ └── cc └── d_dir └── dd 8 directories, 0 files [root@linux-1 data]# pwd /data [root@linux-1 data]# cd a_dir [root@linux-1 a_dir]# 다음은 절대 경로로 동일한 디렉토리로 이동을 하는 방법에 대해 보겠습니다. 절대 경로는 최상위 "/"에서부터 목적지 디렉토리까지 전체 경로..
❤️ 연관 포스팅 ❤️ 👉 perccli 명령어 & 설치방법 정리 👉 MegaCLI 설치 및 기본 명령어 hpssacli 콘솔 접속 [root@www-1 bld]# ./hpssacli HPE Smart Storage Administrator CLI 2.40.13.0 Detecting Controllers...Done. Type "help" for a list of supported commands. Type "exit" to close the console. => controller와 디스크 상태 확인 => ctrl all show config Smart Array P840ar in Slot 0 (Embedded) Port Name: 1I Port Name: 2I Internal Drive Cage at..
실습 환경 k8s-master-1 CentOS 7.8 IP : 192.168.56.102 k8s-master-2 CentOS 7.8 IP : 192.168.56.106 k8s-worker-1 CentOS 7.8 IP : 192.168.56.107 k8s-worker-2 CentOS 7.8 IP : 192.168.56.108 Python3 설치 사전 작업(모든 서버에서 진행) swap 메모리 비활성화 [root@k8s-master-1 /]# swapoff -a ip forward 설정 [root@k8s-master-1 /]# cat /proc/sys/net/ipv4/ip_forward # 설정 확인 0 [root@k8s-master-1 /]# echo 1 > /proc/sys/net/ipv4/ip_forw..
# nslookup tistory.com # 도메인에 대한 IP 조회 [root@linux-1 ~]# nslookup tistory.com Server: 1.214.68.2 Address: 1.214.68.2#53 Non-authoritative answer: Name: tistory.com Address: 211.231.108.151 # nslookup -query=mx tistory.com # MX 레코드 조회 [root@linux-1 ~]# nslookup -query=mx tistory.com Server: 1.214.68.2 Address: 1.214.68.2#53 Non-authoritative answer: tistory.com mail exchanger = 20 alt.aspmx.daum...
ElasticSearch 7.x 설치 ElasticSearch 7.x 패키지를 설치하기 위해 아래 reopository를 /etc/yum.repos.d/elasticsearch.repo 위치에 등록합니다. (6.x 설치를 원하시면 7을 모두 6으로 수정하시면 됩니다.) [elasticsearch-7.x] name=Elasticsearch repository for 7.x packages baseurl=https://artifacts.elastic.co/packages/oss-7.x/yum gpgcheck=1 gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch enabled=1 autorefresh=1 type=rpm-md yum 명령어를 통해 elast..
실습 환경 hostname : linux-1 CentOS 7.8 - (IP : 192.168.56.101) hostname : linux-2 CentOS 7.8 - (IP : 192.168.56.102) hostname : llinux-3 CentOS 7.8 - (IP : 192.168.56.105) zookeeper & kafka 설치 zookeeper & kafka 설치 zookeeper & kafka 설치 zookeeper zookeeper 다운로드 [root@linux-1 src]# wget https://downloads.apache.org/zookeeper/zookeeper-3.4.14/zookeeper-3.4.14.tar.gz 압축을 풀고 디렉토리 이동 후 심볼릭 링크 설정 [root@lin..
실습 환경 hostname : gluster001 CentOS 7.8 - (IP : 192.168.56.102) Storage Node1 hostname : gluster002 CentOS 7.8 - (IP : 192.168.56.104) Storage Node 2 hostname : linux-1 CentOS 7.8 - (IP : 192.168.56.101) glusterfs client Disk(sdc) 추가 Disk(sdc) 추가 . 사전작업 모든 서버의 /etc/hosts 파일에 각 서버의 정보를 입력합니다.(DNS 등록이 되어있으면 생략하시면 됩니다.) 192.168.56.101 linux-1 192.168.56.102 gluster001 192.168.56.104 gluster002 Node1..
이번 포스팅은 nagios에서 웹 서비스를 모니터링하는 방법에 대해 알아보겠습니다. 이전 포스팅 Nagios 설치 Nagios 호스트 모니터링 실습 환경 VirtualBox hostname : linux-1 CentOS 7.8 - (IP : 192.168.56.101) nagios-4.4.6 nagios-plugins-2.3.3 VirtualBox hostname : linux-2 CentOS 7.8 - (IP : 192.168.56.102) linux-1 -> linux-2 ssh-key 등록 linux-1 서버의 nagios 설정 파일 위치로 이동합니다. [root@linux-1 objects]# pwd /usr/local/nagios/etc/objects [root@linux-1 objects]# ..
이번 포스팅은 SSL 인증서 만료일을 확인하는 방법에 대해서 알아보겠습니다 방법 1. 직접 사이트에서 확인 크롬 브라우저 해당 사이트에 접속해서 도메인 왼쪽에 자물쇠 모양을 클릭 -> "인증서:(유효)" 클릭 유효 기간을 확인하실 수 있습니다. 윈도우 Explorer 브라우저 마찬가지로 해당 사이트에 접속해서 우측에 자물쇠 모양을 클릭 -> 하단에 "인증서 보기" 클릭 동일하게 유효 기간을 확인하실 수 있습니다. 방법 2. 인증서 조회 사이트에서 확인 인증서 확인 사이트 중 하나인 " www.sslshopper.com" 를 통해 만료일을 확인하실수 있습니다. 사이트에 접속하셔서 하단에 원하시는 도메인 주소를 입력하고 Check SSL 버튼을 클릭합니다. 결과 화면은 아래와 같습니다, 만료일까지 남은 일수..