본문 바로가기

728x90

전체 글

C276x260 [Mac] parallels desktop command-line mac parallels desktop command-line prlctl - 유틸리티는 가상 머신을 관리하는 데 사용됩니다. 작업에는 가상 머신 생성 및 구성, 스냅샷 관리, 복제 작업, Parallels Tools 설치, 통계 가져오기, 문제 보고서 생성 등이 포함됩니다. prlsrvctl - 이 유틸리티는 Parallels Desktop을 관리하는 데 사용됩니다. 작업에는 Parallels Desktop에 대한 일반 정보 가져오기, Parallels Desktop 기본 설정 수정, 사용자 목록 가져오기, 통계 가져오기, 라이선스 설치 등이 포함됩니다. Parallels Desktop Business and Pro Editions | Command-Line Reference | v17 prlctl l.. 더보기
C276x260 [Ansible] inventory(인벤토리) 설정 Ansible inventory 설정 Ansible은 인벤토리로 알려진 목록 또는 목록 그룹을 사용하여 인프라의 여러 관리 노드 또는 "호스트"에 대해 동시에 작동합니다. 인벤토리가 정의되면 패턴을 사용하여 Ansible을 실행할 호스트 또는 그룹을 선택합니다.(대상 서버 리스트) 구성 설정(Configuration settings) - ANSIBLE_CONFIG (환경 변수에 지정한 경우) - ansible.cfg (현재 디렉토리) - ~/.ansible.cfg (홈 디렉토리) - /etc/ansible/ansible.cfg (기본) vim ~/.ansible.cfg cat ~/.ansible.cfg [defaults] inventory = ~/inventory/hosts.ini host_key_che.. 더보기
C276x260 vagrant 설치 및 ubuntu 서버 배포 vagrant 설치 및 ubuntu 서버 배포 원도우 패키지 관리자 설치(CHOCOLATEY) 요구 사항 Windows 7+ / Windows Server 2003+ PowerShell v2+ (minimum is v3 for install from this website due to TLS 1.2 requirement) .NET Framework 4+ Windows PowerShell(오른쪽 마우스 클릭) > 관리자 권한으로 실행 chocolatey 설치 Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::Sec.. 더보기
C276x260 [Mac] Parallels Desktop에서 Vagrant를 사용하는 방법 Parallels Desktop에서 Vagrant를 사용하는 방법(설치 실패) mac os version(mac m1) $ sw_vers ProductName:macOS ProductVersion:12.5.1 BuildVersion:21G83 vagrent 설치 brew install vagrant $ vagrant --version Vagrant 2.3.0 vagrant-parallels 플러그인 설치 vagrant plugin install vagrant-parallels $ vagrant plugin list vagrant-parallels (2.2.5, global) mkdir vagrant-test cd vagrant-test vagrant 이미지 검색 Discover Vagrant Boxes .. 더보기
C276x260 Amazon Route 53 Invalid Change Batch 오류(InvalidChangeBatch 400) Amazon Route 53 Invalid Change Batch 오류(InvalidChangeBatch 400) cname_txt_record_txt CNAME 레코드 추가 cname_txt_record_txt TXT 레코드 추가 cname_txt_record_txt CNAME 레코드가 있는 상태에서 cname_txt_record_txt TXT 레코드를 생성하면 아래와 같이 오류가 발생합니다. 오류 발생 잘못된 요청입니다. (InvalidChangeBatch 400: RRSet of type TXT with DNS name cname_txt_record_txt.scbyun.com. is not permitted because a conflicting RRSet of type CNAME with the .. 더보기
C276x260 [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.. 더보기
C276x260 [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.. 더보기
C276x260 [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.. 더보기

728x90