重新安装了一个CentOS7,顺便整理一下与自己之前用的CentOS6的区别

CentOS6以下简称c6  CentOS7以下简称c7

1.关于文件系统:

c6 6.x使用EXT4,EXT4单个文件系统容量增大到1EB(1EB=1024PB, 1PB=1024TB),单个文件大小达到了16TB

c7 7.x使用XFS,最大支持8EB减1字节的单个文件系统,最大支持文件大小9EB,最大文件系统尺寸18EB

2.防火墙:

c6 6.x iptables

c7 7.x firewalld

3.内核版本:

c6 2.6.x-x

c7 3.10.x-x

4.数据库:

c6 MySQL

c7 MariaDB

5.时间同步:

c6 ntpq -p

c7 chronyc sources

6.修改时区:

c6 /etc/sysconfig/clock

c7 timedatectl set-timezone Asia/Shanghai

7.修改语言:

c6 /etc/sysconfig/i18n

c7 localectl set-locale LANG=zh_CN.UTF-8

8.主机名:

c6 /etc/sysconfig/network

c7 /etc/hostname

9.网络服务管理:

                CentOS6              CentOS7

启动指定服务       service 服务名 start     systemctl start 服务名

服务名关闭指定服务    service 服务名 stop     systemctl stop 服务名

服务名重启指定服务    service 服务名 restart    systemctl restart 服务名

服务名查看指定服务状态  service 服务名 status    systemctl status 服务名

服务名查看所有服务状态  service --status-all     systemctl list-units

设置服务自启动      chkconfig 服务名 on      systemctl enable 服务名

服务名设置服务不自启动  chkconfig 服务名 off     systemctl disable 服务名

服务名查看所有服务自启动状态  chkconfig --list    systemctl list-unit-files 

10.网络设置:

c6 网卡 eth0  ifconfig/setup  默认使用 network服务

c7 网卡 ens33  ip/nmtui     默认使用NetworkManager服务

最新文章

  1. loadrunner json
  2. TPCH Benchmark with Impala
  3. Ninject之旅之八:Ninject插件模型(附程序下载)
  4. HMC破解控制台密码
  5. 在UITableViewStylePlain情况下sectionHeader可以与tableview一起滑动的解决方法
  6. P1-概率论基础(Primer on Probability Theory)
  7. Linux添加新硬盘自动挂载硬盘
  8. MyEclipse运行时自动保存
  9. union 和 union all 的区别
  10. 【转】Hibernate映射机制之XXX.hbm.xml
  11. C# 通过Devart连接Oracle(不需要客户端)
  12. Slide-out Sidebar Menu
  13. java 逆波兰表达式
  14. bootstrap插件summernote 的使用
  15. [LeetCode] Kth Largest Element in a Stream 数据流中的第K大的元素
  16. 如何创建自己的composer包
  17. JScrollPane的使用
  18. js 引入外部文件之 script 标签
  19. 弹出层框架layer快速使用
  20. Pandas.plot 做图 demo(scatter,bar,pie)

热门文章

  1. linux sort uniq命令详解
  2. Python调用shell命令常用方法
  3. 2013年第四届蓝桥杯C/C++程序设计本科B组省赛 第39级台阶
  4. C# 8.0和.NET Core 3.0高级编程 分享笔记二:编程基础第二部分
  5. 软件测试跟踪工具Bugzilla的安装 - Linux版本
  6. ArrayList 从源码角度剖析底层原理
  7. Grafana、Prometheus-监控平台
  8. 如何让Spring Boot 的配置动起来?
  9. Leetcode6. Z 字形变换
  10. 第八篇 -- 用U盘制作启动盘装Win10系统