You start, stop, or restart a vFabric Web Server instance on Windows
by first installing it as Windows service using the
httpdctl.bat script in the
bin directory of the
instance directory, and subsequently using the Windows Services console to
start or stop it.
Warning: You always use the start
script in the
bin of the instance directory, such as
c:\vmware\vfabric-web-server\myserver\bin. Do not use the
start script in the
httpd-2.2\bin sub-directory of the main
Complete the appropriate procedure in Create vFabric Web Server Instances.
Log in to your Windows computer as the
Administrator user and start a command window.
Note for Windows: Depending on
the Windows version, you may not have the required permissions when
you start the command window, even if you logged in as the
Administrator user. If some commands in this procedure fail because of
a lack of permissions, start a new command window and use the
runas command to execute commands from the new window
instead of the original one:
prompt> runas /user:administrator "cmd.exe /k"
Change to the
bin subdirectory of the root
directory for the vFabric Web Server instance.
For example, if you created an instance called
myserver that lives in the installation directory
prompt> cd c:\vmware\vfabric-web-server\myserver\bin
Install the instance as a Windows service by running the
httpdctl.bat install command:
prompt> httpdctl.bat install
Subsequently use the Windows Services console to start, stop,
and restart the vFabric Web Server instance. The name of the instance
in the Windows Services console is
Also use the Windows
Services control panel to configure whether the service starts
automatically when Windows starts, and so on.
To test that the vFabric Web Server instance actually started,
navigate to the
URL in your browser, where
is the host computer (you
localhost if your browser is on the same
HTTP port number you provided when you created the instance. The
default value on Windows is
For example, if you are using the default ports on your local computer, use this URL:
If the vFabric Web Server instance started successfully, you should see the Welcome page.
To uninstall the vFabric Web Server instance as a Windows service, use the following command:
prompt> cd c:\vmware\vfabric-web-server\myserver\bin prompt> httpdctl.bat uninstall
Complete the procedure in Serve a Sample HTML File from your vFabric Web Server Instance.
Configure your instance as described in Configuring vFabric Web Server.