Windows Environment
- Operating system: Windows 10
- Development environment: VS2005 (Requires the. NET Framework 3.5 to be started for normal installation)
Linux Environment
- Release version: CentOS 7_x64
- Installation method: Win10 with Hyper-V virtual machine installation
- Advantages:
- The PC Master Windows,linux is installed in the virtual machine as a command line startup as a background server with low memory and CPU usage.
- FTP access to Linux via WINSCP && Putty Remote Tools in window enables a single computer to run Windwos and Linux at the same time.
- Disadvantages:
- Windows and Linux file transfer is via FTP and requires a computer to connect to the network.
- Configure startup mode
- Viewing the startup mode configuration file
- Modify default boot as command line interface
- Configure Network Connections
- Create an external network in Hyper-V
- Fixed CentOS IP Address
(Network configuration file path:/etc/sysconfig/network-scripts/ifcfg-eth0)
- Modify Normal User permissions
- The SU command switches to the root user
- Visudo command to modify the/etc/sudoers file
- Modify Yum Source (163 NetEase's Yum Source recommended)
- Enter the Yum Source configuration directory
Cd/etc/yum.repos.d
- The Yum source that comes with the backup system
MV Centos-base.repo CENTOS-BASE.REPO.BK
- Download 163 NetEase's Yum source (note the same as the CentOS version)
wget Http://mirrors.163.com/.help/CentOS7-Base-163.repo
- Update Yum configuration for immediate effect
Yum Clean All
Yum Makecache
- Modifying the VIM configuration
- Open VIM configuration file
sudo vim/etc/vim/vimrc
- New configuration
set Nu //Display line number
Highlight Comment Ctermfg=magenta guifg=magenta //Modify annotation Color
Conclusion
When you start CentOS once in Hyper-V Configuration Manager, shutting down Windows does not turn off CentOS. Because CentOS runs in the background of the virtual machine in the command line mode, the virtual machine supports the dynamic allocation of memory, the CPU and memory usage of CentOS is very low in actual use, can be ignored, and the integration of Microsoft's virtual machine with Windwos is really high.
Transferred from: http://blog.csdn.net/yss28/article/details/50994727
Win10 Installing the CentOS Build development environment in Hyper-V