位置: 编程技术 - 正文

CentOS7和CentOS6有什么不同呢?(centos6 centos7区别)

发布时间:2024-02-26

推荐整理分享CentOS7和CentOS6有什么不同呢?(centos6 centos7区别),希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:centos7和6.5哪个好,centos7和6.5哪个好,centos6与centos7哪个好,centos6与centos7哪个好,centos6与centos7哪个好,centos6.5和7的区别,centos6.8和centos7的区别,centos7和6.5哪个好,内容如对您有帮助,希望把文章链接给更多的朋友!

CentOS 7 vs CentOS 6的不同

(1)桌面系统

[CentOS6] GNOME 2.x

[CentOS7] GNOME 3.x(GNOME Shell)

(2)文件系统

[CentOS6] ext4

[CentOS7] xfs

(3)内核版本

[CentOS6] 2.6.x-x

[CentOS7] 3..x-x

(4)启动加载器

[CentOS6] GRUB Legacy (+efibootmgr)

[CentOS7] GRUB2

(5)防火墙

[CentOS6] iptables

[CentOS7] firewalld

(6)默认数据库

[CentOS6] MySQL

[CentOS7] MariaDB

(7)文件结构

[CentOS6] /bin, /sbin, /lib, and /lib在/下

[CentOS7] /bin, /sbin, /lib, and /lib移到/usr下

(8)主机名

[CentOS6] /etc/sysconfig/network

[CentOS7] /etc/hostname

(9)时间同步

[CentOS6]

$ ntp

$ ntpq -p

[CentOS7]

$ chrony

$ chronyc sources

()修改时间

[CentOS6]

$ vim /etc/sysconfig/clock

ZONE="Asia/Tokyo"

UTC=fales

$ sudo ln -s /usr/share/zoneinfo/Asia/Tokyo /etc/localtime

[CentOS7]

$ timedatectl set-timezone Asia/Tokyo

$ timedatectl status

()修改地区

[CentOS6]

$ vim /etc/sysconfig/in

LANG="ja_JP.utf8"

$ /etc/sysconfig/in

$ locale

[CentOS7]

$ localectl set-locale LANG=ja_JP.utf8

$ localectl status

()服务相关

1)启动停止

[CentOS6]

$ service service_name start

$ service service_name stop

$ service sshd restart/status/reload

[CentOS7]

$ systemctl start service_name

$ systemctl stop service_name

$ systemctl restart/status/reload sshd

自启动

[CentOS6]

$ chkconfig service_name on/off

[CentOS7]

$ systemctl enable service_name

$ systemctl disable service_name

服务一览

CentOS7和CentOS6有什么不同呢?(centos6 centos7区别)

[CentOS6]

$ chkconfig --list

[CentOS7]

$ systemctl list-unit-files

$ systemctl --type service

强制停止

[CentOS6]

$ kill -9 <PID>

[CentOS7]

$ systemctl kill --signal=9 sshd

()网络

1)网络信息

[CentOS6]

$ netstat

$ netstat -I

$ netstat -n

[CentOS7]

$ ip n

$ ip -s l

$ ss

2)IP地址MAC地址

[CentOS6]

$ ifconfig -a

[CentOS7]

$ ip address show

3)路由

[CentOS6]

$ route -n

$ route -A inet6 -n

[CentOS7]

$ ip route show

$ ip -6 route show

()重启关闭

1)关闭

[CentOS6]

$ shutdown -h now

[CentOS7]

$ poweroff

$ systemctl poweroff

2)重启

[CentOS6]

$ reboot

$ shutdown -r now

[CentOS7]

$ reboot

$ systemctl reboot

3)单用户模式

[CentOS6]

$ init S

[CentOS7]

$ systemctl rescue

4)启动模式

[CentOS6]

[GUICUI]

$ vim /etc/inittab

id:3:initdefault:

[CUIGUI]

$ startx

[CentOS7]

[GUICUI]

$ systemctl isolate multi-user.target

[CUIGUI]

$systemctl isolate graphical.target

默认

$ systemctl set-default graphical.target

$ systemctl set-default multi-user.target

当前

$ systemctl get-default

CentOS下如何避免文件覆盖? [root@stuhe]#touchhe.txt[root@stuhe]#set-onoclobber[root@stuhe]#echohe.txtbash:he.txt:cannotoverwriteexistingfile如果要取消限制,就把set-o改为set+o[root@stuhe]#set+onoclobbe

RHEL配置Centos yum源的方法 由于RHEL的yum在线更新是收费的,如果没有注册的话是不能使用的,即不能在线安装软件。在这种情况下,如果我们使用的机器安装的是RHEL系统要是每次

centos 6.6默认iptable规则详解 今天在自己电脑上新装了centos6.6虚拟机,然后装了nginx,没有进行任何其他设置,然后就发现只能在centos上面可以访问nginx,看了下iptable的规则[root@centos

标签: centos6 centos7区别

本文链接地址:https://www.jiuchutong.com/biancheng/360649.html 转载请保留说明!

上一篇:CentOS如何卸载系统的OpenJDK?CentOS卸载系统的OpenJDK的方法(如何卸载centos7)

下一篇:CentOS下如何避免文件覆盖?(centos屏蔽ip)

  • 材料暂估可以跨年度吗
  • 租赁设备损毁赔偿案例
  • 总分机构 分总机构
  • 小规模附加税是多少
  • 小规模公司初期注销流程
  • 一般纳税人用金蝶新建账套用什么会计制度好
  • 公司销售固定资产汽车如何填申报表
  • 生产经营所得税怎么申报
  • 持有至到期投资是什么意思
  • 个人劳务报酬所得税率表
  • 零余额账户收到钱怎么办
  • 免税的农业企业可以抵扣专票吗
  • 出纳长短款项应按日结清,但不需要计算
  • 加了一年的油
  • 租赁厂房算什么费用
  • 发票上的二维码可以扫金额吗
  • 增值税专用发票验证真伪
  • 未分配利润怎么填
  • 办理核定企业所需资料
  • 开了红字发票税额已经缴纳怎么做账?
  • 固定资产清理会计处理例题
  • 资产负债应付账款怎么算
  • ca证书延期不了
  • windows10如何开启夜间模式
  • 公司法人名下的车辆算公司的车辆吗
  • 安卓手机数据迁移到红米手机
  • uniapp中的onload
  • 房地产企业增值税怎么计算
  • android上传图片到服务器
  • 转让子公司产生的投资收益在合并层面是不是全部抵消
  • 定期定额纳税申报
  • PHP+Mysql+Ajax实现淘宝客服或阿里旺旺聊天功能(前台页面)
  • 付出对价的公允
  • 线性判别分析LDA医学
  • php的foreach
  • 固定资产清理的会计科目处理
  • 股东股权转让是什么意思
  • 财政零余额账户存款
  • 支付施工单位进度款的请示
  • 公司收不到的账款而发不出去怎么办
  • 个人工程款结算了对方不付怎么办
  • 织梦怎么用模板建站
  • 运输公司燃油费占比
  • sqlserver2008密码要求
  • mysql存储过程传入参数
  • 利润分配会计处理例题
  • 季度缴纳房租申请怎么写
  • 增值税发票上注明的价款包含增值税吗
  • 应交增值税的结转怎么算
  • 科目余额表如何核对
  • 收到一张发票摘要怎么填
  • 补税的会计分录
  • 应交税费会计分录实例分析
  • 商业银行的固定资产
  • sqlserver数据库显示单个用户
  • sqlserver数据库事物日志已满
  • win10怎么设置允许远程
  • apache版本查看命令
  • 笔记本不支持win8
  • xp系统设置共享显存
  • nmeo.exe是什么
  • hyper虚拟机连接外网
  • 牛叉叉旗舰店没有了改名成啥了
  • android不同module怎么相互调用
  • perl编程
  • 创建自己的app外卖平台
  • require jquery
  • Linux 中的nc命令小结
  • python erf
  • nodejs xhr
  • android studio代码写在哪
  • js实现@功能
  • 用js实现类的方法
  • javascript编程技术
  • 江苏国税电子税务局打印控件
  • 开发票 税收编码
  • 月收入28000的个税
  • 上年汇算清缴调减的职工薪酬今年需要调增吗
  • 广东省电子税务局app
  • 海淀属于哪个省?
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号