2017-02-13 11 views
0

私はSolr PHPのサービスを開始しようとしています。 私はbin/solr start -f を実行していますが、私はこの警告を取得しています: Solrを実行するPHP cant startサービス

Starting Solr as the root user is a security risk and not considered best practice. Exiting.

Please consult the Reference Guide. To override this check, start with argument '-force'

ので、私は bin/solr -force start -f-forceパーツを追加しました。

ERROR: start is not supported by this script

私はちょうどサービスを開始カント: は、それでも私はこのエラーを取得しています。

答えて

0

あなたはその後、(たとえばchown -R ghost /opt/solr用)あなたの関連する値を持つ変数を置き換える

実行chown -R <username> <solrDir>(これはルートではありません)のSolrを開始するユーザーにSolrのディレクトリのパーミッションを設定する必要がありますそのユーザーとしてsolrを起動します。

関連する問題