简体   繁体   English

PostgreSQL服务器的Yocto配方

[英]Yocto recipe for PostgreSQL server

I am generating a Linux image using Petalinux tools. 我正在使用Petalinux工具生成Linux映像。 I have added an existing recipe for PostgreSQL. 我添加了PostgreSQL的现有配方。

How can I alter the recipe so that the data location in NOT /var/lib/postgresql, but rather /var/lib/persist/postgresql ? 如何更改配方,以便数据位置不在/ var / lib / postgresql中,而是在/ var / lib / persist / postgresql中?

'/var/lib' is referenced in 4 scripts that are included in the recipe. 配方中包含的4个脚本中引用了“ / var / lib”。

Without having more info to go off of for your situation, I would say you have a few options. 如果没有适合您的情况的更多信息,我会说您有几种选择。 You could change the data location by editing PostgreSQL's config file in /etc (postgresql.conf) or you could create a symlink in PostgreSQL's normal data location that points to the new location. 您可以通过在/ etc(postgresql.conf)中编辑PostgreSQL的配置文件来更改数据位置,也可以在PostgreSQL的常规数据位置中创建一个指向新位置的符号链接。 Both of these things should be possible by editing your recipe's .bb file (if you wrote it) or adding a .bbappend file (if you are not the author of the .bb file). 可以通过编辑配方的.bb文件(如果已编写)或添加.bbappend文件(如果您不是.bb文件的作者)来实现这两种功能。

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

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