Não é possível obter o Tomcat 8 iniciado no CentOS 7

2

Estou tentando iniciar o Apache Tomcat em um servidor de nuvem do Google. É um servidor do CentOS 7 e tem o Apache Tomcat 8 nele. As instruções são link mas quando eu chegar :

sudo systemctl start tomcat

Eu recebo a mensagem:

Job for tomcat.service failed because the control process exited with error code. See "systemctl status tomcat.service" and "journalctl -xe" for details.

Para o status do systemctl, tomcat.service, recebo:

tomcat.service - Apache Tomcat Web Application Container
Loaded: loaded (/etc/systemd/system/tomcat.service; disabled; vendor preset: disabled)
Active: activating (auto-restart) (Result: exit-code) since Fri 2017-12-29 17:04:47 UTC; 639ms ago
Process: 3526 ExecStart=/opt/tomcat/bin/startup.sh (code=exited, status=203/EXEC)

Dec 29 17:04:47 jira-dev systemd[1]: Unit tomcat.service entered failed state.

Dec 29 17:04:47 jira-dev systemd [1]: tomcat.service falhou.

Para journalctl -xe, não consigo postar tudo porque "parece spam", mas fico:

-- The error number returned by this process is 13.
Dec 29 16:55:33 jira-dev systemd[1]: tomcat.service: control process exited, code=exited status=203
Dec 29 16:55:33 jira-dev systemd[1]: Failed to start Apache Tomcat Web Application Container.
-- Subject: Unit tomcat.service has failed
-- Defined-By: systemd

e

-- The result is failed.
Dec 29 16:55:33 jira-dev systemd[1]: Unit tomcat.service entered failed state.
Dec 29 16:55:33 jira-dev systemd[1]: tomcat.service failed.
Dec 29 16:55:44 jira-dev systemd[1]: tomcat.service holdoff time over, scheduling restart.
Dec 29 16:55:44 jira-dev systemd[1]: Starting Apache Tomcat Web Application Container...
-- Subject: Unit tomcat.service has begun start-up
-- Defined-By: systemd

e

-- Unit tomcat.service has begun starting up. Dec 29 16:55:44 jira-dev systemd[3317]: Failed at step EXEC spawning /opt/tomcat/bin/startup.sh: Permission denied
-- Subject: Process /opttomcat/bin/startup.sh could not be executed
-- Defined-By: systemd/

e

-- The error number returned by this process is 13.
Dec 29 16:55:44 jira-dev systemd[1]: tomcat.service: control process exited, code=exited status=203
Dec 29 16:55:44 jira-dev systemd[1]: Failed to start Apache Tomcat Web Application Container.
-- Subject: Unit tomcat.service has failed
-- Defined-By: systemd

O arquivo /etc/system/system/tomcat.service parece com o das instruções.

Eu também defini JAVA_HOME , apenas no caso.

Eu vejo o erro de permissão, mas eu dei a propriedade do usuário tomcat do diretório tomcat como por CentOS 7.1 - Instale o Tomcat 8 com o command cd /opt && sudo chown -R tomcat tomcat/

Eu também tentei comentar a linha Environment='CATALINA_OPTS=-Xms512M -Xmx1024M -server -XX:+UseParallelGC' do arquivo tomcat.service, embora não tenha ajudado, então eu não comentei.

Estou correndo como root.

    
por MSChase 29.12.2017 / 21:23

0 respostas