• Centos6.8安装并配置VNC


        一般服务器都会在IDC或云端,为了可以看到服务器的图形化界面,需要安装配置VNC,本例为Centos6.8上安装配置VNC。

    [root@hostname ~]#yum install -y tigervnc
    [root@hostname ~]#yum install -y tigervnc-server
    <!--安装vnc软件包-->
    [root@hostname ~]#vi /etc/sysconfig/vncservers
    #在文档最下边增加如下内容
    VNCSERVERS="1:root" #配置服务器vnc显示器为:1,默认端口号:5901
    VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -localhost"
    #显示器[2]监听ip是0.0.0.0,显示器[1]监听ip是127.0.0.1,屏幕分辨率为800x600
    [root@hostname ~]#vncpasswd #设置vnc登录密码
    Password:
    Verify:
    [root@hostname ~]#service vncserver restart #重启vnc-server服务

    做好上面的配置后在本地通过vnc viewer等软件登录,地址填写服务器ip:1或配置时对应的vnc显示器号码。

    注意:如果连接超时,有可能是服务器上iptables没有将5901端口放开。

  • 相关阅读:
    病毒
    最短母串
    单词
    Censoring
    玄武密码
    Keywords Search
    聚会
    异象石
    暗的连锁
    pat 1048. Find Coins (25)
  • 原文地址:https://www.cnblogs.com/rhjeans/p/5821183.html
Copyright © 2020-2023  润新知