New version of CentOS 7.0 features command update

Source: Internet
Author: User

viewing system version Information
#uname-A
#cat/etc/redhat-release


Upgrade all packages, change software settings and system settings, and upgrade the system version kernel
#yum-y Update
Upgrade all packages, do not change the software settings and system settings, System version upgrade, the kernel does not change
#yum-y Upgrade
The configuration file for the hostname in CENTOS7 has changed, it is no longer/etc/sysconfig/network, the change/etc/hostname will take effect
#vi/etc/hostname


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


viewing log files
#tail-F/var/log/messages


Mount, take DHCP 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


Change of command
SYSTEMCTL is the System Service Manager command that combines the service and Chkconfig commands together

Open Linux ports using FIREWALLD:

Open port

Firewall-cmd--zone=public--add-port=80/tcp--permanent

Command meaning:

--zone #作用域

--add-port=80/tcp #添加端口 in the format: Port/Communication protocol

--permanent #永久生效, fail after reboot without this parameter

Restarting the firewall

Firewall-cmd--reload

This article is from the "Debris Memory" blog, please be sure to keep this source http://debris.blog.51cto.com/1614432/1618912

New version of CentOS 7.0 features command update

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.