首页 > 代码库 > cent 7 安装VNC

cent 7 安装VNC

1.

yum install tigervnc-server;

  

2.cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:1.service

cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:1.service

 

3.

vim /etc/systemd/system/vncserver@:1.service 

vim /etc/systemd/system/vncserver@:1.service

 

4.

修改前:

技术分享 

修改后:

技术分享


5.systemctl daemon-reload

systemctl daemon-reload

 

6.vncpasswd 

vncpasswd

技术分享

 

7.

systemctl enable vncserver@:1.service;

vncserver;

systemctl enable vncserver@:1.service;

vncserver;

  

8

netstat -ntlp;

  

 

cent 7 安装VNC