본문 바로가기

반응형

리눅스

[리눅스] knockpy : Subdomain Scanner Knockpy – Open Source Subdomain Scanner Tool : Python tool designed to enumerate subdomains on a target domain prerequisites $ cat /etc/redhat-release CentOS Linux release 7.6.1810 (Core) python version $ python --version Python 2.7.5 pip version $ pip -V pip 19.1.1 from /usr/lib/python2.7/site-packages/pip (python 2.7) dependencies pip install dnspython installing git clone https://github.com/g.. 더보기
[url] Easy Bash PS1 Generator Easy Bash PS1 Generator http://ezprompt.net export PS1="\[\e[31m\]\u\[\e[m\]\[\e[37m\]@\[\e[m\]\[\e[33m\]\h\[\e[m\]:\[\033[01;36m\]\W\[\e[m\]$ " 더보기
[리눅스] syslog(rsyslog)로 로그시스템 구성 syslog(rsyslog)로 로그시스템 구성 mkdir -p /apps/syslog vi /etc/rsyslog.d/rsyslog-server.conf # Provides UDP syslog reception $ModLoad imudp $UDPServerRun 514 # Provides TCP syslog reception $ModLoad imtcp $InputTCPServerRun 514 #$template RemoteHost,"/apps/syslog/%$year%/%hostname%/%hostname%-%$year%%$month%%$day%%$hour%.log" $template RemoteHost,"/apps/syslog/%$year%/%fromhost-ip%/%fromhost-ip%-%$year.. 더보기
CentOS 7에서 오라클 자바(Oracle JDK)를 설치하는 방법 CentOS 7에서 오라클 자바(Oracle JDK)를 설치하는 방법 CentOS 7에서 Oracle Java를 설치하려면 Oracle JDK 대신 OpenJDK를 설치하는 것이 좋습니다. Oracle JDK는 Oracle의 라이선스 제한으로 인해 사용하기 어렵거나 복잡할 수 있습니다. 웹 페이지(rpm 패키지 링크 복사) http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html 1. 오라클 JDK 다운로드 wget --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/o.. 더보기
[리눅스] KVM Virsh Console Access On CentOS 6 KVM Virsh Console Access On CentOS 6 Step #1 vi /boot/grub/menu.lst # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition. This means that # all kernel and initrd paths are relative to /boot/, eg. # root (hd0,0) # kernel /vmlinuz-version ro root=/dev/sda3 # initrd /initrd-[generic-]version.img #boot=/dev/sda default=0 timeout=5 splashi.. 더보기
CentOS 7에서 HAProxy를 설정하고 테스트하는 방법 CentOS 7에서 HAProxy를 설정하고 테스트하는 방법 HAProxy는 로드 밸런서 및 프록시 서버로 사용되는 소프트웨어입니다. 1. HAProxy 설치 sudo yum install haproxy 2. 설정 파일 수정 HAProxy의 설정 파일은 /etc/haproxy/haproxy.cfg에 위치합니다. 이 파일을 수정하여 로드 밸런서의 동작을 정의할 수 있습니다. vi /etc/haproxy/haproxy.cfg global log 127.0.0.1 local2 chroot /var/lib/haproxy pidfile /var/run/haproxy.pid maxconn 4000 user haproxy group haproxy daemon # turn on stats unix socket stat.. 더보기
CentOS 7에서 멀티 IP 주소를 설정하는 방법(IP Aliases) CentOS 7에서 멀티 IP 주소를 설정하는 방법(IP Aliases) [root@haproxy111 ~]$ service network restart 인터페이스 eth0 (을)를 종료 중 : [ OK ] 인터페이스 eth1 (을)를 종료 중 : [ OK ] loopback 인터페이스 종료 중 : [ OK ] loopback 인터페이스 활성화중 입니다 : [ OK ] eth0 인터페이스 활성화중 입니다 ... eth1 인터페이스 활성화중 입니다 :Determining if ip address 192.168.56.111 is already in use for device eth1... Determining if ip address 192.168.56.100 is already in use for devi.. 더보기
리눅스에서 2TB 이상 디스크를 사용하기(GPT 파티션 방식 사용) 리눅스에서 2TB 이상 디스크를 사용하기(GPT 파티션 방식 사용) MBR 파티션 방식은 2TB를 초과하는 디스크를 지원하지 않습니다. 1. GPT 파티션 사용 가능 여부 확인 리눅스 커널 버전이 GPT 파티션을 지원하는지 확인합니다. 다음 명령을 사용하여 커널 버전을 확인합니다. uname -r 커널 버전이 3.1.0 이상이면 GPT 파티션을 지원합니다. 2. parted 설치 일반적으로 parted는 리눅스 시스템에 이미 설치되어 있습니다. Debian/Ubuntu sudo apt-get install parted CentOS/RHEL sudo yum install parted 3. 디스크가 인식되었는지 확인 sudo lsblk 또는 fdisk -l 명령을 사용하여 디스크가 인식되었는지 확인합니다. .. 더보기

728x90
반응형