使用 postgis 的 Engineyard
我在 Engineyard 有一个实例,我想安装 postgis。
我和厨师一起尝试了几件事,但都没有成功。
有人在Engineyard成功安装postgis了吗?你能告诉我你是怎么做到的吗?
I have an instance in Engineyard and I want to install postgis.
I tried several things with chef but had no success at all.
Has anyone installed postgis on Engineyard successfully? and can you tell me how you did it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我手动安装为 sudo...
I installed manually as sudo...
手动启动服务很麻烦,不推荐这样做。如果您更喜欢手动方式,那么不要忘记使用 supervisor,例如 Systemd
守护进程工具,runit,Initng,Monit。
使用 CHEF
如果您不熟悉 CHEF 菜谱,最好的方法是自定义现有的 CHEF 菜谱,并且如果可以的话您可以创建一个菜谱。
首先克隆存储库 https://github.com/engineyard/ey-cloud-recipes .
然后修改cookbooks/main/recipes/default.rb并取消注释postgres if块并取消注释postgresql9_postgis“dbname”,不要忘记更改
“dbname”
!然后只需上传并执行菜谱即可。
Manually starting services is cumbersome and not a recommended way to do things. If you prefer manual way then dont forget to use supervisors like Systemd
daemontools, runit, Initng, Monit.
Using CHEF
The best way is to customize an already existing CHEF recipe if you are new to CHEF recipes and you can create a recipe if you can.
First clone the repo https://github.com/engineyard/ey-cloud-recipes.
Then modify
cookbooks/main/recipes/default.rb
and uncomment thepostgres
if block and uncomment thepostgresql9_postgis "dbname"
and don't forget to change the"dbname"
!Then simply upload and execute the recipe.