리눅스 썸네일형 리스트형 systemd 명령어 systemd 명령어systemd는 리눅스 시스템 및 서비스 매니저로 부팅 시 서비스의 시작 및 관리를 담당하며 시스템 자원과 프로세스를 제어합니다. systemctl 명령어를 사용하여 systemd 기반 시스템에서 서비스를 관리할 수 있습니다.1. systemd와 systemctl의 기본 개념systemd : 리눅스에서 부팅 및 시스템 관리 작업을 제어하는 시스템 및 서비스 관리자.systemctl : systemd 서비스 및 유닛(unit)을 관리하기 위한 명령어.2. 주요 systemctl 명령어서비스 관리서비스 시작sudo systemctl start 서비스 중지sudo systemctl stop 서비스 재시작sudo systemctl restart 서비스 상태 확인sudo systemctl st.. 더보기 CentOS 7에서 기본 저장소를 변경하는 방법 CentOS 7에서 기본 저장소를 변경하는 방법(yum repository)기본 저장소CentOS-Base.repo(/etc/yum.repos.d/CentOS-Base.repo)cat /etc/yum.repos.d/CentOS-Base.repo# CentOS-Base.repo## The mirror system uses the connecting IP address of the client and the# update status of each mirror to pick mirrors that are updated to and# geographically close to the client. You should use this for CentOS updates# unless you are manuall.. 더보기 우분투에서 sysstat 설치 및 sar 명령어 사용 방법 우분투에서 sysstat 설치 및 sar 명령어 사용 방법sysstat 패키지는 우분투에서 시스템 성능을 모니터링하고 다양한 리소스 사용 정보를 수집할 수 있는 강력한 도구입니다.saXX 파일 : 원시 데이터(세부적인 시스템 성능 데이터를 포함)sarXX 파일 : 집계된 데이터(주어진 시간 동안의 통계적 요약을 포함)1. sysstat 패키지 설치sysstat 패키지를 설치합니다.sudo apt updatesudo apt install -y sysstat2. sysstat 활성화ENABLED="false" 라인을 찾아서 true로 변경합니다.sudo vim /etc/default/sysstatENABLED="true"또는sudo sed -i 's|ENABLED="false"|ENABLED="true"|'.. 더보기 Zabbix에서 Item과 Trigger를 설정하는 방법 Zabbix에서 Item과 Trigger를 설정하는 방법zabbix agent 설정tail /etc/zabbix/zabbix_agentd.conf$ tail /etc/zabbix/zabbix_agentd.conf# UserParameter=UserParameter=t8081log[*],tail -n 1000 /var/lib/tomcat7/8081/logs/catalina.out | grep "$1" | wc -lUserParameter=t8082log[*],tail -n 1000 /var/lib/tomcat7/8082/logs/catalina.out | grep "$1" | wc -lZabbix server(web) Item 설정Configuration > Hosts로 이동대상 호스트의 설정 페이지로 이.. 더보기 윈도우 텍스트(TXT) 파일를 리눅스 텍스트(TXT) 파일로 변환하는 방법 윈도우 텍스트(TXT) 파일를 리눅스 텍스트(TXT) 파일로 변환하는 방법 Windows에서 작성된 텍스트 파일을 Linux에서 사용할 수 있는 텍스트 파일로 변환하는 것은 일반적으로 인코딩 차이 때문에 필요할 수 있습니다. Windows는 주로 CRLF(Carriage Return Line Feed)를 사용하는 반면 Linux는 LF(Line Feed)만 사용합니다. 리눅스에서 dos2unix 명령어를 사용하여 Windows 스타일의 텍스트 파일을 Unix 스타일로 변환할 수 있습니다. dos2unix 패키지에 포함되어 있을 수 있습니다. 변환 명령어의 예시 dos2unix windows_file.txt linux_file.txt 만약 dos2unix 명령어가 설치되어 있지 않다면 대부분의 리눅스 배포.. 더보기 오라클 데이터베이스의 버전 정보를 확인 오라클 데이터베이스의 버전 정보를 확인 SYSDBA 권한으로 로그인 sqlplus / as sysdba $ sqlplus / as sysdba SQL*Plus: Release 10.2.0.1.0 - Production on Tue Apr 14 16:22:09 2015 Copyright (c) 1982, 2005, Oracle. All rights reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production With the Partitioning, OLAP and Data Mining options 오라클 버전 정보 확인 select * from v$version; SQL> select .. 더보기 hpacucli 유틸리티 hpacucli 유틸리티hpacucli 유틸리티를 사용하여 HP Smart Array 컨트롤러에서 RAID를 구성하는 예시입니다. 1. hpacucli 다운로드wget http://downloads.linux.hp.com/SDR/downloads/ServicePackforProLiant/RedHatEnterpriseServer/5.7Server/x86_64/2013.02.0/hpacucli-9.40-12.0.x86_64.rpmyum install hpacucli-9.40-12.0.x86_64.rpm2. Array Cardhpacucli ctrl all show$ hpacucli ctrl all showSmart Array P400 in Slot 0 (Embedded)Smart Array P800 in S.. 더보기 hpacucli 유틸리티(hpacucli 명령어) hpacucli 유틸리티 HP Smart Array 컨트롤러를 구성하고 관리하기 위한 hpacucli 명령어의 예시 컨트롤러 명령 컨트롤러의 세부 정보 표시 hpacucli> ctrl all show config hpacucli> ctrl all show config detail 컨트롤러의 상태 표시 hpacucli> ctrl all show status 캐시 활성화 또는 비활성화 hpacucli> ctrl slot=0 modify dwc=disable hpacucli> ctrl slot=0 modify dwc=enable 마지막 재검사 후 새로 추가된 장치 탐지 hpacucli> rescan 물리적 드라이브 명령 물리적 드라이브의 세부 정보 표시 hpacucli> ctrl slot=0 pd all sh.. 더보기 이전 1 ··· 146 147 148 149 150 151 152 ··· 189 다음