首页 > 数据库技术 > 详细

[ThingWorx] Install PostgreSQL Issue

时间:2016-12-31 19:07:46      阅读:557      评论:0      收藏:0      [点我收藏+]

ThingWorx application need PostgreSQL, I try configurate it in macbook. The first step is install PostgreSQL. 

Install PostgreSQL is very easy. Download it from www.postgresql.org, and install it.

But after installing db, I need create the database and space. I got error by following command.

postgres=# CREATE TABLESPACE thingworx
postgres-#   OWNER twadmin
postgres-#   LOCATION /Work/ThingWorx/ThingworxPostgresqlStorage/thingworx;
ERROR:  could not set permissions on directory "/Work/ThingWorx/ThingworxPostgresqlStorage/thingworx": Operation not permitted
postgres=# 
ERROR:  could not set permissions on directory "/Work/ThingWorx/ThingworxPostgresqlStorage/thingworx": Operation not permitted

After some search in bing and baidu, I found the solution and reason.

The folder I was created by ‘Eric‘ user, but PostgreSQL need set the creator as ‘postgres‘. Than I change the folder creator by following command.

$sudo chown postgres /Work/ThingWorx/ThingworxPostgresqlStorage/thingworx

$sudo chown postgres /Work/ThingWorx/ThingworxPostgresqlStorage/thingworx

After change the folder‘s owner, it work well.

 

BTW, If you create table or space repear the permission issue, please check the PostgreSQL‘s service account have full permission for the folder.

 

[ThingWorx] Install PostgreSQL Issue

原文:http://www.cnblogs.com/xuzhong/p/6239965.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!