您好,登錄后才能下訂單哦!
樓主不知道怎么回事,突然就邊不上VNC了,我就打算重新啟動服務,發(fā)現服務啟不來,我用
journalctl -xe命令出現下面的東西:
Apr 24 21:30:24 zhouziqi runuser[23390]: pam_unix(runuser-l:session): session opened for user root by (uid=0)
Apr 24 21:30:24 zhouziqi runuser[23390]: Warning: zhouziqi:1 is taken because of /tmp/.X11-unix/X1
Apr 24 21:30:24 zhouziqi runuser[23390]: Remove this file if there is no X server zhouziqi:1
Apr 24 21:30:24 zhouziqi runuser[23390]: A VNC server is already running as :1
Apr 24 21:30:24 zhouziqi runuser[23390]: pam_unix(runuser-l:session): session closed for user root
Apr 24 21:30:24 zhouziqi systemd[1]: vncserver@:1.service: control process exited, code=exited status=2
Apr 24 21:30:24 zhouziqi systemd[1]: Failed to start Remote desktop service (VNC).
-- Subject: Unit vncserver@:1.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit vncserver@:1.service has failed.
--
-- The result is failed.
Apr 24 21:30:24 zhouziqi systemd[1]: Unit vncserver@:1.service entered failed state.
Apr 24 21:30:24 zhouziqi systemd[1]: vncserver@:1.service failed.
Apr 24 21:30:24 zhouziqi polkitd[832]: Unregistered Authentication Agent for unix-process:23380:8874254 (system bus n
然后我知道可能是
于是我就把這個文件刪除,再重啟 發(fā)現就好啦
[root@zhouziqi tmp]# rm -rvf .X11-unix
removed ‘.X11-unix/X0’
removed ‘.X11-unix/X1’
removed directory: ‘.X11-unix’
[root@zhouziqi tmp]# systemctl restart vncserver@:1.service
[root@zhouziqi tmp]#
樓主想看看這個文件夾是干嘛的,我就進去看看,原來這個文件夾是里面是一個文件,X1,估計這個文件是你連接的時候產生的,如果你VNC不正常退出的話,這個文件就沒有被刪除,所以就會出現
A VNC server is already running as :1,這時候你只要手動刪除那個文件夾里面的文件就可以重啟服務啦
免責聲明:本站發(fā)布的內容(圖片、視頻和文字)以原創(chuàng)、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。