标签:cst ack htm 安装 name run ted div ble
1.安装包 yum install vnc* -y 2.创建password vncserver 3.创建參数文件 [root@single ~]# cp /lib/systemd/system/vncserver@.service /lib/systemd/system/vncserver@:1.service 4.改动參数文件 [root@single ~]# vi /lib/systemd/system/vncserver@\:1.service [Unit] Description=Remote desktop service (VNC) After=syslog.target network.target [Service] Type=forking # Clean any existing files in /tmp/.X11-unix environment ExecStartPre=/bin/sh -c ‘/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :‘ ExecStart=/sbin/runuser -l root -c "/usr/bin/vncserver %i" --------改动处1:以root用户为例,-l后改动为username PIDFile=/root/.vnc/%H%i.pid --------改动处2:.vnc前设置用户的家文件夹,root为/root ExecStop=/bin/sh -c ‘/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :‘ [Install] WantedBy=multi-user.target 5.启动 systemctl start vncserver@:1.service 6.假设想开机自启动,那么 systemctl enable vncserver@:1.service 注:假设你是第一次接触RHEL7,那么你此时肯定连接不上VNC。由于: service iptables stop根本就关不掉防火墙! 须要:systemctl stop firewalld
标签:cst ack htm 安装 name run ted div ble
原文地址:http://www.cnblogs.com/zhchoutai/p/7061896.html