0

VMを介してWindowsサーバー内にインストールされているUbuntuにPMAをセットアップする必要があるという要件があります。私はそれをインストールしました、そしてそれはUbuntuでうまく働いています。しかし、LANネットワークのさまざまなシステムのphpMyAdminやその他のアプリケーションを使用したいと思います。

サイトを有効にしたデフォルトファイルを構成しましたが、別のシステムからアクセスできません。Windowsに表示されている2つ1.2.3.4のIPアドレスがあり、仮想ボックスのIPアドレスとして表示されています。Ubuntuのネットワーク設定を表示する5.6.7.8と、IPアドレスとして表示されています。

問題は、1.2.3.4IPアドレスを使用すると、WindowsにインストールされているIISサーバーが表示され、それに従って有効になっているサイトでデフォルトファイルを構成すると5.6.7.8、他のシステムからではなく、WindowsからでもUbuntuでのみ使用できることです。 Ubuntuがインストールされているサーバー。

解決策を提案してください

4

1 に答える 1

0

まず、VM内のapacheが使用しているのと同じポートであるポート80を使用しているため、IISを無効にします。

次に、NAT構成を調べて、VMからポート80をホストのポート80としてエクスポートしていることを確認します。

第三に、あなたは使用したいかもしれませんVagrant、それはたくさんの鐘と笛を備えたVirtualBoxコマンドラインVMマネージャーです。試してみたい場合は、すぐに始められるようにVagrant投稿します。Vagrantfile

Vagrantfile

# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant::Config.run do |config|
    #     Specify the virtual machine base box file. This box file
    # is actually a compressed VMDK file with some aditional
    # settings.
    #     The one specified here is a default Ubuntu Lucid Lynx
    # 32bit install but you can find many others online. The url is
    # external (HTTP) because Vagrant cand download this box if you
    # don't already have it
    config.vm.box = "MyVM"
    config.vm.box_url = "http://files.vagrantup.com/lucid32.box"

    #     Tells VirtualBox to not open a GUI, it helps you avoid 
    # having a window for VirtualBox and another window for the VM.
    #     For server management windows are not necessary you can
    # connect to the VM using SSH (putty for example).
    config.vm.boot_mode = :headless

    #     In this section every pair of parameters is a VBoxManage
    # parameter/value configuration.
    config.vm.customize [
        "modifyvm", :id, 

        #     Specify the virtual machine name you want to see in
        # VirtualBox
        "--name", "MyVM",

        #     Memory for the VM
        "--memory", "2048",

        #     This fixes a bug that makes the guest not have DNS
        # proper access and implicitly not internet.
        "--natdnsproxy1", "on",
        "--natdnshostresolver1", "on"
    ]

    #     This forwards port 80 to port 4567
    config.vm.forward_port 80, 4567

    #     This mounts a shared folder between your machine and the
    # VM. The host directory is the current working directory (the
    # one you have put your Vagrantfile in). The directory is
    # mounted inside the guest as /vagrant
    config.vm.share_folder "v-root", "/vagrant", "."
end
于 2013-01-11T10:22:52.710 に答える