我在Engineyard有一个实例,我想安装postgis。
我尝试了几种方法,但都没有成功。
有没有人在Engineyard上成功安装了postgis?你能告诉我你是怎么做到的吗?
发布于 2011-06-07 19:19:02
我以sudo的身份手动安装...
发布于 2015-07-22 10:25:07
手动启动服务很麻烦,而且不推荐使用这种方式。如果你更喜欢手动的方式,那么别忘了使用supervisors,比如Systemd daemontools,runit,Initng,Monit。
使用CHEF的
最好的方法是定制一个已经存在的厨师食谱,如果你是厨师食谱的新手,如果可以的话,你可以创建一个食谱。
首先克隆存储库https://github.com/engineyard/ey-cloud-recipes。
然后修改cookbooks/main/recipes/default.rb并取消对postgres if块的注释,并取消对postgresql9_postgis "dbname"的注释,同时不要忘记更改"dbname"!
# enable Extension modules for a given Postgresql database
# if ['solo','db_master', 'db_slave'].include?(node[:instance_role])
# PostGis 1.5 (use with versions 9.0, 9.1, 9.2 on 2009a/stable-v2)
# postgresql9_postgis "dbname"
# PostGis 2.1 (use with version 9.2 on 2009a/stable-v2 and all versions on 12.11/stable-v4)
# postgresql9_postgis2 "dbname"然后简单地上传并执行食谱。
ey recipes upload -e environment_name
ey recipes apply -e environment_namehttps://stackoverflow.com/questions/4900462
复制相似问题