zoukankan      html  css  js  c++  java
  • [ThingWorx] Install PostgreSQL Issue

    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.

  • 相关阅读:
    牛客练习赛53 B题调和级数
    装备购买(线性基)
    杨氏矩阵与勾长公式
    南昌邀请赛B题(拉格朗日插值)
    徐州网络赛补题
    __int128 输入输出模板
    51 nod1067 Bash游戏 V2(sg函数打表)
    堆优化的dijkstra算法
    ST表求区间最值
    Tree Reconstruction
  • 原文地址:https://www.cnblogs.com/xuzhong/p/6239965.html
Copyright © 2011-2022 走看看