在linux server上执行./install -r b2c_acc是不是不能用root user去做?
遇到警告消息:
Error creating bean with name ‘defaultSolrServerService’ defined in class path resource [global-solrserver-spring.xml]: Invocation of init method failed; nested exception is de.hybris.platform.solrserver.SolrServerException: Error while executing Solr start command for instance [name: default, hostname: localhost, port: 8983] 10:46 [java] [mWARNING: 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] [1;31mERROR [main] [DefaultSolrServerService] de.hybris.platform.solrserver.SolrServerException: Error while executing Solr start command for instance [name: default, hostname: localhost, port: 8983]
关于 Starting Solr as the root user is a security risk and not considered best practice 的警告消息,我们可以从下面这几个方面去理解:
基于上述原因,以root用户身份启动Solr搜索引擎被认为是一种不安全的做法。相反,建议按照以下最佳实践来启动Solr:
总之,遵循最佳实践并以适当的权限运行Solr搜索引擎可以降低系统面临的安全风险,并提供更好的安全性、可追溯性和可管理性。以root用户身份启动Solr被视为不安全且不推荐的做法,因此建议采取适当的安全措施来保护Solr实例和相关数据。