Centos7系统如何安装远程桌面服务

2023-04-09 21:06:00 系统 安装 远程桌面

Centos7系统安装远程桌面服务器的方法有很多,常见的有xrdp和vncserver。

xrdp是一个开源的远程桌面协议,可以实现远程桌面连接。vncserver是一个开源的远程桌面服务器,可以实现远程桌面连接。

安装xrdp

1、首先安装xrdp

yum install -y xrdp

2、启动xrdp服务

systemctl start xrdp

3、设置xrdp开机自启动

systemctl enable xrdp

4、查看xrdp状态

systemctl status xrdp

5、设置防火墙

firewall-cmd --permanent --add-port=3389/tcp

firewall-cmd --reload

6、查看3389端口是否开放

netstat -anp|grep 3389

安装vncserver

1、首先安装vncserver

yum install -y vncserver

2、启动vncserver服务

systemctl start vncserver

3、设置vncserver开机自启动

systemctl enable vncserver

4、查看vncserver状态

systemctl status vncserver

5、设置防火墙

firewall-cmd --permanent --add-port=5901/tcp

firewall-cmd --reload

6、查看5901端口是否开放

netstat -anp|grep 5901

相关文章