centos 7 安裝和配置vncserver

2021-06-23 03:16:50 字數 1147 閱讀 8012

這幾天公司培訓,有個前輩推薦試用下centos7,正好培訓之餘有點空閒時間和伺服器一台。就開始搗鼓的伺服器。開始在伺服器上安裝了centos 7.考慮到遠端桌面控制的需求就準備安裝vncserver。

安裝步驟:

關閉防火牆,centos的防火牆是firewalld,關閉防火牆的命令systemctl stop firewalld.service 。關閉enforce,setenforce 0。

1.安裝tigervncserver,yum install tigervnc-server tigervnc-server-module

2.拷貝配置檔案cp /lib/systemd/system/[email protected] /etc/systemd/system/vncserver@:1.service

3.進入到配置檔案目錄cd /etc/systemd/system

4.修改配置檔案vim vncserver@:1.service

配置檔案內容為:

[unit]

description=remote desktop service (vnc)

after=syslog.target network.target

[service]

type=forking

user=root

execstart=/usr/bin/vncserver :1 -geometry 1280x1024 -depth 16 -securitytypes=none -fp /usr/share/x11/fonts/misc

execstop=/usr/bin/vncserver -kill :1

[install]

wantedby=multi-user.target

5.  啟用配置檔案 systemctl enable vncserver@:1.service

6. 設定登陸密碼:vncpasswd

7. 啟動vncserver:systemctl start vncserver@:1.service

8 . 啟動狀態檢視:systemctl status vncserver@:1.service

9.檢視埠狀態:netstat -lnt | grep 590*

10.檢視報錯資訊:grep vnc /var/log/messages

Centos7安裝配置vnc

前提條件,已經安裝了乙個圖形介面 yum install tigervnc server y 安裝vnc服務 systemctl status vncserver service 檢查服務狀態 vncserver service remote desktop service vnc loaded l...

CentOS 7 安裝配置 VNC 詳解

from vnc是什麼 virtual network computing vnc允許linux系統可以類似實現像windows中的遠端桌面訪問那樣訪問linux桌面。本文配置是在centos 7 hp伺服器環境下執行。首先試試伺服器裝了vnc沒 root linuxidc rpm q tigerv...

CentOS 7 安裝配置 VNC 詳解

vnc是什麼 virtual network computing vnc允許linux系統可以類似實現像windows中的遠端桌面訪問那樣訪問linux桌面。本文配置是在centos 7 hp伺服器環境下執行。首先試試伺服器裝了vnc沒 root linuxidc rpm q tigervnc ti...