본문 바로가기

728x90

전체 글

[linux] rpcgen install for centos 8 rpcgen install for centos 8 CentOS-PowerTools.repo create file $ vim /etc/yum.repos.d/CentOS-PowerTools.repo # CentOS-PowerTools.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 manually picking other m.. 더보기
screen 명령어 screen 명령어 Summary : A screen manager that supports multiple logins on one terminal screen 설치 yum install -y screen screen 세션 시작 세션 생성 screen -S [session name] screen -S sangchul $ screen -S sangchul [detached from 4008445.sangchul] 세션 나기기 Ctrl + a, d 세션 리스트 확인 screen -ls $ screen -ls There are screens on: 4008445.sangchul(Detached) 4008392.sangchu(Detached) 2 Sockets in /var/run/screen/S-root. .. 더보기
nmap 명령어 nmap 명령어 Nmap은 네트워크 스캐닝 및 서비스 탐지 도구로서, 시스템 및 네트워크 보안 테스트 및 관리에 매우 유용한 도구 중 하나입니다. Nmap은 다양한 운영 체제에서 작동하며, 네트워크에서 호스트 및 서비스 정보를 수집할 수 있습니다. nmap 설치 centos yum install -y nmap ubuntu apt install -y nmap nmap 버전 $ nmap -V Nmap version 6.40 ( http://nmap.org ) Platform: x86_64-redhat-linux-gnu Compiled with: nmap-liblua-5.2.2 openssl-1.0.2k libpcre-8.32 libpcap-1.5.3 nmap-libdnet-1.12 ipv6 Compiled .. 더보기
nc 명령어 nc 명령어 nc 패키지 설치 yum install -y nc (또는) yum install -y nmap-ncat nc 명령어로 포트 확인하기(오픈) nc -z -v [hostname/IP address] [port number] 접속 성공(TCP 53 포트) nc -zvw10 8.8.8.8 53 $ nc -zvw10 8.8.8.8 53 Ncat: Version 7.50 ( https://nmap.org/ncat ) Ncat: Connected to 8.8.8.8:53. Ncat: 0 bytes sent, 0 bytes received in 0.05 seconds. 접속 성공(UDP 53 포트) nc -zvw10 8.8.8.8 -u 53 $ nc -zvw10 8.8.8.8 -u 53 Ncat: Vers.. 더보기
curl 명령어로 웹사이트 로딩 속도를 테스트하는 방법 curl 명령어로 웹사이트 로딩 속도를 테스트하는 방법 curl 버전 정보 $ curl --version curl 7.29.0 (x86_64-redhat-linux-gnu) libcurl/7.29.0 NSS/3.53.1 zlib/1.2.7 libidn/1.28 libssh2/1.8.0 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz unix-sockets http code 출력 curl -s -o /dev/nul.. 더보기
리눅스에서 LVM으로 구성된 ROOT(centos-root) 파티션을 확장 LVM으로 구성된 ROOT(centos-root) 파티션을 확장 테스트 환경 $ cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) $ df -Th | egrep -v tmpfs Filesystem Type Size Used Avail Use% Mounted on /dev/mapper/centos-root xfs 8.0G 1.6G 6.5G 19% / /dev/sda1 xfs 1014M 167M 848M 17% /boot 물리적 디스크 증설 - 10GB DISK 증설 추가된 DISK(sdb 디스크) lsblk $ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 10G 0 disk ├─sda1 8:1.. 더보기
교차 출처 리소스 공유(Cross-Origin Resource Sharing, CORS) 교차 출처 리소스 공유(Cross-Origin Resource Sharing, CORS) Access-Control-Allow-Origin header Access-Control-Allow-Origin은 CORS 헤더입니다. CORS 또는 Cross Origin Resource Sharing은 브라우저가 원본 A에서 실행 중인 사이트가 원본 B에서 리소스를 요청할 수 있도록 하는 메커니즘입니다. 에러 Access to images at 'https://img.sangchul.kr/img/123.png' from origin 'https://www.sangchul.kr' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is .. 더보기
[AWS] Shell 스크립트로 Amazon Machine Image(AMI) 생성하기 Shell 스크립트로 Amazon Machine Image(AMI) 생성하기 인스턴스 조회 instance-search.sh 스크립트 #!/bin/bash aws ec2 describe-instances \ --filters "Name=instance-state-name,Values=running" \ --query 'Reservations[*].Instances[*].{A_Name:Tags[?Key==`Name`]|[0].Value,B_Instance:InstanceId,C_Type:InstanceType,D_PrivateIP:PrivateIpAddress,E_PublicIP:PublicIpAddress,F_Status:State.Name,G_CreatedDate:LaunchTime}' \ --outp.. 더보기

728x90