Simulating the real environment of building Web projects (i)

Source: Internet
Author: User

Prefacerecently try to build a complete Web project running environment, summarize the knowledge points that have been learned in the past few months. The following article mainly includes a few things:A. Build a Linux server to deploy the Redis, MONGO and other data storage environments;B. Build a Windows Server 2008 and use IIS to deploy the Web project; next go to the topic, this article mainly introduces the use of virtual machines to deploy the test environment,How to configure the associated network connection.   One, install a win7 client with VM, Ubuntu Server, Windows Server 2008 Serverhere does not introduce how to install, there are many tutorials on the web.   two, network connection mode (bridge mode and NAT mode)after the system has been installed, configure the network connection mode,The virtual machine provides several network connection modes, where only bridge mode and NAT mode are described.   (1) NAT modeNAT mode is to let the virtual system through the host host to access public network, the virtual system belongs to the internal system of the host, is the inclusion of the relationship. (e.g.) in, Host 1 and host 2 are in the same network segment (172.72.25.255),Host 1 is able to access the extranet by accepting WiFi that is sent by host 2.  The virtual host is in the same network segment as host 1 (192.168.23.255),The virtual host accesses the extranet through the host.  in particular, the virtual host and Host 1 in LAN A,and Host 1 and host 2 in LAN B, so host 2 and the virtual host can not access each other.   (2) Bridging modeBridge mode is to let the virtual system simulate a physical network card, and the host is a parallel relationship. (e.g.) in, the virtual host simulates a piece of its own physical NIC,by configuring the Internet IP, it is in the same network segment as host 1 (172.72.25.255), enabling access to the extranet. at this time, the virtual host, Host 1, host 2 is in the same LAN, so that they can access each other.  in this tutorial, each system uses a bridging mode,This ensures that all test machines are in the same LAN.  "Hint"in a Linux environment, query the native IP in the console input ifconfig, and ping the test to access the specified IP. in a Windows environment, query the native IP in console input ipconfig, and ping tests to see if the specified IP is reachable.  The next article will show you how to deploy Redis in an Ubuntu environment.

Simulating the real environment of building Web projects (i)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.