日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時(shí)間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
CentOS安裝使用VNC進(jìn)行遠(yuǎn)程桌面登錄

以下介紹在centos 7下安裝vncserver并使用vnc-viewer進(jìn)行登錄(使用root權(quán)限):

公司主營業(yè)務(wù):成都網(wǎng)站設(shè)計(jì)、成都網(wǎng)站建設(shè)、移動(dòng)網(wǎng)站開發(fā)等業(yè)務(wù)。幫助企業(yè)客戶真正實(shí)現(xiàn)互聯(lián)網(wǎng)宣傳,提高企業(yè)的競爭能力。創(chuàng)新互聯(lián)是一支青春激揚(yáng)、勤奮敬業(yè)、活力青春激揚(yáng)、勤奮敬業(yè)、活力澎湃、和諧高效的團(tuán)隊(duì)。公司秉承以“開放、自由、嚴(yán)謹(jǐn)、自律”為核心的企業(yè)文化,感謝他們對我們的高要求,感謝他們從不同領(lǐng)域給我們帶來的挑戰(zhàn),讓我們激情的團(tuán)隊(duì)有機(jī)會用頭腦與智慧不斷的給客戶帶來驚喜。創(chuàng)新互聯(lián)推出新鄉(xiāng)免費(fèi)做網(wǎng)站回饋大家。

1、運(yùn)行命令yum install tigervnc-server安裝vncserver;

2、運(yùn)行命令yum install vnc安裝vnc;//感覺不安裝也可以,安裝一下也很快,不要在意這些細(xì)節(jié)

3、運(yùn)行命令yum groupinstall "X Window System"安裝X-Window;//之前安裝發(fā)現(xiàn)經(jīng)常無法啟動(dòng)vncserver,后面通過網(wǎng)上查資料介紹可以安裝X-Window解決這個(gè) 問題

4、安裝中文字符以解決界面中文亂碼的問題:yum install dejavu-lgc-sans-fonts、yum groupinstall "Fonts" -y

5、禁用防火墻,如果已經(jīng)禁用防火墻可以跳過這一步:systemctl stop firewalld.service、systemctl disable firewalld.service

6、配置vncserver:
拷貝創(chuàng)建一個(gè)新的配置文件,以開啟1號窗口為例,如果需要開啟多個(gè)則創(chuàng)建多個(gè)配置文件即可:
[root@localhost ~]# cp /lib/systemd/system/vncserver@.service /lib/systemd/system/vncserver@:1.service
修改配置文件內(nèi)容
[root@localhost ~]# vi /lib/systemd/system/vncserver@:1.service
# The vncserver service unit file
#
# Quick HowTo:
# 1. Copy this file to /etc/systemd/system/vncserver@.service
# 2. Replace with the actual user name and edit vncserver
# parameters appropriately
# ("User=" and "/home//.vnc/%H%i.pid")
# 3. Run `systemctl daemon-reload`
# 4. Run `systemctl enable vncserver@:.service`
#
# DO NOT RUN THIS SERVICE if your local area network is
# untrusted! For a secure way of using VNC, you should
# limit connections to the local host and then tunnel from
# the machine you want to view VNC on (host A) to the machine
# whose VNC output you want to view (host B)
#
# [user@hostA ~]$ ssh -v -C -L 590N:localhost:590M hostB
#
# this will open a connection on port 590N of your hostA to hostB's port 590M
# (in fact, it ssh-connects to hostB and then connects to localhost (on hostB).
# See the ssh man page for details on port forwarding)
#
# You can then point a VNC client on hostA at vncdisplay N of localhost and with
# the help of ssh, you end up seeing what hostB makes available on port 590M
#
# Use "-nolisten tcp" to prevent X connections to your VNC server via TCP.
#
# 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.

 

[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target

[Service]
Type=forking
User=root

# Clean any existing files in /tmp/.X11-unix environment
ExecStartPre=-/usr/bin/vncserver -kill %i
ExecStart=/usr/bin/vncserver %i
PIDFile=/root/.vnc/%H%i.pid
ExecStop=-/usr/bin/vncserver -kill %i

[Install]
WantedBy=multi-user.target

7、運(yùn)行命令systemctl daemon-reload更新systemctl;

8、運(yùn)行命令vncpasswd root設(shè)置vncserver的密碼;

9、運(yùn)行命令systemctl start vncserver@:1.service(可以運(yùn)行systemctl enable vncserver@:1.service命令設(shè)置為默認(rèn)啟動(dòng)服務(wù));//啟動(dòng)不了則重啟一下系統(tǒng)或則查看啟動(dòng)日志

10、重啟系統(tǒng)后使用VNC-Viewer連接:192.168.10.100:1,輸入設(shè)置的密碼即可登錄。


網(wǎng)頁名稱:CentOS安裝使用VNC進(jìn)行遠(yuǎn)程桌面登錄
網(wǎng)站地址:http://www.5511xx.com/article/cdehjjh.html