Infisical使用yum或apt搭建

Infisical搭建参考
https://www.cnblogs.com/minseo/p/18369459
官网安装参考
https://infisical.com/docs/self-hosting/deployment-options/native/linux-package/installation

  1. 环境查看
    系统环境
# cat /etc/redhat-release 
Rocky Linux release 9.3 (Blue Onyx)
# uname -a
Linux Rocky9Infisical003086 5.14.0-362.18.1.el9_3.0.1.x86_64 #1 SMP PREEMPT_DYNAMIC Sun Feb 11 13:49:23 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

软件环境
2. yum安装Infisical
添加源

curl -1sLf 'https://artifacts-infisical-core.infisical.com/setup.deb.sh' | sudo -E bash

Ubuntu使用apt安装

sudo apt-get update && sudo apt-get install -y infisical-core

红帽,Rocky使用yum安装

sudo yum update && sudo yum install -y infisical-core

如需升级则使用上面步骤再执行一次 infisical-ctl restart重启

输出帮助信息

infisical-ctl help

创建配置文件

# file at /etc/infisical/infisical.rb
# Important: Replace with secure values in production
infisical_core['ENCRYPTION_KEY'] = '6c1fe4e407b8911c104518103505b218'
infisical_core['AUTH_SECRET'] = '5lrMXKKWCVocS/uerPsl7V+TX/aaUaI7iDkgl3tSmLE='

# Example database connection strings
infisical_core['DB_CONNECTION_URI'] = 'postgres://<db-username>:<db-password>@<db-host>:<db-port>/<db-name>'
infisical_core['REDIS_URL'] = 'redis://<redis-host>:<redis-port>'

需要修改配置文件配置postgres以及redis信息

启动Infisical
自动读取配置文件,如果配置文件有修改则重新读取配置文件

infisical-ctl reconfigure

查看状态

infisical-ctl status

输出日志

infisical-ctl tail

访问,默认8080端口

http://ip:80

默认配置未配置https以及SMTP邮箱等信息

posted @ 2026-02-05 16:23  minseo  阅读(20)  评论(0)    收藏  举报