参考链接:

http://blog.csdn.net/russle/article/details/4757888

http://www.linuxidc.com/Linux/2016-06/132024.htm

VNC安装步骤

1、下载vncserver

yum install tigervnc tigervnc-server –y

2、配置当前用户的vnc登陆密码,连续输入两次即可。这个密码是vnc连接密码,和系统密码没有关系。可以不一样。
[root@localhost ~]# vncpasswd 
Password:
Verify:
[root@localhost ~]#

3、启动vncserver服务。

第一次启动时这样操作  直接输入 vncserver 
系统会自动建立相关的配置文件和日志文件。启动后系统会提示出一个进程号为1的窗口。
如果需要启动两个窗口的话则再次执行VNCSERVER 命令即可。
[root@localhost X11]# vncserver

修改密码

[root@xxxxx ~]# vncpasswd

Password:
Verify:
[root@xxxxx ~]# 

关闭VNC

1、查找进程、杀进程

[root@xxxxx ~]#  ps -ef|grep -i vnc

root 3889 1 0 Aug21 ? 00:34:34 /usr/bin/Xvnc :1 -desktop portaltest01:1 (root) -auth /root/.Xauthority -geometry 1024x768 -rfbwait 30000 -rfbauth /root/.vnc/passwd -rfbport 5901 -fp catalogue:/etc/X11/fontpath.d -pn
root 41606 1 0 Sep11 ? 00:29:42 /usr/bin/Xvnc :3 -desktop portaltest01:3 (root) -auth /root/.Xauthority -geometry 1024x768 -rfbwait 30000 -rfbauth /root/.vnc/passwd -rfbport 5903 -fp catalogue:/etc/X11/fontpath.d -pn
root 84297 1 0 Sep08 ? 00:29:47 /usr/bin/Xvnc :2 -desktop portaltest01:2 (root) -auth /root/.Xauthority -geometry 1024x768 -rfbwait 30000 -rfbauth /root/.vnc/passwd -rfbport 5902 -fp catalogue:/etc/X11/fontpath.d -pn

手动杀掉进程 84297,并验证

[root@xxxxx ~]# kill -9 84297

[root@xxxxx ~]#  ps -ef|grep -i vnc

 2、执行命令

通过vncserver kill :1,:2,这是最好的方法,推荐使用

[root@xxxxx ~]## vncserver  -kill :1

最新文章

  1. ASM,C数据类型
  2. mac 查看无线wifi的密码
  3. IAR更改代码字体&快速模板设置。——Arvin
  4. jquery 实现邮箱输入自动提示功能:(一)
  5. [原创] linux课堂-学习笔记-目录及概况
  6. Day11 - Mysql and ORM
  7. 编写css代码的方式
  8. HDU 3001 状压DP
  9. SpringBoot系列(一)RestTemplate
  10. Open Judge 2750 鸡兔同笼
  11. delphi 验证码识别(XE8源码)
  12. 关于jQuery中的选择器
  13. 【python小练】0000
  14. flutter 获取设备屏幕大小
  15. Python基础知识:字典
  16. [转载]基于 Token 的身份验证
  17. (转+整理)C#中使用GUID
  18. [转]C# RichTextBox不用滚动条
  19. MySQL单列索引和组合索引(联合索引)的区别详解
  20. 【Python】Python 猜年龄的游戏

热门文章

  1. 【剑指offer】逆序输出链表
  2. is not valid JSON: json: cannot unmarshal string into Go value of type map[string]interface | mongodb在windows和Linux导出出错
  3. Jmeter(十四)Logic Controller 之 If Controller
  4. [UE4]Vertical Box结合Horizontal Box创建出类似微信的经典手机界面
  5. [UE4]创建KillInfoPanel
  6. [电脑知识点]win10家庭版怎么显示桌面图标
  7. lock和Monitor(锁对象)
  8. elasticsearch 外网访问9200端口访问
  9. Ubuntu 16.04.3 LTS 部署 Cloud Torrent
  10. DQL完整语法及示例