본문 바로가기

반응형

리눅스

C276x260 KVM Virsh Console Access On CentOS 7 KVM Virsh Console Access On CentOS 7 Enable Serial Console on the Virtual Machine 1. console=ttyS0 추가 GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0 crashkernel=auto rhgb quiet console=ttyS0 vi /etc/default/grub $ vi /etc/default/grub GRUB_TIMEOUT=5 GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)" GRUB_DEFAULT=saved GRUB_DISABLE_SUBMENU=true GRUB_TERMINAL_OUTPUT="console" GRUB_.. 더보기
C276x260 리눅스 공인IP 확인 리눅스 공인IP(NAT) 확인 curl ifconfig.me $ curl ifconfig.me 192.70.96.260 curl bot.whatismyipaddress.com curl http://ipecho.net/plain curl icanhazip.com curl ipv4.icanhazip.com curl ipv4.ipogre.com 참고URL - https://zetawiki.com/wiki/%EB%A6%AC%EB%88%85%EC%8A%A4_%EA%B3%B5%EC%9D%B8_IP_%ED%99%95%EC%9D%B8 - http://ifconfig.me/ 더보기
C276x260 tcpdump 명령어 tcpdump 명령어tcpdump는 네트워크 패킷을 캡처하는 명령어 기반의 유틸리티입니다. tcpdump를 사용하면 네트워크 상에서 전송되는 데이터를 실시간으로 모니터링하고, 패킷을 캡처하여 분석할 수 있습니다.tcpdump 기본 문법tcpdump [options] [expression]options는 tcpdump의 옵션을 지정하는 부분이며, expression은 필터링 식을 입력하는 부분입니다.host : 지정한 호스트의 IP 주소에 대한 패킷만 캡처합니다.port : 지정한 포트 번호로 전송되는 패킷만 캡처합니다.tcp : TCP 패킷만 캡처합니다.udp : UDP 패킷만 캡처합니다.1. 기본 사용 방법tcpdump를 실행하면 기본적으로 시스템의 첫 번째 네트워크 인터페이스(eth0)를 모니터링합니.. 더보기
C276x260 Proxy 서버 구축(squid) Proxy 서버 구축(squid)1. 설치yum install squid설정 파일 구성/etc/squid/squid.conf/var/log/squid/cache.log/var/log/squid/access.log2. 설정 파일(squid.conf)vi /etc/squid/squid.conf### Access Control Listacl localnet src 10.0.0.0/8 # RFC1918 possible internal networkacl localnet src 172.16.0.0/12 # RFC1918 possible internal networkacl localnet src 192.168.0.0/16 # RFC1918 possible internal networkacl SSL_port.. 더보기
C276x260 리눅스에서 HTTP Proxy Server 설정하기 리눅스에서 HTTP Proxy Server 설정하기아키텍처(Architecture)1. 로그인 세션 동안만 유지되는 방법export http_proxy=[proxy서버]:[proxy포트]export https_proxy=[proxy서버]:[proxy포트]unset http_proxyunset https_proxy2. 로그인 세션이 종료된 후에도 프록시를 유지시키는 방법*** .bashrc, .bash_profile, /etc/profilevim ~/.bashrcexport http_proxy=[proxy서버]:[proxy포트]export https_proxy=[proxy서버]:[proxy포트]source ~/.bashrc3. Proxy 설정 적용 확인env | grep -i proxyhttp_proxy .. 더보기
C276x260 mongoDB 소스 설치 mongoDB 소스 설치 mongoDB 다운로드 사이트https://www.mongodb.com/download-center#community 1. mongoDB 다운로드wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel62-3.4.4.tgz2. mongoDB 압축 해제tar xvfz mongodb-linux-x86_64-rhel62-3.4.4.tgz3. mongoDB 서브디렉토리 생성mv mongodb-linux-x86_64-rhel62-3.4.4 /appdata/ln -s /appdata/mongodb-linux-x86_64-rhel62-3.4.4 /appdata/mongodbmkdir -p /appdata/mongodb/{data,con.. 더보기
C276x260 CentOS 7에서 방화벽을 설정하는 방법 CentOS 7에서 방화벽(firewalld)을 설정하는 방법방화벽 서비스를 사용하여 규칙을 정의하고 관리하는 방식입니다. firewalld는 동적으로 방화벽 규칙을 관리하고 firewalld 명령어와 firewall-cmd 명령어를 통해 방화벽 설정을 쉽게 조정할 수 있습니다.1. 방화벽 시작 및 상태 확인방화벽 서비스 상태 확인sudo systemctl status firewalld방화벽 서비스 비활성화 및 중지(끄기)sudo systemctl --now disable firewalld방화벽 서비스 활성화 및 시작(부팅 시 자동 시작하도록 설정)sudo systemctl --now enable firewalld방화벽 상태 확인sudo firewall-cmd --state$ sudo firewall-c.. 더보기
C276x260 CentOS 7 런레벨(runlevel) 변경 CentOS 7 런레벨(runlevel) 변경1. RunLevel config 파일(CentOS 7 부터 systemctl 명령을 통해 RunLevel를 변경하도록 안내)vim /etc/inittab# inittab is no longer used when using systemd.## ADDING CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.## Ctrl-Alt-Delete is handled by /usr/lib/systemd/system/ctrl-alt-del.target## systemd uses 'targets' instead of runlevels. By default, there are two main targets:## multi-user.. 더보기

728x90
반응형