需要使用linux的远程桌面服务,xmanager之前用过,感觉一般,这次尝试下vnc。
我的操作系统是CentOS7
一、服务端
安装VNCServer
#yum -y install vnc *vnc-server*
设置密码
# vncserver
You will require a password to access your desktops.
Password: 123456 #输入vnc 连接密码
Verify: 123456 #确认vnc密码
xauth: creating new authority file /root/.Xauthority
New ‘localhost.localdomain:1 (root)’ desktop is localhost.localdomain:1
Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/localhost.localdomain:1.log
启动服务
启动一个窗口,如1号窗口
# vncserver :1
安装说明重要提醒:程序不支持二级目录安装,请使用一级目录或二级目录绑定!第一步,确定你的服务器支持PHP+mysql。第二步,确定你的服务器开启了gd库。第三步,将upload文件内的文件上传到网站的根目录第四步,访问你的域名+ /install/index.html进行安装,linux系统访问你的域名+ /Install/index.html第五步,按照安装程序步骤进行安装配置第六步,安装完毕后
0
停止服务
[root@iZ23zjkwlj8Z ~]# vncserver -kill :1
Killing Xvnc process ID 1661
安装GNOME桌面
装完后记得重启下vncserver
#yum groupinstall "GNOME Desktop" "Graphical Administration Tools"
二、客户端
我是Windows,用的客户端http://www.realvnc.com/,下载对应平台的VNC-Viewer
输入IP:窗口号,ok登录成功
网上说的修改 vi /root/.vnc/xstartup才能启动gnome桌面,我没有遇到过这种情况
我装完gnome,重启vncserver即可使用了。


以上就是CentOS 7 安装配置 VNC 服务器的步骤的详细内容,更多请关注php中文网其它相关文章!
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号