银白叹咏调 發表於 2017-2-6 15:13:18

centos7下如何安装xrdp?

<p><strong>1 安装xrdp</strong></p>
<p>(请查看自己系统的位数,命令行输入arch, 如果是32位使用则选择i386,如果是64位,请选择x86_64,epel包的名字会对应的改变,查找的方法是到镜像网站http://mirrors.ustc.edu.cn/fedora/epel/7上进入到对应的目录,查到以epel-release开头的RPM包)</p>
<p># wget http://mirrors.ustc.edu.cn/fedora/epel/7/x86_64/e/epel-release-7-7.noarch.rpm </p>
<p># rpm -Uvh epel-release-7-7.noarch.rpm </p>
<p># yum install xrdp</p>
<p><strong>2 安装 tigervnc</strong></p>
<p># yum install tigervnc tigervnc-server</p>
<p><strong>3 为用户设置vnc密码</strong></p>
<p># vncpasswd root //为root用户设置vnc密码,如果需要其他用户vnc登入, //也可以为其设置密码 passwd user</p>
<p><strong>4 配置xrdp.ini文件,否则远程连接可能无法成功</strong></p>
<p># vim /etc/xrdp/xrdp.ini </p>
<p>把max_bpp=32, 改为max_bpp=24</p>
<p><strong>5 配置SELinux , 否则可能无法启动xrdp服务,或者启动出错</strong></p>
<p>chcon -t bin_t /usr/sbin/xrdp </p>
<p>chcon -t bin_t /usr/sbin/xrdp-sesman</p>
<p><strong>6 启动xrdp服务,并设置为开机启动</strong></p>
<p># systemctl start xrdp </p>
<p># systemctl enable xrdp</p>
<p><strong>7 查看xrdp服务是否正常启动</strong></p>
<p># systemctl status xrdp.service //如果看到Active则说明正常 </p>
<p># netstat -antup|grep xrdp //看xrdp和xrdp-sesman是否正常启动</p>
<p><strong>8 关闭防火墙,或者打开防火墙3389端口</strong></p>
<p># systemctl stop firewalld.service </p>
<p># systemctl disable firewalld.servie </p>
<p>或者打开3389端口 </p>
<p># firewall-cmd --permanent --zone=public --add-port=3389/tcp </p>
<p># firewall-cmd --reload</p>
頁: [1]
查看完整版本: centos7下如何安装xrdp?