CentOS 6(OLE 6,RHEL 6类似) CcnetOS 7(OLE 7,RHEL 7类似) 影响
默认文件系统 ext4 xfs 大量小文件在ext4上工作性能较好
在64位linux中,ext4最大支持16TB的文件,xfs最大支持8EB的文件
防火墙 iptables firwalld 原来使用iptables,现在在CentOS 7中失效。关闭防火墙使用chkconfig iptables off,是会报错error reading information on service iptables: No such file or directory。
需要systemctl disable firewalld.service

注:如果不关闭防火墙,在创建MySQL group replication时会报错无法连接到其他节点。

默认数据库 mysql mariadb 在CentOS 7上安装mysql(社区版或者企业版),需要先卸载mariadb
python 2.6 2.7  
修改主机名 vi /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=<hostname>
GATEWAY=192.168.10.1
hostnamectl set-hostname <hostname> CentOS 6的修改主机名方式,在7下,重启后就失效
语言和字符集 cat /etc/sysconfig/i18n cat /etc/locale.conf  
修改时区 sudo ln -s /usr/share/zoneinfo/Asia/Tokyo /etc/localtime timedatectl set-timezone Asia/Tokyo  
重启服务 service sshd restart/status/reload systemctl restart/status/reload sshd.service service的命令,被替换成systemctl xxx.service,但是其实service命令还是在centos 7中被兼容,只是会提示被redirect到systemctl命令
随机启动服务 chkconfig service_name on/off systemctl enable/disable service_name 随机启动服务的命令也会systemctl接管。
网络检查 ifconfig ip address show CentOS 7 最小安装,不包含ifconfig,需要yum install net-tools
网卡名称 eth0 eno16777736 CentOS7采用NetworkManager.service来进行网络管理,采用主板dmidecode采集命名。

两个节点网卡名称不一致,会导致Oracle RAC安装时自检报错。

可以通过修改配置来还原为RHEL6的命名方案。
1. 修改Grub配置文件
(开机给kernel传递参数,关闭主板dmidecode采集命名)
vim /etc/sysconfig/grub
#在GRUB_CMDLINE_LINUX配置项中加入
net.ifnames=0 biosdevname=0         #不启用BIOSDEV的配置

2.重新加载Grub配置
grub2-mkconfig -o /boot/grub2/grub.cfg

3. 生成RHEL6的网卡配置文件
cd /etc/sysconfig/network-scripts
mv ifcfg-enxxxxxx ifcfg-eth0

4.配置网卡  vim ifcfg-eth0
NAME=”eth0″
ONBOOT=yes

5.重启系统生效
systemctl reboot

进单用户模式 开机在kernel版本的菜单,按e,再在kernel一行的最后加上空格single 开机在kernel版本的菜单,按e,再在linux 16的那一行,把ro改成 “rw init=/sysroot/bin/sh”. 完成之后按 “Ctrl+x”进入单用户模式。
chroot /sysroot/
passwd root
touch / .autorelabel(如果有开selinux,必须touch这个文件)
 

一些centos 6和centos 7的区别的更多相关文章

  1. CentOS下载及版本选择-CentOS LiveCD、LiveDVD和BinDVD区别

    1.CentOS系统镜像有两个,安装系统只用到第一个镜像即CentOS-6.x-i386-bin-DVD1.iso(32位)或者CentOS-6.x-x86_64-bin-DVD1.iso(64位), ...

  2. CentOS 7 镜像文件各个版本区别

    CentOS ISO 镜像文件的功能 引导安装 CentOS ISO 镜像文件包含有安装程序,官方称其为 Anaconda,用来引导安装 CentOS 提供 CentOS 的安装文件 镜像文件不一定包 ...

  3. (转)CentOS之7与6的区别

    CentOS之7与6的区别 原文:http://www.cnblogs.com/Csir/p/6746667.html http://blog.csdn.net/u012562943/article/ ...

  4. CentOS 6和 CentOS 7的区别【转】

    虽然,redhat 8在今年已经推出了,但是centos 8还没有推出.而且公司好多都在用centos 6和7 来了解一下6和7的区别吧 整体说明 1.系统 项目CentOS 6CentOS7 . 安 ...

  5. centos系统与ubuntu系统的区别

    centos和ubuntu简述 CentOS(Community ENTerprise Operating System)是Linux发行版之一,它是来自于Red Hat Enterprise Lin ...

  6. CentOS / Redhat : Configure CentOS as a Software Router with two interfaces

    CentOS / Redhat : Configure CentOS as a Software Router with two interfaces   Linux can be easily co ...

  7. CentOS查看系统信息-CentOS查看命令

    一:查看cpu more /proc/cpuinfo | grep "model name" grep "model name" /proc/cpuinfo 如 ...

  8. In Place Upgrade of CentOS 6 to CentOS 7

    Note: This is not the most highly recommended method to move from CentOS 6 to CentOS 7 ... but it ca ...

  9. CentOS 七 vs CentOS 6的不同

    CentOS 七 vs CentOS 6的不同   CentOS 7 vs CentOS 6的不同(1)桌面系统[CentOS6] GNOME 2.x[CentOS7] GNOME 3.x(GNOME ...

  10. centos 6 与 centos 7 服务开机启动、关闭设置的方法

    简单说明下 centos 6 与 centos 7 服务开机启动.关闭设置的方法: centos 6 :使用chkconfig命令即可. 我们以apache服务为例: #chkconfig --add ...

随机推荐

  1. 前端通信:ajax设计方案(二)---集成轮询技术

    上一篇文章介绍了ajax技术核心方法,和跨域的问题(只要后台支持跨域默认post就可以),这篇文章讲解一下使用ajax实现的轮询技术,至于iframe,SSE服务器单向推送,以及webSocket双工 ...

  2. PMP备考指南之第一章:引论

    本文已同步至 GitHub/Gitee/公众号,感兴趣的同学帮忙点波关注~ 第一章  引论 1."项目管理知识体系":应该包含所有行业.应用领域项目管理的具体知识.技能.方法和实践 ...

  3. Chapter 3 Phenomenon——11

    "I'm completely fine, Char — Dad," I sighed. "There's nothing wrong with me." “我 ...

  4. centos7-windows10 双系统安装

    win10默认, 然后压缩出来一个卷安装win7: http://www.techweb.com.cn/network/system/2016-12-21/2456741.shtml http://b ...

  5. ZBar之ZBarReaderViewController

    // // ViewController.m // ZBarReaderViewController // // Created by City--Online on 15/6/9. // Copyr ...

  6. val();html();.text()区别

    对于innerHTML 属性,几乎所有的元素都有innerHTML属性,它是一个字符串,用来设置或获取位于对象起始和结束标签内的HTML.(获取HTML当前标签的起始和结束里面的内容) 对于inner ...

  7. Angular待办事项应用3

    隔离业务逻辑 接着上一节,业务逻辑应该复古牛仔单独的service中,我们在todo文件夹中建立TodoService ng g s todo/todo 引入UUID包 todo中id要唯一,一个是采 ...

  8. [javaSE] 数组(排序-冒泡排序)

    两层嵌套循环,外层控制循环次数,内层循环进行比较 for(int x=0;x<arr.length-1;x++){ for(int y=0;y<arr.length;y++){ if(ar ...

  9. C语言读取配置文件

    自从大学学完C之后,就再也没用过它了, 在网上找代码,七拼八凑之后,终于成形~~勉强能用,不喜勿喷,^_^! int GetValue(const wchar_t *key, wchar_t *val ...

  10. spring事务注解失效问题

    问题描述: 由于工作需要,需要在spring中配置两个数据源,有一天突然发现@Transactional注解失效 环境框架: springmvc+spring+spring jdbcTemplate ...