linux centos对硬件要求,CentOS 7系统配置详解

安装CentOS 7系统后,变化竟然这么大?

一、Runlevel

首先一条,原来一直用的CentOS-6.5-x86_64-minimal.iso光盘镜像(400M左右无图形系统小巧便捷),而7目前最小的镜像是CentOS-7.0-1406-x86_64-livecd.iso(700M左右),默认安装后是启动图形界面,按原来的习惯要改成启动命令行,结果发现:

[root@localhost ~]# cat /etc/inittab

# inittab is no longer used when using systemd.

#

# ADDING CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.

#

# Ctrl-Alt-Delete is handled by /etc/systemd/system/ctrl-alt-del.target

#

# systemd uses'targets'instead of runlevels. By default, there are two main targets:

#

# multi-user.target: analogous to runlevel 3# graphical.target: analogous to runlevel5#

# To set a default target, run:

#

#ln -sf /lib/systemd/system/.target /etc/systemd/system/default.target

#

好吧,systemd一统天下了(它管的东西很多很多,学Centos7首先要搞定systemd)。

[root@localhost ~]# ls -Xl /etc/systemd/system/*.target

lrwxrwxrwx. 1 root root 36 7月 8 23:12 /etc/systemd/system/default.target -> /lib/systemd/system/graphical.target

我们来看看从前的runlevel都变成什么样了?

[root@localhost ~]# ls -Xl /lib/systemd/system

[root@localhost~]# ls -Xl /lib/systemd/system/runlevel*.target

lrwxrwxrwx.1 root root 15 7月 5 00:45 /lib/systemd/system/runlevel0.target ->poweroff.target

lrwxrwxrwx.1 root root 13 7月 5 00:45 /lib/systemd/system/runlevel1.target ->rescue.target

lrwxrwxrwx.1 root root 17 7月 5 00:45 /lib/systemd/system/runlevel2.target -> multi-user.target

lrwxrwxrwx.1 root root 17 7月 5 00:45 /lib/systemd/system/runlevel3.target -> multi-user.target

lrwxrwxrwx.1 root root 17 7月 5 00:45 /lib/systemd/system/runlevel4.target -> multi-user.target

lrwxrwxrwx.1 root root 16 7月 5 00:45 /lib/systemd/system/runlevel5.target ->graphical.target

lrwxrwxrwx.1 root root 13 7月 5 00:45 /lib/systemd/system/runlevel6.target -> reboot.target

修改默认启动runlevel为 multi-user (貌似runlevel2 3 4 没区别了)

[root@localhost ~]# ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target

[root@localhost~]# ll -X /etc/systemd/system/*.target

lrwxrwxrwx. 1 root root 37 7月 10 09:42 /etc/systemd/system/default.target -> /lib/systemd/system/multi-user.target

试试init 6 还好用不。

[root@localhost ~]# init 6Connection to192.168.150.180closed by remote host.

Connection to192.168.150.180 closed.

成,好用。:)

因为我从桌面版Linux 连接Centos7系统提示变成了中文,所以需要把Centos7 的root用户语言改一下,回到原汁原味。

[root@localhost ~]# cp .bashrc .bashrc-back

[root@localhost~]# echo 'export LANG="en_Us.UTF-8"' >> /root/.bashrc

二、Services

[root@localhost ~]# chkconfig

Note: This output shows SysV services only and does not include native

systemd services. SysV configuration data might be overridden by native

systemd configurat

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值