본문 바로가기

I T/Linux57

리눅스 1G 파일 만들기 [ dd 명령어 ] To create 1MB file (1024kb), enter: $ dd if=/dev/zero of=test.img bs=1024 count=0 seek=1024You will get an empty files (also known as "sparse file") of arbitrary size using above syntax. To create 10MB file , enter: $ dd if=/dev/zero of=test.img bs=1024 count=0 seek=$[1024*10]To create 100MB file , enter: $ dd if=/dev/zero of=test.img bs=1024 count=0 seek=$[1024*100] $ ls -lh test.imgTo create 1.. 2015. 12. 1.
apache authentication 설정!! apache authentication Apache Authentication ! 위의 그림 처럼 apache 의 보안 인증을 사용 하는 방법. 1. apache 설정 파일인 httpd.conf 의 설정을 변경. 1. 아파치 설정 파일인 httpd.conf 파일의 설정을 변경한다. Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all 위 내용은 설정 파일의 일부분으로 AllowOverride None 라고 되어 있는 부분을 AllowOverride All 로 수정한다. 수정 후 아파치 서버를 재시작 해준다. 이제 인증을 통해 제한할 디렉토리로 이동하여 .htaccess 파일을 작성한다. AuthType Basic.. 2015. 10. 7.
리눅스 log 파일 디렉토리별 의미 *** utmp, utmpx - 시스템에 현재 로그인한 사용자들에 대한 상태를 기록 - wtmp, wtmpx와 파일 포맷은 동일하나 ump(x)에는 현재 시스템에 대한 정보가 남고 wtmp(x)에는 누적된 정보가 남는다는 것이 가장 큰 차이점 - /var/run (Linux) 혹은 /var/adm, /etc/ (Solaris) 등에 위치하며 바이너리 형태로 저장되어 vi 편집기 등으로는 읽을 수 없다 - utmp(x) 파일은 기본적으로 사용자 이름, 터미널 장치 이름, 원격 로그인 시 원격 호스트 이름, 사용자 로그인한 시간 등을 기록하는데, utmp(x) 파일은 텍스트 파일이 아니므로 일반 편집기로는 내용을 정확히 확인하기 곤란 who, w, whodo, users, finger 등의 명령어를 사용하여.. 2015. 8. 30.
wireshark 패턴 2015. 8. 30.
pxe,kickstart 를 이용한 원격 OS 설치 1. TFTP 설치 및 설정[root@localhost /]# yum install tftp tftp-server[root@localhost /]# vi /etc/xinetd.d/tftp# default: off # description: The tftp server serves files using the trivial file transfer \ # protocol. The tftp protocol is often used to boot diskless \ # workstations, download configuration files to network-aware printers, \ # and to start the installation process for some operating syste.. 2015. 8. 30.
100기가 쓰레기 파일 생성 [dd 명령어] 네트워크 BMT 테스트 할 경우 속도 테스트 때문에 용량큰 파일을 옮겨 보는 경우가 많습니다 해당 리눅스 서버에서 아래 명령어를 치면 100기가 용량의 쓰레기 파일을 만들수있습니다. [root@TEST ~]# dd if=/dev/zero of=100g_file bs=100M count=1000 dd (Device Dump) bs=bytes 한번에 읽어들일 바이트수와 출력할 바이트수 두가지 다를 같은수치로 지정합니다. count=blocks 카피할 블록수를 지정합니다. dd는 읽어들일 사이즈와 출력할 사이즈를 다르게 지정할 수 있습니다. 이경우 ibs와 obs를 쓰지요. bs를 쓸경우 입출력사이즈는 동일하게 됩니다. ibs는 input, obs는 output. 2015. 8. 30.
Ip 로 사이트 접속 시도시 접속 못하게 하는법 [아파치] Options FollowSymLinks    #AllowOverride None       Order allow,Deny    Deny from all    Allow from naver.com 2015. 8. 30.
find 명령어 사용방법 find 명령어 사용법 # find [시작점] [옵션] [형식] -print 시작점 : 해당 디렉토리를 기준으로 해당 디렉토리 하위의 모든 파일음 검색 find / -name abc* -print => /(루트) 하위. 즉, 전체 디렉토리에서 파일명이 abc로 시작되는 모든 파일을 검색 find / -size +10240k -print => 크기가 10M 이상 파일 검색(크리고 검색할때는 k 단위로 검색) find / -mtime -7 -print => mtime (modification time=수정시간), 최근 7일이내 변경된 파일만 검색 find / -atime -3 -print => atime(access time=접근 시간), 최근 3일이내 접근한 파일 검색 find / -perm -4000 -.. 2015. 8. 30.
APM 설치. 테스트 버전 :CentOS 6 yum update 를 통해 패키지 최신버전을 유지합니다. [APM 설치 버전] httpd 2.3.8 mysql 5.5.14 php 5.3.6 Zend 5.3/usr/local/src에 위 파일을 다운받아 압축을 다 풀어놓습니다. cd /usr/local/src wget ris.smileserv.com/source/httpd-2.3.8.tar.gz wget ris.smileserv.com/source/php-5.3.8.tar.gz wget pub.neulwon.com/mysql-5.5.14.tar.gz wget ris.smileserv.com/source/ZendGuardLoader-php-5.3-linux-glibc23-x86_64.tar.gz tar xvzf httpd-.. 2015. 8. 30.