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