使用root用户安装Hybris遇到的错误

使用root user安装Hybris遇到如下错误消息:
LJava.
at de.hybris.platform. core.Abstractlenant. notitylenantListenersbetoreShutdown(Abstractl enant. Java: 128
java] at de. hybris.platform.core. AbstractTenant. doShutdown(AbstractTenant. java: 950)
java at de.hybris.platform.core.AbstractTenant. doShutDown(AbstractTenant. java:911)
java] at de. hybris.platform. core.Registry.destroy(Registry.java:331)
java] at de. hybris.platform.util.RedeployUtilities.shutdown(RedeployUtilities.java:75)
java at de.hybris.platform.util.RedeployUtilities$1.internalRun(RedeployUtilities.java:39)
java] at de.hybris.platform.core. threadregistry.RegistrableThread.run(RegistrableThread.java:134)
java] WARNING: Starting solr as the root user is a security risk and not considered best practice. Exiting
java] Please consult the Reference Guide. To override this check, start with argument '-force
java] ERROR [main] [DefaultSolrserverService] de. hybris.platform. solrserver. SolrServerException: Error while exuting Solr start command for instance [name: default, hostname: localhost, port: 8983]
java] WARN [main] [CloseAwareApplicationContext] Exception encountered during context initialization- cancellg refresh attempt: org.springframework.beans. factory.BeanCreationException: Error creating bean with name ‘defaultsaServerService’ defined in class path resource [global-solrserver-spring.xml]: Invocation of init method failed; nesteexception is de.hybris.platform.solrserver.SolrserverException: Error while executing Solr start command for instal[name: default, hostname: localhost, port: 8983]
java] WARN [main] [CloseAwareApplicationContext] Exception encountered during context initialization- cancellg refresh attempt: org.springframework.beans. factory.BeanCreationException: Error creating bean with name ‘defaultsaServerService’ defined in class path resource [global-solrserver-spring.xml]: Invocation of init method failed; nesexception is de. hybris.platform. solrserver. SolrServerException: Error while executing Solr start command for instar[name: default, hostname: localhost, port: 8983]
java] ERROR [main] [HybrisContextFactory] Error initializing global application context!

使用root用户安装Hybris遇到的错误

关键就在这句:Starting solr as the root user is a security risk and not considered best practice. Exiting

换成普通用户安装问题解决。