本文摘自PHP中文网,作者藏色散人,侵删。
下面由centos教程栏目给大家介绍CentOS7.6服务器部署VNC的方法,希望对需要的朋友有所帮助!
CentOS7.6服务器部署VNC
安装vnc服务器
1 | [root@localhost ~]# yum install tigervnc-server
|
开启vnc
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | [root@localhost ~]# vncserver
You will require a password to access your desktops.
Password:
Verify:
Would you like to enter a view-only password (y/n)? n
A view-only password is not used
xauth: file /root/.Xauthority does not exist
New 'localhost.VD:1 (root)' desktop is localhost.VD:1
Creating default startup script /root/.vnc/xstartup
Creating default config /root/.vnc/config
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/localhost.VD:1.log
|
开启远程端口
1 2 3 4 5 6 | [root@localhost ~]# vncserver :1
New 'localhost.VD:1 (root)' desktop is localhost.VD:1
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/localhost.VD:1.log
|
查看服务器ip
1 2 3 4 5 6 | [root@localhost ~]# ifconfig | grep inet
inet 10.10.41.43 netmask 255.255.252.0 broadcast 10.10.43.255
inet6 2400:dd01:1001:1040:3b37:b445:ad5b:ad2f prefixlen 64 scopeid 0x0< global >
inet6 fe80::bdd8:8bd:8871:f736 prefixlen 64 scopeid 0x20<link>
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
|
关闭防火墙和selinux
阅读剩余部分
相关阅读 >>
CentOS7.6服务器如何部署vnc
更多相关阅读请进入《CentOS7.6》频道 >>
转载请注明出处:木庄网络博客 » CentOS7.6服务器如何部署VNC