centos7 vnc not start systemctl

1.centos7 vnc not start systemctl

  • Given as follows: Failed to start Remote desktop service (VNC)

2. Solution

  • Service Script Error name
  • Normal service script name
    • vncserver@:1.service
      • Note 1 in front of the colon: 1 as a whole is needed port parameters passed to the vncserver @: 1.service script, can not be purely digital

      • % I will be: 1 This port parameters replaced, so here is easily overlooked, resulting in service can not be used to start systemctl

[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=/usr/sbin/runuser -l appadmin -c "/usr/bin/vncserver %i -geometry 1280x1024"                                     
ExecStart=/usr/sbin/runuser -l appadmin -c "/usr/bin/vncserver %i"                                                          
PIDFile=/home/appadmin/.vnc/%H%i.pid                                                                                        
ExecStop=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'

3. Reference Links

  • https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-remote-access-for-the-gnome-desktop-on-centos-7

Intelligent Recommendation

Centos7 systemctl start docker failed start-limit solution

Centos7 systemctl start docker failed Causes and solutions the reason: Solution: Causes and solutions the reason: Some of the arguments are that they have configured domestic mirrors, such as the Aker...

Solution when systemctl start docker fails to start in Centos7

After installing docker, start docker with the command, but the startup fails Bug recurrence: Use systemctl status docker.service to view the log: The cause of the problem: Here is that SELinux in the...

CentOS in systemctl usage 7.2.1511 (alternative service and chkconfig) - Adding VNC Server from start

CentOS in systemctl Usage (alternative service and the chkconfig) [Color = darkred] [b] 1 Configuration [/ b] [/ color] A copy of the document, and renamed vncserver.service [code="java"]# c...

Failed to start firewalld.service: Unit is masked when Centos7 systemctl starts firewalld.

In other words, this command is locked, just execute the following command: The following prompt can appear If you want to lock him, you can execute the following command:...

CentOS7 from view, start, stop talking about the service systemctl

CentOS7 from view, start, stop talking about the service systemctl Run "systemctl status service name .service" can view the running status of the service, which .service after the service n...

More Recommendation

CentOS7 increase tomcat start, stop, configure using systemctl

1, centos7 use systemctl replace the service command Reference: redhat documentation: https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/sect-Man...

Solve linux (centos7) error when reinstalling mysql systemctl start mysqld.service

When reinstalling mysql, run Report an error. View mysql service status To no avail Then thought of viewing the log: cat /var/log/mysqld.log Found that port 3306 is occupied Then kill the process Just...

centos7 set nginx to start automatically (systemctl and init.d two solutions)

Two options are provided here, the second one is recommended Option One (init.d) 1. Enter /etc/init.d/ 2. Create nginx file 3.vim edit nginx, pay attention to replace the nginx path of your own system...

CentOS7 1611 runs Docker and uses systemctl start httpd.service to resolve errors

CentOS7 1611 runs Docker and uses systemctl start httpd.service to report an error as shown below Error message: Failed to get D-BUS connection: Operation no permitted Adding the --privileged option a...

[MySQL] Centos7 uses SystemctL tool management to start and stop mysql

CENTOS7 previous version, you can use this /etc/init.d/mysqld start to launch MySQL But after CentOS7, what do you do with Systemctl Start MySQLD.SERVICE? Drain directly below: Note 1. --defaults-file...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top