Hi community i have been trying to use cerbos for ...
# community
p
Hi community i have been trying to use cerbos for authorization purpose in python.. but i'm stuck in between .. and i'm not able make cerbos localhost connection..! "Failed to connect to remote host" i have installed the binaries for the respective BUNDLE using the command need some help in installing the cerbos in linux curl -L -o cerbos.tar.gz "https://github.com/cerbos/cerbos/releases/download/v0.31.0/BUNDLE" tar xvf cerbos.tar.gz chmod +x cerbos can anyone help to resolve this issue.!
f
Are you replacing
<BUNDLE>
with a correct version?
For example:
Copy code
curl -L -o cerbos.tar.gz "<https://github.com/cerbos/cerbos/releases/download/v0.31.0/cerbos_0.31.0_Linux_x86_64.tar.gz>"
tar xvf cerbos.tar.gz
chmod +x cerbos
p
yes! and also downloaded and extracted the linux pakage for cerbos cerbos_0.31.0_Linux_x86_64.tar.gz but not need to know how further steps to run cerbos in local
f
Just type
cerbos
in your terminal, hit enter and you should be good to go.
p
but getting "~$ cerbos cerbos: command not found"
f
Run this
./cerbos server
Make sure to run
mkdir policies
before it, otherwise you might run into an error
image.png
It should look like this when it's running.
p
ok got it .. it's running now Thank a lot..
i was trying with "cerbos" command and it wasnot working and tried checking status also using sudo systemctl status cerbos, this also didn't work at that time so..
f
Yeah,
systemctl status cerbos
won't work as you haven't installed Cerbos as a service and are directly running it via the binary file.
p
is there any document or video source link where i can refer for installing cerbos as a service?
o
Hi @Praveen Naik, We have a quick start page in our docs where we describe how to run cerbos in a container. https://docs.cerbos.dev/cerbos/latest/quickstart
f
Yeah, I was gonna say the same. Go with Docker and you won't have to set up services and the like.
p
ok, Thanks for the info guys