변군이글루 썸네일형 리스트형 리눅스에서 sysstat설치 및 사용 방법 리눅스에서 sysstat(sar) 설치 및 사용 방법sysstat는 Linux 시스템의 CPU, 메모리, I/O, 네트워크 등의 성능 데이터를 수집하고 분석할 수 있는 도구 모음입니다. 1. sysstat 소스 설치sysstat 소스 파일을 다운로드합니다.wget http://pagesperso-orange.fr/sebastien.godard/sysstat-9.0.5.tar.gz압축 해제tar -xzf sysstat-9.0.5.tar.gzcd sysstat-9.0.5컴파일 및 설치./configuremakemake install설치가 완료되면 sar 관련 실행 파일이 시스템에 설치됩니다.2. sysstat 데이터 수집 설정sysstat는 cron을 이용하여 시스템 성능 데이터를 주기적으로 수집합니다. 설.. 더보기 php 임의의 패스워드 생성 php 임의(랜덤)의 패스워드 생성vim passwdcreate.php 더보기 리눅스에서 Timezone을 Seoul로 변경하는 방법 리눅스에서 시스템 시간(Timezone)을 서울로 변경하는 방법1. 현재 시스템 Timezone 확인현재 시스템의 localtime 설정을 확인합니다.ls -al /etc/localtime-rw-r--r-- 1 root root 3519 Feb 26 2006 /etc/localtime2. 한국(서울) Timezone 설정한국 표준 시간(KST)을 사용하려면 /etc/localtime을 Asia/Seoul timezone으로 연결합니다.ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime3. Timezone 적용 확인설정 후 /etc/localtime이 올바르게 연결되었는지 확인합니다.ls -al /etc/localtimelrwxrwxrwx 1 root root 3.. 더보기 cacti Patches [0.8.7g] cacti PatchesDownload Official Patches [0.8.7g]// 0.8.7g 패치wget http://www.cacti.net/downloads/patches/0.8.7g/data_source_deactivate.patchwget http://www.cacti.net/downloads/patches/0.8.7g/graph_list_view.patchwget http://www.cacti.net/downloads/patches/0.8.7g/html_output.patchwget http://www.cacti.net/downloads/patches/0.8.7g/ldap_group_authenication.patchwget http://www.cacti.net/downloads/pat.. 더보기 우분투에서 Rootkit Hunter(rkhunter) 설치 및 사용 방법 우분투에서 Rootkit Hunter(rkhunter) 설치 및 사용 방법rkhunter(Rootkit Hunter)는 시스템 내 루트킷, 백도어, 악성 설정 등을 검사하는 보안 도구입니다.정기적인 점검을 통해 서버 보안을 강화할 수 있습니다.1. 설치 방법1-1. 패키지 설치우분투에서는 패키지로 간단히 설치할 수 있습니다.sudo apt updatesudo apt install -y rkhunter설치 확인rkhunter --version1-2. 소스 설치최신 버전이 필요할 경우 직접 설치할 수 있습니다.wget https://sourceforge.net/projects/rkhunter/files/latest/download -O rkhunter.tar.gztar -xzf rkhunter.tar.gzc.. 더보기 crontab을 이용한 서버 시간 동기화 설정 crontab을 이용한 서버 시간 동기화 설정crontab을 이용해 서버 시간을 주기적으로 동기화하는 방법입니다.crontab 설정crontab 편집crontab -e00 03,15 * * * /usr/bin/rdate -s time.bora.net && /sbin/clock -w &> /dev/null00 : 분 (00분)03,15 : 시 (03시, 15시)* * * : 매일 실행rdate -s : 지정된 타임 서버와 시간 동기화clock -w : 시스템 시간을 하드웨어 시계(HW Clock)에 기록&> /dev/null : 표준 출력 및 에러 메시지 제거설정 확인crontab 등록 여부를 확인한다.crontab -l00 03,15 * * * /usr/bin/rdate -s time.bora.net &.. 더보기 rsync 소스 컴파일 설치 방법 rsync 소스 컴파일 설치 방법(xinetd 기반 Server/Client 구성)rsync 데몬 모드(rsync daemon)를 이용하여 서버–클라이언트 간 디렉터리를 동기화하는 방법입니다.테스트 환경OS : Linux (CentOS/RHEL 계열)rsync 버전 : 3.0.7통신 포트 : TCP 873rsync Server 설치(Source Build)rsync 소스 다운로드cd /usr/local/srcwget http://rsync.samba.org/ftp/rsync/rsync-3.0.7.tar.gz압축 해제 및 컴파일tar xvfz rsync-3.0.7.tar.gzcd rsync-3.0.7./configuremakemake install설치 완료 후 rsync 바이너리는 기본적으로 다음 경로에 .. 더보기 John the Ripper 소스 컴파일 설치 및 사용 방법 John the Ripper 소스 컴파일 설치 및 사용 방법John the Ripper(JtR) 를 소스 코드로 설치하고 실제 패스워드 점검(크래킹 테스트)을 수행하는 방법입니다.John the Ripper 다운로드cd /usr/local/srcwget http://www.openwall.com/john/g/john-1.7.6.tar.gzjohn-1.7.6 버전을 기준으로 설명한다.압축 해제tar xvfz john-1.7.6.tar.gz소스 컴파일 및 설치John the Ripper는 별도의 configure 과정 없이 make로 빌드한다.cd john-1.7.6/srcmakemake clean generic컴파일 완료 후 실행 파일은 run 디렉터리에 생성된다.cd ../run패스워드 파일 생성(uns.. 더보기 이전 1 ··· 58 59 60 61 62 63 64 ··· 70 다음