简体   繁体   English

pocketbase:找不到命令

[英]pocketbase: command not found

I am trying to set up a pocketbase on a Debian server.我正在尝试在 Debian 服务器上设置一个 pocketbase。

on the server I created a dir called pb and scp over the pocketbase file which I downloaded from https://pocketbase.io/docs/在服务器上,我在从https://pocketbase.io/docs/下载的 pocketbase 文件上创建了一个名为 pb 和 scp 的目录

I downloaded all three linux packages pocketbase_0.10.2_linux_amd64.zip , pocketbase_0.10.2_linux_arm64.zip and pocketbase_0.10.2_linux_armv7.zip我下载了所有三个 linux 软件包pocketbase_0.10.2_linux_amd64.zippocketbase_0.10.2_linux_arm64.zippocketbase_0.10.2_linux_armv7.zip

I download the file, unzip it and then move the pocketbase file over to the server.我下载文件,解压缩,然后将 pocketbase 文件移至服务器。

Note, Ive downloaded these onto a windows machine and then SCP pocketbase file over to my server.请注意,我将这些下载到 Windows 机器上,然后将 SCP pocketbase 文件下载到我的服务器上。

When I run pocketbase serve I get the error command not found.当我运行pocketbase serve时,我收到错误命令未找到。

I can't find a good solution to this issue.我找不到解决这个问题的好办法。

Execute it as instructed by pocketbase's documentation if you are within the same directory as the bin file:如果您与 bin 文件位于同一目录中,请按照 pocketbase 文档的说明执行它:

./pocketbase serve

If you want to run it as pocketbase serve alone you will need to move the bin file under /usr/bin or ideally /usr/local/bin which should be under your system's $PATH variable.如果你想单独运行它作为pocketbase serve ,你需要将 bin 文件移动到/usr/bin下,或者最好是/usr/local/bin ,它应该在你系统的$PATH变量下。

https://pocketbase.io/docs/ https://pocketbase.io/docs/

Run ./pocketbase --help or ./pocketbase [command] --help for more assistance.运行./pocketbase --help./pocketbase [command] --help以获得更多帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM