yum install tigervnc-server
cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:1.service
ExecStart=/usr/bin/vncserver_wrapper root %i
PIDFile=/home/root/.vnc/%H%i.pid
vi /etc/systemd/system/vncserver@\:1.service
# systemctl daemon-reload
# systemctl start vncserver@:1
# systemctl status vncserver@:1
# systemctl enable vncserver@:1
# firewall-cmd --add-port=5901/tcp
# firewall-cmd --add-port=5901/tcp --permanent
vncserver
--Add new port
# firewall-cmd --add-port=5902/tcp
# firewall-cmd --add-port=5902/tcp --permanent
vncserver
---When Not work
rm -rvf .X11-unix
No comments:
Post a Comment