您好,欢迎来到外链网!
当前位置:外链网 » 站长资讯 » 专业问答 » 文章详细 订阅RssFeed

Centos纯命令行文本界面下如何安装桌面?(centos命令行文件上传)

来源:互联网 浏览:57次 时间:2023-04-08

一.配置yum本地安装源:

su - root
mkdir /mnt/cdrom
mount -t iso9660 /dev/sr0 /mnt/cdrom
cd /etc/yum.repos.d
查看内容介绍是否有.repo后缀文件,没有则创建一个.repo文件,文件名随意。 请问centos7怎么从命令行界面转换到图形界面,我第一次安装完,重启就是这个界面
vi local.repo
 
[LOCAL]
name=local
baseurl=file:///mnt/cdrom
enable=1
gpgcheck=0
保存退出
yum clean all
二. 安装默认系统桌面(适于之前安装系统时未选中桌面安装) 1.安装桌面包 Centos7.9网络配置及图形界面的安装全流程
 yum groupinstall “X Window System”
 yum groupinstall “Desktop”
2.启动桌面
 init 5
3.更改启动模式 求大神解答,如何在win7的台式机上操作服务器,服务器装的centos7,没有图形界面,只是命令控
 vi /etc/inittab
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
#

id:3:initdefault: 

将上面红字部分的  3改成5 3为命令行界面   5为X window图形界面

4.安装桌面右键终端: 

 yum install nautilus-open-terminal 

本文从互联网转载,来源地址:www.downzz.com/centosjiaocheng/193951.html,原作者保留一切权利,若侵权或引用不当,请联系茶猫云(cmy.cn)删除。【茶猫云,优质云服务器提供商】