centos7的常用命令,跟6不同的地方

ip addr #	查看ip
systemctl stop firewalld # 临时关闭防火墙
systemctl disable firewalld # 禁止开机启动
systemctl enable postfix.service	#开机启动
修改hostname有单独的文件 vi /etc/hostname,6在	/etc/sysconfig/network中
cat /etc/centos-release #查看操作系统版本
systemctl list-unit-files	#查看开机启动项,用回车键翻页,按q退出
systemctl list-unit-files|grep enabled	#已启动的服务列表
systemctl	#正在运行的服务
  • df -h 查看磁盘使用情况
    在这里插入图片描述
发布了21 篇原创文章 · 获赞 0 · 访问量 614

猜你喜欢

转载自blog.csdn.net/qq_34224565/article/details/104152148