Centos6和7的区别

匿名 (未验证) 提交于 2019-12-02 21:59:42

1、init系统

Linux 操作系统的启动首先从 BIOS 开始,接下来进入 boot loader,由 bootloader 载入内核,进行内核初始化。内核初始化的最后一步就是启动 pid 为 1 的 init 进程。这个进程是系统的第一个进程。它负责产生其他所有用户进程。init 以守护进程方式存在,是所有其他进程的祖先。init 进程非常独特,能够完成其他进程无法完成的任务。

Sysvinit就是 system V 风格的 init 系统,Sysvinit 用术语 runlevel 来定义"预订的运行模式"。Sysvinit 检查 '/etc/inittab' 文件中是否含有 'initdefault' 项。 这告诉 init 系统是否有一个默认运行模式。Sysvinit 使用脚本,文件命名规则和软链接来实现不同的 runlevel,串行启动各个进程及服务。

Systemd 是 Linux 系统中最新的初始化系统(init),它主要的设计目标是克服 sysvinit 固有的缺点,提高系统的启动速度。systemd 和 ubuntu 的 upstart 是竞争对手,预计会取代 UpStart。Systemd的目标就是尽可能启动更少的进程,尽可能将更多进程并行启动。

2、桌面系统升级,从gnome2.x----->gnome3.x

3、文件系统由原来的ext4升级到xfs格式

EXT4是第四代文件系统,是Linux下的日志文件系统。

xfs是一个64位文件系统,对于一个32位Linuix系统,文件和文件系统的大小被限制在16TB。

4、内核版本升级,由2.6.x--------->3.10.x

5、防火墙iptables---->firewalld

[root@centos7 ~]# systemctl status firewalld ● firewalld.service - firewalld - dynamic firewall daemon    Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)  已经关闭    Active: inactive (dead)  开机不启动      Docs: man:firewalld(1)
[root@centos7 ~]# systemctl stop firewalld    #关闭firewalld [root@centos7 ~]# systemctl disable firewalld.service  #关闭开机启动 

安装iptables服务并配置

[root@centos7 ~]# yum install iptables-services -y [root@centos7 ~]# systemctl status iptables ● iptables.service - IPv4 firewall with iptables    Loaded: loaded (/usr/lib/systemd/system/iptables.service; disabled; vendor preset: disabled)    Active: inactive (dead) [root@centos7 ~]# systemctl start iptables [root@centos7 ~]# systemctl enable iptables.service Created symlink from /etc/systemd/system/basic.target.wants/iptables.service to /usr/lib/systemd/system/iptables.service. [root@centos7 ~]# systemctl status iptables.service ● iptables.service - IPv4 firewall with iptables    Loaded: loaded (/usr/lib/systemd/system/iptables.service; enabled; vendor preset: disabled)    Active: active (exited) since Sun 2018-03-25 14:07:03 CST; 44s ago  Main PID: 9727 (code=exited, status=0/SUCCESS)  Mar 25 14:07:03 centos7 systemd[1]: Starting IPv4 firewall with iptables... Mar 25 14:07:03 centos7 iptables.init[9727]: iptables: Applying firewall rules: [  OK  ] Mar 25 14:07:03 centos7 systemd[1]: Started IPv4 firewall with iptables. [root@centos7 ~]# systemctl restart iptables.service [root@centos7 ~]# iptables -L -n Chain INPUT (policy ACCEPT) target     prot opt source               destination          ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0            state RELATED,ESTABLISHED ACCEPT     icmp --  0.0.0.0/0            0.0.0.0/0            ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0            ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0            state NEW tcp dpt:22 REJECT     all  --  0.0.0.0/0            0.0.0.0/0            reject-with icmp-host-prohibited  Chain FORWARD (policy ACCEPT) target     prot opt source               destination          REJECT     all  --  0.0.0.0/0            0.0.0.0/0            reject-with icmp-host-prohibited  Chain OUTPUT (policy ACCEPT) target     prot opt source               destination          
[root@centos7 ~]# cat /etc/sysconfig/iptables  #iptables配置文件 # sample configuration for iptables service # you can edit this manually or use system-config-firewall # please do not ask us to add additional ports/services to this default configuration *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [0:0] -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT -A INPUT -p icmp -j ACCEPT -A INPUT -i lo -j ACCEPT -A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT -A INPUT -j REJECT --reject-with icmp-host-prohibited -A FORWARD -j REJECT --reject-with icmp-host-prohibited COMMIT 

6、6---->7 默认数据库Mysql---->MariaDB 

文章来源: Centos6和7的区别
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!