日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 运维知识 > linux >内容正文

linux

linux 操作系统安装配置vnc

發(fā)布時(shí)間:2025/3/19 linux 15 豆豆
生活随笔 收集整理的這篇文章主要介紹了 linux 操作系统安装配置vnc 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

? ? ? ? ? ? ? ? ?在運(yùn)維的工作過程中,有時(shí)候需要我們用VNC去連接Linux服務(wù)器,比如:財(cái)務(wù)裝個(gè)金蝶的財(cái)務(wù)軟件,而且還要求放在機(jī)房。這個(gè)變態(tài)的軟件在啟動(dòng)的時(shí)候,需要我們?nèi)c(diǎn)擊它的圖形界面去啟動(dòng)它。這時(shí),VNC就派上用場(chǎng)了。


一.配置文件

# The VNCSERVERS variable is a list of display:user pairs.

#

# Uncomment the lines below to start a VNC server on display :2

# as my 'myusername' (adjust this to your own). ?You will also

# need to set a VNC password; run 'man vncpasswd' to see how

# to do that. ?

#

# DO NOT RUN THIS SERVICE if your local area network is

# untrusted! ?For a secure way of using VNC, see

# <URL:http://www.uk.research.att.com/archive/vnc/sshvnc.html>.


# Use "-nolisten tcp" to prevent X connections to your VNC server via TCP.


# Use "-nohttpd" to prevent web-based VNC clients connecting.


# Use "-localhost" to prevent remote VNC clients connecting except when

# doing so through a secure tunnel. ?See the "-via" option in the

# `man vncviewer' manual page.


# VNCSERVERS="2:myusername"

# VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -nohttpd -localhost"

VNCSERVERS="1:root"

VNCSERVERARGS[1]="-geometry 800x600"


二.啟動(dòng)

[root@demo ~]# /etc/init.d/vncserver restart?

Shutting down VNC server: 1:root ? ? ? ? ? ? ? ? ? ? ? ? ? [ ?OK ?]

Starting VNC server: 1:root?

New 'demo:1 (root)' desktop is demo:1


Starting applications specified in /root/.vnc/xstartup

Log file is /root/.vnc/demo:1.log


? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?[ ?OK ?]

2.查看進(jìn)程:

[root@demo ~]# netstat -ntupl|grep vnc

tcp ? ? ? ?0 ? ? ?0 0.0.0.0:5801 ? ? ? ? ? ? ? ?0.0.0.0:* ? ? ? ? ? ? ? ? ? LISTEN ? ? ?25350/Xvnc ? ? ? ? ?

tcp ? ? ? ?0 ? ? ?0 0.0.0.0:5802 ? ? ? ? ? ? ? ?0.0.0.0:* ? ? ? ? ? ? ? ? ? LISTEN ? ? ?24658/Xvnc ? ? ? ? ?

tcp ? ? ? ?0 ? ? ?0 0.0.0.0:5901 ? ? ? ? ? ? ? ?0.0.0.0:* ? ? ? ? ? ? ? ? ? LISTEN ? ? ?25350/Xvnc ? ? ? ? ?

tcp ? ? ? ?0 ? ? ?0 0.0.0.0:5902 ? ? ? ? ? ? ? ?0.0.0.0:* ? ? ? ? ? ? ? ? ? LISTEN ? ? ?24658/Xvnc ? ? ? ? ?

tcp ? ? ? ?0 ? ? ?0 0.0.0.0:6001 ? ? ? ? ? ? ? ?0.0.0.0:* ? ? ? ? ? ? ? ? ? LISTEN ? ? ?25350/Xvnc ? ? ? ? ?

tcp ? ? ? ?0 ? ? ?0 0.0.0.0:6002 ? ? ? ? ? ? ? ?0.0.0.0:* ? ? ? ? ? ? ? ? ? LISTEN ? ? ?24658/Xvnc ? ? ? ? ?

tcp ? ? ? ?0 ? ? ?0 :::6001 ? ? ? ? ? ? ? ? ? ? :::* ? ? ? ? ? ? ? ? ? ? ? ?LISTEN ? ? ?25350/Xvnc ? ? ? ? ?

tcp ? ? ? ?0 ? ? ?0 :::6002 ? ? ? ? ? ? ? ? ? ? :::* ? ? ? ? ? ? ? ? ? ? ? ?LISTEN ? ? ?24658/Xvnc ? ?


轉(zhuǎn)載于:https://blog.51cto.com/8065082/1570951

總結(jié)

以上是生活随笔為你收集整理的linux 操作系统安装配置vnc的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。