在linux中使用tomcat启动时,Artifactory服务启动失败

时间:2017-10-07 09:42:42

标签: tomcat artifactory

我已经安装了artifactory并尝试将其安装为服务。我已设法使用root在ARTIFACTORY_HOME / bin文件夹下执行installService.sh脚本。我在安装时没有任何问题。但是在发布服务安装后,我在尝试发出sudo systemctl start artifactory.service时看到以下错误。

[root@localhost ~]# systemctl start artifactory.service
Job for artifactory.service failed because the control process exited with error code.
See "systemctl  status artifactory.service" and "journalctl  -xe" for details.
[root@localhost ~]# systemctl  status artifactory.service
● artifactory.service - Setup Systemd script for Artifactory in Tomcat Servlet Engine
   Loaded: loaded (/usr/lib/systemd/system/artifactory.service; enabled; vendor preset: disabled)
   Active: activating (auto-restart) (Result: exit-code) since Sat 2017-10-07 15:07:29 IST; 3s ago
  Process: 3448 ExecStart=/home/ciadmin/devops/utils/artifactory-oss-5.5.1/bin/artifactoryManage.sh start (code=exited, status=1/FAILURE)

Oct 07 15:07:29 localhost.localdomain artifactoryManage.sh[3448]: sh: /home/ciadmin/devops/utils/artifactory-oss-5.5.1/tomcat/bin/startup.sh: Permission denied
Oct 07 15:07:29 localhost.localdomain artifactoryManage.sh[3448]: ** ERROR: Artifactory Tomcat server did not start. Please check the logs
Oct 07 15:07:29 localhost.localdomain systemd[1]: artifactory.service: Control process exited, code=exited status=1
Oct 07 15:07:29 localhost.localdomain systemd[1]: Failed to start Setup Systemd script for Artifactory in Tomcat Servlet Engine.
Oct 07 15:07:29 localhost.localdomain systemd[1]: artifactory.service: Unit entered failed state.
Oct 07 15:07:29 localhost.localdomain systemd[1]: artifactory.service: Failed with result 'exit-code'.

这是tomcat设置的欺骗性错误吗?我没有线索。所有文件夹都具有正确的权限,并且tomcat脚本也设置为可执行权限。

进程:7831 ExecStart = / home / ciadmin / devops / utils / artifactory-oss-5.5.1 / bin / artifactoryManage.sh start(code = exited,status = 1 / FAILURE) < / p>

脚本tomcat startup.sh也是可执行的

[root@localhost ~]# ls -l /home/ciadmin/devops/utils/artifactory-oss-5.5.1/tomcat/bin/startup.sh
-rwxr-xr-x. 1 artifactory artifactory 1904 Jan 19  2017 /home/ciadmin/devops/utils/artifactory-oss-5.5.1/tomcat/bin/startup.sh

我修改了带有artifactory限制的/etc/secutiry/limit.conf。 神器软nproc 65535 神器硬nproc 65535 神器软件nofile 65535 artifactory hard nofile 65535

不确定发生了什么。

0 个答案:

没有答案