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;