Home >Operation and Maintenance >CentOS >Set up and configure a local Linux server through VMware
The process of setting up a local Linux server deployment project in VMware
1. Prepare the Linux environment in VMware
2. Configure the network connection
3. Installation and management web operation management (Pagoda, Xiaopi, etc.)
4. Access management control panel
5. Deployment project
6. Configure local host
7. Successfully access the configured URL
1. Preparation:
VMware Workstation Pro
CentOs (Tips: Installation centos7 tutorial)
2. Network connection:
In order to communicate with the host host, vmware should set the bridge mode.
Important operations: More settings in vmware's virtual network editor, bridge mode to bridge to the host's WLAN network card (local network adapter view), re- The connection view IP is: 192.168.1.10, and the host’s IP address is 192.168.1.7, and they can ping each other. (If ping fails, open the inbound rules of the host firewall, filter by configuration file, filter by public configuration file, and enable file and printer sharing echo request-ICMpv4-In).
3. Installation management (Take the installation of the pagoda as an example):
RunPagodaIn centOs installation command
##yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh
##result:
## 4. Visit the Pagoda Control PanelBt-Panel:
http://118.77.239.41:8888/87fcf236password: 4a0db007
Because it is included Network, the IP here is the connected external network IP, so you should visit http://192.168.1.10:8888/87fcf236
'http://192.168.1.10:8888/87fcf236',
##5. Deployment Project
Add site: abc.xpv.com (refer to the pagoda manual for specific operations. Ordinary tests can be added to the top directory, while laravel needs to add the running directory to public)
6. Configure local host At this time, accessing abc.xpv.com is invalid, or the website of abc.xpv.com already exists.
Solution:
Need to modify the local HOST and point the new URL to the virtual machine ip address for management Open C:\Windows\System32\drivers\etc\hosts and add 192.168.1.10 URL
##7. The computer accesses the URL successfullyOf course, this website is only accessible for testing within the local LAN. The external network cannot be accessed.
Summary:#This method allows you to experience deployment projects without purchasing a cloud server. Some codes are not available under Windows. Problem, there may be errors during deployment.
But there are also inconveniences. You have to start the virtual machine every time you use it (it is recommended to suspend the virtual machine)The above is the detailed content of Set up and configure a local Linux server through VMware. For more information, please follow other related articles on the PHP Chinese website!