1. Ensure that VMware Tools has been successfully installed in the virtual machine (very critical)
2. Open VMware and ensure that the virtual machine is turned off, and then follow the arrows in the figure below
So you're done, and when you get into the virtual machine,
Execute command Cd/mnt/hgfs to access the shared directory.
Then in the Nginx configuration file, the site corresponding to the file root path to the shared directory, it can be implemented in the virtual machine to develop
3, the share directory contains Chinese will garbled problem, the solution, take Xshell as an example
In fact, it's easy to change the code to Unicode (UTF-8).
4 can't access the virtual machine? Please turn off the firewall
Execute Command service iptables stop
5 can't find the NIC? Please enable the network card in the network card configuration file
Execute command vi/etc/sysconfig/network-scripts/ifcfg-eth0
Change Onboot=no to onboot= "yes"
Then restart the NIC and execute the command service network restart
6 Nginx cannot access the file directory
Please modify the configuration nginx.conf file to change the user and user group of Nginx service to root
Find the user www www line (basically the first line)
Modify to user root root
VMware shared Directory settings