在启动了在centos上运行的Artifactory / Tomcat之后获得404

时间:2015-09-04 18:15:29

标签: tomcat centos artifactory

我正在尝试让Artifactory在centos服务器上运行。这就是我所做的:

创建了一个名为artifactory

的新用户

切换到该用户

# Checks if the rewrite mod is on. <IfModule mod_rewrite.c> RewriteEngine On # Force everything through the index.php file RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] </IfModule>

然后按照artifactorys docs

的说明进行操作

wget https://bintray.com/artifact/download/jfrog/artifactory-rpms/jfrog-artifactory-oss-4.0.2.rpm

rpm -ivh jfrog-artifactory-oss-4.0.2.rpm

service artifactory start

根据文档,我得到了一个pid。一切都正常。然后我导航到网页,但我得到了404:

  

HTTP状态404 - / artifactory

     

输入状态报告

     

消息/神器

     

说明请求的资源不可用。

     

Apache Tomcat / 8.0.22

我想检查日志,这些日志显然位于$ ARTIFACTORY_HOME / logs / artifactory.log但找不到dir。执行echo $ ARTIFACTORY_HOME不输出任何内容。我在artifactory.log上做了一个find命令,但没有结果。超级困惑。任何提示将不胜感激。

更新

根据JBaruch的提示,以下是一些日志更新。

我导航到/ var / opt / jfrog / artifactory / tomcat / logs

ls显示service artifactory check

这是来自catalina.out和localhost.2015-09-04.log的输出:

catalina.out中

catalina.2015-09-04.log  catalina.out  host-manager.2015-09-04.log  localhost.2015-09-04.log  manager.2015-09-04.log

对于localhost.2015-09-04.log

Sep 04, 2015 1:26:30 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-8081"]
Sep 04, 2015 1:26:30 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
Sep 04, 2015 1:26:30 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-nio-8019"]
Sep 04, 2015 1:26:30 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
Sep 04, 2015 1:26:30 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Sep 04, 2015 1:26:30 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/8.0.22
Sep 04, 2015 1:26:30 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor /opt/jfrog/artifactory/tomcat/conf/Catalina/localhost/artifactory.xml
Sep 04, 2015 1:26:32 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: One or more listeners failed to start. Full details will be found in the appropriate container log file
Sep 04, 2015 1:26:32 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/artifactory] startup failed due to previous errors
Sep 04, 2015 1:26:32 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc
WARNING: The web application [artifactory] registered the JDBC driver [org.apache.derby.jdbc.AutoloadedDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
Sep 04, 2015 1:26:32 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deployment of configuration descriptor /opt/jfrog/artifactory/tomcat/conf/Catalina/localhost/artifactory.xml has finished in 2,004 ms
Sep 04, 2015 1:26:32 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /opt/jfrog/artifactory/tomcat/webapps/ROOT
Sep 04, 2015 1:26:32 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /opt/jfrog/artifactory/tomcat/webapps/ROOT has finished in 57 ms
Sep 04, 2015 1:26:32 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio-8081"]
Sep 04, 2015 1:26:32 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-nio-8019"]

1 个答案:

答案 0 :(得分:4)

Artifactory 4支持Java版本8及更高版本。