---
title: "Resetting VNC server after Unable to connect to host: Connection refused ( 10061"
author: "bardo"
date: "2010-07-27T15:06:22Z"
tags: []
categories: ["操作系统"]
slug: "resetting-vnc-server-after-unable-to-connect-to-host-connection-refused-10061"
draft: false
lastmod: "2010-07-27T15:07:05Z"
id: 722325
url: "https://bardo.iteye.com/blog/722325"
---

Resetting VNC server after Unable to connect to host: Connection refused ( 10061) message

1)If your VNC session is on display:X(say, :1), then log into the linux  
machine from another terminal (you may use a simple SSH login for this) onto  
the same user that started the session, and type

vncserver -kill :X 

2\) Then you may restart the session again with vncserver :

service vncserver stop

service vncserver start

3\) You will get the error infomation. You must delete the files which gave by the error infomation.

then restart the vncserver again:

service vncserver stop

service vncserver start

all is OK!