Uninstall openjdk, install jdk
1. Check the java version
[lambert@localhost ~]$ java -version openjdk version "1.8.0_102" OpenJDK Runtime Environment (build 1.8.0_102-b14) OpenJDK 64-Bit Server VM (build 25.102-b14, mixed mode)
2. Check the java software installation
[lambert@localhost ~]$ rpm -qa|grep java python-javapackages-3.4.1-11.el7.noarch tzdata-java-2016g-2.el7.noarch java-1.8.0-openjdk-headless-1.8.0.102-4.b14.el7.x86_64 java-1.8.0-openjdk-1.8.0.102-4.b14.el7.x86_64 javapackages-tools-3.4.1-11.el7.noarch
3. Uninstall openjdk
.noarch can not delete
[lambert@localhost ~]$ rpm -e --nodeps python-javapackages-3.4.1-11.el7.noarch 错误:can't create 事务 lock on /var/lib/rpm/.rpm.lock (权限不够) [lambert@localhost ~]$ su - 密码: [root@localhost ~]# rpm -e --nodeps python-javapackages-3.4.1-11.el7.noarch [root@localhost ~]# rpm -e --nodeps tzdata-java-2016g-2.el7.noarch [root@localhost ~]# rpm -e --nodeps java-1.8.0-openjdk-headless-1.8.0.102-4.b14.el7.x86_64 [root@localhost ~]# rpm -e --nodeps java-1.8.0-openjdk-1.8.0.102-4.b14.el7.x86_64 [root@localhost ~]# rpm -e --nodeps javapackages-tools-3.4.1-11.el7.noarch [root@localhost ~]# rpm -qa|grep java [root@localhost ~]# [root@localhost ~]# [root@localhost ~]# [root @ localhost ~] # the Java -version bash: the Java: command not found ... [root @ localhost ~] #
4. The network configuration is provided on the virtual machine linux
cd / etc / sysconfig / network- scripts / // into the network adapter folder mv / ifcfg-ethXXX / ifcfg- eth0 // eth0-name to the ifcfg vi to edit the ifcfg-eth0 file // the TYPE = Ethernet DEFROUTE = yes = yes PEERDNS PEERROUTES = yes IPV4_FAILURE_FATAL = NO IPV6INIT = yes IPV6_AUTOCONF = yes IPV6_DEFROUTE = yes IPV6_PEERDNS = yes IPV6_PEERROUTES = yes IPV6_FAILURE_FATAL = NO NAME = eth0 UUID = ae0965e7-22b9-45aa-8ec9-3f0a20a85d11 ONBOOT = yes # Fi enabled automatically open this must change IPADDR = 192.168.182.3 # set the IP address NETMASK = 255.255.225.0 # Subnet Mask gATEWAY = 192.168.182.2 # set gateway DNS1 = 61.147.37.1 # set main the DNS DNS2 = 8.8.8.8 Preparation set # DNS BOOTPROTO = static # Enable static IP address, default is dhcp :! wq # save and exit service network restart # restart network ping www.baidu.com # test network is normal ip addr # View IP address