본문 바로가기

728x90

전체 글

[python] dns(hostname) 정보 확인 python dns(hostname) 정보 확인 socket.gethostbyname : 도메인 이름에 대한 IP 주소를 반환 socket.gethostbyname('naver.com') socket.gethostbyname_ex : 확장판(다른 이름의 리스트, 주소의 리스트를 반환) socket.gethostbyname_ex('naver.com') $ python Python 3.9.13 (main, Aug 7 2022, 01:19:39) [Clang 13.1.6 (clang-1316.0.21.2.5)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import socket >>> socket.ge.. 더보기
[python] tcp 소켓 통신 python tcp 소켓 통신 code : https://github.com/madscheme/introducing-python tcp_server.py 작성 from datetime import datetime import socket address = ('localhost', 6789) max_size = 1000 print('Starting the server at', datetime.now()) print('Waiting for a client to call.') server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) server.bind(address) server.listen(5) client, addr = server.accept() data.. 더보기
[python] udp 소켓 통신 python udp 소켓 통신 code : https://github.com/madscheme/introducing-python udp_server.py 작성 from datetime import datetime import socket server_address = ('localhost', 6789) max_size = 4096 print('Starting the server at', datetime.now()) print('Waiting for a client to call.') server = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) server.bind(server_address) data, client = server.recvfrom(max_size.. 더보기
Ubuntu Server 22.04 LTS (Jammy Jellyfish) Ubuntu Server 22.04 LTS (Jammy Jellyfish) LTS Releases old releases - old-releases.ubuntu.com Ubuntu 22.04.1 LTS (Jammy Jellyfish) Ubuntu 20.04.4 LTS (Focal Fossa) Ubuntu 18.04.6 LTS (Bionic Beaver) Ubuntu Server 22.04 LTS (Jammy Jellyfish) Ubuntu Server 22.04 LTS (Jammy Jellyfish) Daily Build https://cdimage.ubuntu.com/ubuntu-server/daily-live/current/ Ubuntu 22.04 LTS (Jammy Jellyfish) Beta ht.. 더보기
[aws] AWS CodeDeploy 사용법 AWS CodeDeploy 사용법 AWS 개발자 도구 코드를 호스팅하고 자동으로 애플리케이션을 AWS로 빌드, 테스트 및 배포합니다. 웹 소스 생성 spring boot 프로젝트 생성 - vscode spring boot 프로젝트 세팅 및 실행 : https://sangchul.kr/552 appspec.yml 생성 version: 0.0 os: linux files: - source: / destination: /home/ec2-user/build/ IAM(Identity and Access Management) Role 생성 ec2 인스턴스에서 사용할 iam role 생성 Identity and Access Management(IAM) > 액세스 관리 > 역할 > 역할 만들기 정책 이름 AmazonS.. 더보기
[기타] 2022년 Gartner 최고의 전략적 기술 동향 2022년 Gartner 최고의 전략적 기술 동향(Gartner Top Strategic Technology Trends for 2022) [1] 성장 가속(Accelerating Growth) 부문 Trend 9: 분산형 엔터프라이즈(Distributed Enterprises) Trend 10: 통합 경험(Total Experience, TX) Trend 11: 오토노믹 시스템(Autonomic Systems) Trend 12: 제너레이티브 AI(Generative Artificial Intelligence) [2] 변화 형성(Sculpting Change) 부문 Trend 5: 컴포저블 애플리케이션(Composable Applications) Trend 6: 의사결정 지능(Decision Intell.. 더보기
Amazon Linux 2에서 Python 3.10를 설치하는 방법 Amazon Linux 2에서 Python 3.10를 설치하는 방법 테스트 환경 운영체제 버전 정보 확인 $ cat /etc/os-release NAME="Amazon Linux" VERSION="2" ID="amzn" ID_LIKE="centos rhel fedora" VERSION_ID="2" PRETTY_NAME="Amazon Linux 2" ANSI_COLOR="0;33" CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2" HOME_URL="https://amazonlinux.com/" $ getconf LONG_BIT 64 시스템에 설치된 python version $ python --version Python 2.7.18 $ python3 --version Python.. 더보기
[python] ModuleNotFoundError: No module named 'PIL' python ModuleNotFoundError: No module named 'PIL' 테스트 환경 $ sw_vers ProductName:macOS ProductVersion:12.5 BuildVersion:21G72 $ python --version Python 3.9.13 Module Not Found Error Traceback (most recent call last): File "/Users/.../convert_image.py", line 2, in from PIL import Image ModuleNotFoundError: No module named 'PIL' pillow(PIL) 모듈 설치 pip 명령을 사용하여 pillow(PIL) 모듈 설치 pip3 install Pillow $ .. 더보기

728x90