1.配置IP地址:
vim /etc/sysconfig/network-scripts/ifcfg-ens33
IPADDR=192.168.1.10
NETMASK=255.255.255.0
GATEWAY=192.168.1.254
2.重启网络服务:
systemctl restart network
3.暂时关闭防火墙:
systemctl stop firewalld
4.永久关闭防火墙:
systemctl disable firewalld
5.查看防火状态:
systemctl status firewalld
6.重启防火墙
systemctl enable firewalld
7.查看内核版本
uname -r
8.查看CPU信息
cat /proc/cpuinfo
9.查看内存
cat /proc/meminfo
10.查看主机名
hostname
11.查看IP地址
ifconfig ens33
12.关机操作
shutdown -h now
13.重启操作
shutdown -r now
14.延迟关机或重启操作
shutdown -h/r +分钟