After the installation is minimized CentOS7

View ip addresses: ip addr / ifconfig 

modify ip address: / etc / sysconfig / Network-Script / NIC, modify = ONBOOT yes 

BOOTPROTO = dhcp -> BOOTPROTO = static IP acquisition mode to obtain static 

ZONE = public firewalld Zone = piblic (public): use in public areas, can not believe that other computers in the network will not cause harm to you, but to accept after the selected connection. 

PADDR = 10.82 . 17.71 the IP address 

ATEWAY = 10.82 . 17.1 gateway, the gateway virtual machine consistent with the virtual NIC VMnet8 set 

ETMASK = 255.255 . 255.0 subnet mask, 

the DNS1 = 10.82 . 1.4 

DNS2 = 10.82 

Installation wget - source arranged yum - installation vim--Restart the network: service network restart 

to modify the host name: hostname / hostnamectl hostnamectl SEt- hostname CentOS vim / etc / hostname 

auto-complete: yum  install bash- Completion 

inquiry jdk installation: RPM -qa | grep the Java / jdk / gcj 

unloading jdk: rpm -e - nodeps 

configuration environment variables: the / etc / profile configuration: Source / etc / Profile 

mount / release: Mount -t Auto / dev / cdrom / mnt / cdrom umount / dev / cdrom

Guess you like

Origin www.cnblogs.com/wyid/p/11260547.html