參考:https://www.bnxb.com/linuxserver/27459.html
一、安裝
//安裝CentOS桌面
yum upgrade
yum -y groupinstall "X Window System" //執(zhí)行這條命令時(shí)報(bào)錯(cuò),跳過不影響
yum -y groupinstall "GNOME Desktop"
startx
//安裝xrdp
yum install epel* -y
yum --enablerepo=epel -y install xrdp
//添加防火墻
firewall-cmd --permanent --zone=public --add-port=3389/tcp
firewall-cmd --reload
//啟動(dòng)服務(wù)
systemctl start xrdp
systemctl enable xrdp
netstat -tnlp | grep xrdp
特別說明:在運(yùn)行yum -y groupinstall “X Window System” 時(shí)報(bào)錯(cuò),不知道什么原因。
[root@localhost ~]# yum -y groupinstall "X Window System"
已加載插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Maybe run: yum groups mark install (see man yum)
指定組中沒有可安裝或升級(jí)的軟件包
[root@localhost ~]#
試了一些方法,沒有解決,于是跳過,沒想到不影響后面的操作。
二、測(cè)試遠(yuǎn)程桌面
在windows上運(yùn)行mstsc,輸入LINUX的IP地址文章來源:http://www.zghlxwxcb.cn/news/detail-522157.html
然后就進(jìn)入登錄界面,輸入賬號(hào)密碼即可。文章來源地址http://www.zghlxwxcb.cn/news/detail-522157.html
到了這里,關(guān)于CentOS7開啟遠(yuǎn)程桌面連接的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!