사용법 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 버튼을 클릭합니다. 결과 화면은 아래와 같습니다, 만료일까지 남은 일수..
find /var/log -type f -name "*.log" -> /var/log 경로내 파일중 *.log 형식의 파일 검색 [root@linux-1 log]# find /var/log -type f -name "*.log" /var/log/tuned/tuned.log /var/log/audit/audit.log /var/log/anaconda/anaconda.log /var/log/anaconda/X.log /var/log/anaconda/program.log /var/log/anaconda/packaging.log /var/log/anaconda/storage.log /var/log/anaconda/ifcfg.log /var/log/anaconda/ks-script-KzRyfE.log /var/l..
이번 포스팅은 nagios에서 원격 호스트를 모니터링하는 방법에 대해 알아보겠습니다. 아직 nagios 설치가 안되신 분들은 아래 링크를 참고하여 먼저 설치를 진행해 주시기 바랍니다. https://sh-safer.tistory.com/28 [모니터링] Nagios(나기오스) 모니터링 설치 설치 환경 VirtualBox CentOS 7.8 - (IP : 192.168.56.101) nagios-4.4.6 nagios-plugins-2.3.3 selinux 비활성화 vi /etc/selinux/config # SELINUX=enforcing SELINUX=disabled iptables 규칙 제거 작업 편의상.. sh-safer.tistory.com 실습 환경 VirtualBox hostname : lin..
용량이 큰 로그 파일을 열어서 확인해야 하는 경우가 종종 있으실 텐데요. 용량이 아주 큰 경우 파일 여는데에만 한참 걸리고 특정 구문을 찾는 것도 쉽지가 않습니다. 이럴 때, split 명령어를 이용하시면 원하는 크기 또는 라인 단위로 파일을 쪼개서 사용을 할 수 있습니다. 그럼 다양한 예제를 통해 사용 방법을 확인해 보도록 하겠습니다. 예제에 사용할 로그 파일명은 "test_log'이며 총 11298 라인으로 이루어져 있고 크기는 1M입니다. 예제 1. split [파일명] [root@linux-1 tmp]# split test_log - x로 시작하는 파일이 12개 생생되었습니다. [root@linux-1 tmp]# ls test_log xaa xab xac xad xae xaf xag xah xai..