On 9/16/2019 9:06 PM, Raymond Xie wrote:
[root@pocnnr1n1 solr]# bin/solr start
-bash: bin/solr: Permission denied
The first thing I'd check for this is whether the bin/solr script has
execute permission. A lack of execute permissions can cause this problem.
The first line of that script is this:
#!/usr/bin/env bash
Which means that /usr/bin/env must exist and also be executable, and
that bash must be on the PATH that ends up being used by the env
program, and bash must also be executable. I think that problems with
this *MIGHT* also cause the permission error.
You could change the shebang to point directly at bash, something like this:
#!/bin/bash
Thanks,
Shawn