linux系统安装金蝶_linux 操作系统安装配置vnc
在運維的工作過程中,有時候需要我們用VNC去連接Linux服務器,比如:財務裝個金蝶的財務軟件,而且還要求放在機房。這個變態的軟件在啟動的時候,需要我們去點擊它的圖形界面去啟動它。這時,VNC就派上用場了。
一.配置文件
# 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
# .
# 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"
二.啟動
[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.查看進程:
[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
總結
以上是生活随笔為你收集整理的linux系统安装金蝶_linux 操作系统安装配置vnc的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: java robot 控制 不用用户 界
- 下一篇: linux写聊天程序,轻易实现基于lin