Linux virtual machine installation

I installed ubuntu in my spare time in the past two days, and encountered

some
problems 8.8.8.8, I changed a few later, and I changed the IP again, but no matter how I changed it, it didn't work, and I almost vomited blood. Later, I saw an article about virtual machine bridge mode and NAT mode, and I went to see the network connection VMware 1 and 8, only to find the problem.
After the virtual machine is installed, VMnet1 and VMnet8 are automatically added to the network connection, both of which have network configurations. For example, my vmnet1 is 192.168.152.1, and after VMware opens it, click Edit->Virtual Network Editor, select the inside NAT type, there are configured gateways and start and end IPs in the NAT settings and DHCP settings, so that the data of the ubuntu configuration ip is obtained, and the DNS settings are consistent with the gateway. After the configuration, it is not a problem to ping the host and Baidu.

2.
There is also a small episode when JDK is configured in JDK configuration, that is, when configuring PATH, I don’t know which parallel import configuration is given.
There is no :PATH in export PATH = "". After restarting, all commands under root are unavailable. As a result, a lot of information was added. I changed a user, copied a copy of the path in /etc/environment, and executed it through
export PATH = "" ATH under root, so it can be practical, and then modified it under /root/bashrc PATH, added: PATH, and
then checked the permissions of the three files profile, bashrc, and environment,
environment is a system environment variable, profile is all user environment variables, bashrc is for the current user, so be sure to pay attention to the difference between variables when adding configuration


Finally , you need to pass
sudo update-alternatives --install /usr/lib/javac javac /usr/lib/jvm/jdk1.7.0_17/bin/javac 300
 
The command takes the common commands of java, java, javac, javah and other methods to take effect under the root account.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326687731&siteId=291194637