분류 전체보기568 [Linux] timedatectl로 현재 위치및 시간 정보 변경하기 timedatectl set-timezone Asia/Seoul이렇게 바꾸고 싶은 지역의시간대로 변경해줄수 있다. 2024. 5. 20. [Other] vagrant - vagrantfile vagrant 파일 예시 자세한 내용은 아래의 링크를 참고함 https://developer.hashicorp.com/vagrant/docs/vagrantfile/version Configuration Version - Vagrantfile | Vagrant | HashiCorp DeveloperConfiguration versions are the mechanism by which Vagrant 1.1+ is able to remain backwards compatible with Vagrant 1.0.x Vagrantfiles, while introducing dramatically new features and configuration options.developer.hashicor.. 2024. 5. 20. [Other] vagrant - synced_folder https://developer.hashicorp.com/vagrant/docs/synced-folders/basic_usage Basic Usage - Synced Folders | Vagrant | HashiCorp DeveloperSynced folders are configured within your Vagrantfile using the "config.vm.synced_folder" method.developer.hashicorp.com 2024. 5. 20. [Other] vagrant - https://blog.asamaru.net/2015/12/03/vagrant-warning-authentication-failure-retrying-dot-dot-dot-after-packaging-box/ Vagrant Box Packaging 후 "Warning: Authentication failure. Retrying... " 오류가 발생할 경우 해결 방법vagrant를 사용하면서 직접 box를 만들 경우가 자주 발생하지는 않는다. 하지만 환경 구성을 위해 간혹 작업을 하게되는데 작업 과정에 문제가 생기는 경우가 간혹 있다. 이번에 CentOS 7 환경을 구성blog.asamaru.net 위의 글을 참고하여 해결 virtual machine으로 프로비저닝중인증 오류가 발생해서다음 vm을 생성.. 2024. 5. 19. [Other] vagrant - Vagrant:* Unknown configuration section 'hostmanager'. http://garmoncheg.blogspot.com/2017/06/vagrant-newbie-error-unknown.html Vagrant error: * Unknown configuration section 'hostmanager'.Sometimes you get a vagrant environment or boilerplate with a Vagrantfile config in there and do a vagrant up command. And see some errors....garmoncheg.blogspot.com 자세한 사항은 위의 글을 참고 vagrant로 프로비저님을 하던중에 에러가 발생했다. 코드가 잘못된지 알았지만 해결되지 않는다. vagrant plugin in.. 2024. 5. 19. [Linux] Please recompile the kernel module and install it by sudo /sbin/vboxconfig ubuntu 22.04.4에서 virtual box를 설치하고 실행하려는데 오류가 발생 했다.sudo /sbin/vboxconfig를 입력했더니 위와 같은 오류가 또 발생한다. https://askubuntu.com/questions/777308/virtualbox-problem-kernel-module-is-not-loaded VirtualBox problem: Kernel module is not loadedI have installed VirtualBox several times, same error every time ( Also see screenshots below) WARNING: The vboxdrv kernel module is not loaded. Either there i.. 2024. 5. 19. [Linux] ubuntu - apt with .deb .deb 파일은 dpkg로 설치할수 있지만, 의존성까지 한번에 설치하기에는 apt명령어를 사용하는 것이 편리한거 같다. 근데 오랜만에 apt 명령어로 설치하려니 방법을 까먹은거 같다. 다운로드 받은 .deb 파일이 있는 디렉토리 apt install virtual 까지 입력하고 tab을 누르면현재 디렉토리에 있는 .deb 파일이 아닌repo에서 다운 받을수 있는 목록을 보여준다. apt 명령어를 사용해서 .deb 파일을 설치할 때에는 이렇게 절대경로로 작성해 주면은 된다. ps. dpkg 명령어에서는 tab 을 누르면현재 디렉토리에 있는 파일명으로자동 완성이 된다. 2024. 5. 19. [Java] 비트 연산자 & | ^ ~ > 비트 연산자의 종류는 위와 같다. | (or 연산자): 한쪽 비트의 값이 1이면 1, 아니면 0 &(And 연산자): 양쪽 비트의 값이 1이면 1, 아니면 0 ^ (XOR 연산자): 두 연산자의 값이 다를때만 1, 아니면 0 ~(비트 전환 연산자): 피연산자의 비트를 0이면 1로, 1이면 0을 바꾼다. > (쉬프트 연산자): 피연산자의 각 자리를 오른쪽 또는 왼쪽으로 이동 시킨다. 정수로 7, 11 이라는 숫자가 있을때 8비트로 각각 표현해주면7 -> 0000011111 -> 00001011이렇게 된다. | (or 연산자 사용시) int test = 7 | 11;같은 비트 자리에 하나라도 1이면 1이므로 00001111즉, 15가된다. &(And 연산.. 2024. 5. 18. [Java] 참조변수 - 2 오늘의 code F1 f= new F2();S1 s = new F2();S2 s2 = new S1();S1 s1 = new S2(); "오늘의 code"와 같은 코드가 있을때위의 보기중 틀린 것은 어느 것인가? 상황 1. F1 f = new F2();F2는 인터페이스 F1을 구현한 구현체 이므로,F1 타입의 참조변수에 F2 타입의객체 주소를 대입할수 있다. ---> 다형성 상황 2.S1 s = new F2();F2는 F1의 구현체이나, S1또한상속받기 때문에S1 타입의 참조변수 s에 F2 타입의객체 주소를대입할수 있다. ---> 다형성 상황3.S2 s2 = new S1();S2은 S1을 상속받는 자손 타입이다.그러므로 자손 타입의 참조변수에부모 타입의 객체 주소를 대입할수 없다. ---> 규칙.. 2024. 5. 18. 이전 1 ··· 51 52 53 54 55 56 57 ··· 64 다음