标签:get exe details exec 设置 code 模板 top 服务
yum -y install tigervnc tigervnc-server tigervnc-server-module
cp /lib/systemd/system/vncserver@.service /lib/systemd/system/vncserver@:1.service
[root@kvm01 ~]# cat /lib/systemd/system/vncserver\@\:1.service | grep -v ^# | grep -v ^$ [Unit] Description=Remote desktop service (VNC) After=syslog.target network.target [Service] Type=forking ExecStartPre=/bin/sh -c ‘/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :‘ ExecStart=/usr/sbin/runuser -l root -c "/usr/bin/vncserver %i" PIDFile=/root/.vnc/%H%i.pid ExecStop=/bin/sh -c ‘/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :‘ [Install] WantedBy=multi-user.target
vncpasswd
输入两次密码,完成密码设置
systemctl daemon-reload
systemctl start vncserver@:1.service && systemctl enable vncserver@:1.service
注:若系统无法正常关机,则再次启动,此服务无法启动,解决办法参照步骤七
1.报错:Job for vncserver@:1.service failed because the control process exited with error code. See "systemctl status vncserver@:1.service" and "journalctl -xe" for details.
处理方法:
rm -rf /tmp/.X11-unix/*
标签:get exe details exec 设置 code 模板 top 服务
原文地址:http://www.cnblogs.com/BinBinStory/p/7253309.html