跳到主要内容
版本:v3

Linux

下载

您还可以使用以下命令获取文件:

curl -LO https://github.com/OptimistikSAS/OIBus/releases/download/v3.4.7/oibus-linux_arm64-v3.4.7.zip
unzip -a oibus-linux_arm64-v3.4.7.zip -d OIBus/

已提取以下文件

oibus-launcher          // OIBus launcher to run the binary
binaries/oibus // OIBus binary
oibus-setup.sh // installation script
oibus-uninstall.sh // uninstallation script that will be updated during the installation process

Bash 脚本已在 Ubuntu 上测试。它们用于将 OIBus 设置为服务。另外,您可以仅运行 OIBus 二进制文件

将 OIBus 安装为 Linux 服务

您可以使用以下命令执行安装脚本,执行脚本时需要管理员权限。

sudo ./oibus-setup.sh

在安装过程中,将出现以下问题(本例提供了默认答案):

Administrative permissions are required to proceed. Do you wish to continue? (Y/n)
Administrative permissions granted.
Enter the directory in which you want to install the OIBus binary (default: ./OIBus/):
Enter the directory in which you want to save all your OIBus related data, caches, and logs (default: ./OIBusData/):
Enter a username for your session. It will be used every time you log into OIBus (default: admin):
Enter a name for your OIBus. It will help to identify your OIBus, and assist in potential troubleshooting (default: OIBus):
Enter the port on which you want OIBus to run (default 2223):
Installing oibus service...
Service file successfully created. Enabling oibus service startup on system boot...
Created symlink /etc/systemd/system/default.target.wants/oibus.service → /etc/systemd/system/oibus.service.
Starting OIBus service...
Setting oibus-uninstall.sh...
Installation procedure completed !

Useful commands:
Check service status: sudo systemctl status oibus
Check service-logs: sudo journalctl -u oibus -f

Access OIBus: http://localhost:2223/

熟悉 OIBus 界面,请访问首次访问页面

更新

要执行 OIBus 更新,请下载最新版本,解压缩文件,并开始设置安装。

sudo ./oibus-setup.sh

在启动时,如果需要,OIBus 会自动更新配置oibus.db和缓存结构。以下是一个输出示例:

更新

要进行 OIBus 更新,请下载最新版本,解压缩档案,然后启动安装程序。

sudo ./oibus-setup.sh

启动时,如果需要,OIBus 将自动更新配置 oibus.db 和缓存结构。以下是输出示例:

Administrative permissions are required to proceed. Do you wish to continue? (Y/n)
Administrative permissions granted.
Enter the directory in which you want to install the OIBus binary (default: ./OIBus/):
Enter the directory in which you want to save all your OIBus related data, caches, and logs (default: ./OIBusData/):
An oibus.json file was found. Do you want to use it for this OIBus? (Y/n)
Stopping oibus service...
Removed /etc/systemd/system/default.target.wants/oibus.service.
The oibus service has been stopped and disabled!
Installing oibus service...
Service file successfully created. Enabling oibus service startup on system boot...
Created symlink /etc/systemd/system/default.target.wants/oibus.service → /etc/systemd/system/oibus.service.
Starting OIBus service...
Setting oibus-uninstall.sh...
Installation procedure completed !

Useful commands:
Check service status: sudo systemctl status oibus
Check service-logs: sudo journalctl -u oibus -f

卸载 OIBus

在 OIBus 二进制目录中提供了一个卸载脚本。当您位于此文件夹内时,输入以下命令:

sudo ./oibus-uninstall.sh

以下是一个输出示例:

Administrative permissions are required to proceed with uninstall. Do you wish to continue ? (Y/n)
Administrative permissions granted.
Do you wish to remove all OIBus data (cache, logs...)? All data, credentials and logs about your current OIBus will be permanently erased. (y/N) y
Removed /etc/systemd/system/default.target.wants/oibus.service.
OIBus service was successfully removed.

默认情况下,如果您打算稍后重新安装 OIBus,配置将被保留。但是,您也可以选择将其移除,这样做将导致所有凭据和整个 OIBus 配置的丢失。

单独运行 OIBus

如果您喜欢在不将 OIBus 安装为服务的情况下运行它,在下载并解压缩归档文件后,您可以执行以下命令:

./oibus-launcher --config ./OIBusData

确保 OIBusData 目录已经就绪,因为它用作缓存、日志和配置数据库(例如中的 OIBusData)的存储位置。