在virtualbox中安装无图形界面的ubuntu,启动一个rails项目rails s,显示访问url为http://0.0.0.0:3000。
使用ifconfig查看其eth0 inet addr为10.0.2.15,在外部系统的浏览器中访问http://10.0.2.15:3000却不能打开网页,如何访问?
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
给改个虚拟机再建立一个 host-only connection;然后访问其 IP,比如
192.168.56.101。