Summary of CentOS-7 commands (1)

Source: Internet
Author: User

Minimal installation of centos 7

Created as a document, in the attachment

View System Version Information

# Uname-

# Cat/etc/RedHat-release


Upgrade all packages, change software and system settings, and upgrade the system version and kernel.

# Yum-y update

Upgrade all packages without changing the software and system settings. upgrade the system version without changing the kernel.

# Yum-y upgrade


The configuration file of the host name in centos7 has changed. It is no longer/etc/sysconfig/network. Changing/etc/hostname will take effect.

# Vi/etc/hostname


In addition to modifying/etc/resolv. conf, you can also directly set/etc/sysconfig/network-scripts/ifcfg-eno16777728 In the NIC so that when the network service is restarted,/etc/resolv will be generated. configuration in Conf


View log files

# Tail-F/var/log/messages


Mount. DHCP is used as an example.

# Mkdir/mnt/CDROM

# Mount/dev/CDROM/mnt/CDROM

# Cd/mnt/CDROM/Packages

# Ls DHCP * view the DHCP installation package

# Rpm-uvh installation package

# Rpm-QC DHCP


Before changing a configuration file, we recommend that you back up it for later use.

# Cp/etc/DHCP/DHCPD. CONF/etc/DHCP/DHCPD. conf. Origin


Command changes

Systemctl is the command of the system service manager. It combines the two commands "service" and "chkconfig ".

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/46/96/wKiom1PzH26DSikwAAHzeJ0ORPU249.jpg "Title =" zhiling.jpg "alt =" wkiom1pzh26dsikwaahzej0orpu249.jpg "/>



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.