I. Network Configuration
Ifconfig-a view IP Address
Dhclient automatically obtains the IP address
VI/etc/sysconfig/network-scripts/ifcfg-eth0 edit Nic Profile
Change bootproto to static to indicate the static IP address.
Ipaddr = our custom IP address ------ view through IP ADDR
Netmask = Subnet Mask
Gateway = gateway ------ view through route-n
Onboot = Yes (No by default) indicates starting the NIC
Dns1.dns2...
Peerdns = No
After the configuration is complete, you can restart the network by/etc/init. d/network restart or service network restart.
Ii. Use of Yum (similar to appstore)
Yum list
Software Package
Yum grouplist
Installation kit
Yum groupinstall "what"-y (Judge y or N)
Yum update
Upgrade all packages, change software and system settings, and upgrade the system version and kernel.
Yum upgrade
Upgrade all packages without changing the software and system settings. upgrade the system version without changing the kernel.
If you have already installed these commands, you will be notified of no changes.
Others,
1./etc/is the directory of the configuration file
2. # runlevel -- the default N value is 3,
3. Command for shutdown and restart: shutdown now
Reboot
Init 6 (0 indicates shutdown)
[Centos]