Thank you. As I suspected, this is something else. It prompts me the same error here: [root@pocnnr1n1 solr]# bin/solr start -force -bash: bin/solr: Permission denied [root@pocnnr1n1 solr]#
It is not a good practice to use root directly, however, using root should not have permission error. This is odd. *------------------------------------------------* *Sincerely yours,* *Raymond* On Tue, Sep 17, 2019 at 12:49 AM Paras Lehana <paras.leh...@indiamart.com> wrote: > Hi Raymond, > > It's not recommended to run solr as root (security reasons > <https://lucene.apache.org/solr/guide/8_1/taking-solr-to-production.html#create-the-solr-user>). > Nevertheless, in order to answer your question, try this command: > > *sudo bin/solr start -force* > > > From Solr Control Script Reference > <https://lucene.apache.org/solr/guide/8_1/solr-control-script-reference.html#start-parameters> > : > > If attempting to start Solr as the root user, the script will exit with a >> warning that running Solr as "root" can cause problems. It is possible to >> override this warning with the -force parameter. > > > PS: I suggest you to go through *Service Installation Script *in Taking > Solr to Production > <https://lucene.apache.org/solr/guide/8_1/taking-solr-to-production.html> that > describes the ideal Solr setup. A must read! > > Hope I helped. > > > On Tue, 17 Sep 2019 at 08:37, Raymond Xie <xie3208...@gmail.com> wrote: > >> [root@pocnnr1n1 solr-8.2.0]# ll >> total 88 >> -rw-r--r-- 1 root root 4023 Jul 19 09:09 README.md >> -rw-r--r-- 1 root root 32153 Jul 19 09:09 build.xml >> -rw-r--r-- 1 root root 27717 Jul 19 09:09 NOTICE.txt >> -rw-r--r-- 1 root root 12646 Jul 19 09:09 LICENSE.txt >> drwxr-xr-x 10 root root 174 Sep 16 21:13 dev-tools >> drwxr-xr-x 30 root root 4096 Sep 16 21:13 lucene >> drwxr-xr-x 16 root root 4096 Sep 16 21:13 solr >> >> [root@pocnnr1n1 solr]# bin/solr start >> -bash: bin/solr: Permission denied >> >> Can anyone please help me to sort it out? >> >> Thank you. Regards. >> *------------------------------------------------* >> *Sincerely yours,* >> >> >> *Raymond* >> > > > -- > -- > Regards, > > *Paras Lehana* [65871] > Software Programmer, Auto-Suggest, > IndiaMART Intermesh Ltd. > > 8th Floor, Tower A, Advant-Navis Business Park, Sector 142, > Noida, UP, IN - 201303 > > Mob.: +91-9560911996 > Work: 01203916600 | Extn: *8173* > > IMPORTANT: > NEVER share your IndiaMART OTP/ Password with anyone. >