安装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 runlevel 5
#
# To set a default target, run:
#
# ln -sf /lib/systemd/system/<target name>.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 6
Connection to 192.168.150.180 closed by remote host.
Connection to 192.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在CentOS 7上利用systemctl添加自定义系统服务 http://www.linuxidc.com/linux/2014-07/104487.htmCentOS 7.0下编译安装LNMP http://www.linuxidc.com/Linux/2014-07/104247.htmCentOS 7.0体验与之前版本的不同 http://www.linuxidc.com/Linux/2014-07/104196.htmCentOS 7 正式版发布下载 http://www.linuxidc.com/Linux/2014-07/104146.htmU盘安装64位CentOS 6.5方法 http://www.linuxidc.com/Linux/2014-04/100035.htmWin7安装64位CentOS 6.4双系统详细图文教程 http://www.linuxidc.com/Linux/2014-04/100032.htmCentOS与Windows双系统安装注意事项记录 http://www.linuxidc.com/Linux/2014-05/101571.htm
更多详情见请继续阅读下一页的精彩内容: http://www.linuxidc.com/Linux/2014-09/107375p2.htm
| 【内容导航】 |
| 第1页:Runlevel | 第2页:Services |
| 第3页:网络 | 第4页:ip ss指令替代 ifconfig route arp netstat |
| 第5页:nmtui配置基本网络连接 | 第6页:nmcli和其他网络设置 |
| 第7页:为网络接口添加多IP | |
OS X下使用Xamarin Studio开发ASP.NET MVC程序时遇到的坑及解决办法Ubuntu 14.04上创建的RHEL6.4虚拟机迁移到RHEL6.4主机上相关资讯 CentOS 7
- 在VirtualBox中安装CentOS 7 (今 10:00)
- Win10下安装CentOS 7双系统详解 (06月06日)
- 如何在 CentOS 7 中添加新磁盘而不 (04月21日)
| - CentOS 7 下实现多虚拟机互信 (07月22日)
- CentOS 7 隐藏任务栏和顶栏 (05月09日)
- CentOS Linux 7二月更新镜像已放出 (02月29日)
|
本文评论 查看全部评论 (0)