tags: Mistake java tomcat linux
CentOS 7 Configures Tomcat Self-Start Times The following error
Job for tomcat.service failed because the control process exited with error code. See "systemctl status tomcat.service" and "journalctl -xe" for details.

usesystemctl status tomcat.serviceCommand view error message
The error message is lacking the Java_Home or JRE_HOME environment variable, even if the / etc / profile is configured, Tomcat is not loaded, then find a file called setclasspath.sh in Tomcat's BIN.

The approximate process launched by Tomcat is startup.sh-> catalina.sh-> setclasspath.sh, while the role of setClassPath.sh is to load environment variables.
It can be seen that the first sentence executed by the script is to load the environment variable, so Java_Home is needed to be in front.
Re-execute Systemctl Start Tomcat can run successfully
Centos7 failed to start postfix Try to solve Modify the settings of /etc/postfix/main.cf...
systemctl status jenkins.service I see the reason because: Solution: Solution: 1> View current Java environment variables echo $JAVA_HOME 2> Copy the Java environment variable address, edit the ...
Virtual machine networking issues Restart the network card and report the following error: Job for network.service failed because the control process exited with error code. See “systemctl statu...
Record a Jenkins startup error Jenkins has been booting up all the time, and the boot access failed today, so check it out and try to restart: Reported the above error, prompt to use the command:syste...
Note this: could not create server tcp listenging socket 127.0.0.1:6379: bind: address already in use [root@ebs-65684 bin]# ./redis-cli 127.0.0.1:6379> shutdown not connected> exit Jul 27 22:37:...
Report error Solve the problem This way is OK....
Installing the installation of Docker Docker daemon in Ubuntu16.04 can't afford it, and report the following error: Job for docker.service failed because the control process exited with error code. Se...
error One step one-step detection error At this time, I found that the problem of the configuration file is not set. Re-modify the configuration file At this time, I found it. then Enough...
Nginx abnormal Job for nginx.service failed because the control process exited with error code. See “systemctl status nginx.service” and “journalctl -xe” for details. Nginx Nor...
illustrate At the same time, HTTPD and Nginx are installed, the default port is 80, conflict error. Wrong solve View the port is occupied 1. Modify one of the default ports Nginx Httpd 2, uninstall on...