Hỏi & Đáp
macOS Monterey 12.1 에서 Vagrant 설치 오류 해결한 방법 적습니다.
진짜 쉽게 되는게 없네요. 2-2 강의를 듣는데 172.18.1.91 에 접속이 안되네요 그래서 vagrant에서 해당 ip가 설정 된건지 구글링 해서 좀 찾아봤는데 확인 결과 각 virtual machine의 Hostname의 주소가 VagrantFile에 설정해 놓으신 172.18.1.91~93 으로 설정이 안되어 있고 127.0.0.1 로 설정되어 있네요. port번호만 다 다르고 그래서 http://127.0.0.1:2222/www/index.html 로 접속해 봤더니 webpage는 접근불가.... 아... 해결 방법 없을까요? https://ostechnix.com/how-to-find-vagrant-machine-ip-address-from-host/ user@AL01447243 VWS_vagrant_script % vagrant global-status id name provider state directory ----------------------------------------------------------------------- 57a5cfb cent1 virtualbox running /Users/user/VWS_vagrant_script 7f41593 cent2 virtualbox running /Users/user/VWS_vagrant_script 010ee1c cent3 virtualbox running /Users/user/VWS_vagrant_script The above shows information about all known Vagrant environments on this machine. This data is cached and may not be completely up-to-date (use "vagrant global-status --prune" to prune invalid entries). To interact with any of the machines, you can go to that directory and run Vagrant, or you can use the ID directly with Vagrant commands from any directory. For example: "vagrant destroy 1a2b3c4d" user@AL01447243 VWS_vagrant_script % vagrant ssh-config 57a5cfb Host cent1 HostName 127.0.0.1 User vagrant Port 2222 UserKnownHostsFile /dev/null StrictHostKeyChecking no PasswordAuthentication no IdentityFile /Users/user/VWS_vagrant_script/.vagrant/machines/cent1/virtualbox/private_key IdentitiesOnly yes LogLevel FATAL user@AL01447243 VWS_vagrant_script % vagrant ssh-config 7f41593 Host cent2 HostName 127.0.0.1 User vagrant Port 2200 UserKnownHostsFile /dev/null StrictHostKeyChecking no PasswordAuthentication no IdentityFile /Users/user/VWS_vagrant_script/.vagrant/machines/cent2/virtualbox/private_key IdentitiesOnly yes LogLevel FATAL user@AL01447243 VWS_vagrant_script % vagrant ssh-config 010ee1c Host cent3 HostName 127.0.0.1 User vagrant Port 2201 UserKnownHostsFile /dev/null StrictHostKeyChecking no PasswordAuthentication no IdentityFile /Users/user/VWS_vagrant_script/.vagrant/machines/cent3/virtualbox/private_key IdentitiesOnly yes LogLevel FATAL
- Lượt thích
- 0
- Số bình luận
- 5
- Lượt xem
- 919

