Centos7与Centos6对比

1.Centos7主推荐使用ip,ss分别代替ifconfig,netstat
2.Centos7用nmtui来代替setup

nmutui(NetworkManager TUI)
setup安装后会发现什么也没有,不能正常使用,因为它只是提供一个图形界面,需要调用其它的命令(如网络服务system-config-networktui、防火墙iptables、系统服务ntsvsv等)来实现功能,而这些命令需要另外安装。

3.Centos中的eth0和ens5s0
4. 修改主机名

方式1:
临时生效方式一致:hostname 主机名
永久生效(修改配置文件,配置文件发生了改变):

  • Centos6 vim /etc/sysconfig/network
  • Centos7 vim /etc/hostname
    方式 2(推荐):
    Centos7中进行了优化,提供了更好的方式对主机名进行修改,不需要再分临时生效和永久生效
    hostnamectl --help
    hostnamectl -status
    hostnamectl
    ** 注意点:hostnamectl set-hostname A22,会将大写字母改成小写**
5.字符集设置
  • Centos6 vim /etc/sysconfig/i18n
  • Centos7 cat /etc/locale.conf
    localectl --help
7.时间设置

timedatectl --help

6.systemd统一

systemctl

<wiz_tmp_tag id="wiz-table-range-border" contenteditable="false" style="display: none;">





posted @ 2018-10-23 22:39  whatislinux  阅读(185)  评论(0编辑  收藏  举报