Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/django/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在Travis CI的前台启动PostgresQL_Postgresql_Ubuntu_Travis Ci - Fatal编程技术网

在Travis CI的前台启动PostgresQL

在Travis CI的前台启动PostgresQL,postgresql,ubuntu,travis-ci,Postgresql,Ubuntu,Travis Ci,我需要在前台启动PostgreSQL(即postgres-D path/to/db): 它可以工作(initdb和postgres在$PATH中),但是: 即使使用sudo:required 更新: chown-R/var/run/postgresql可以在运行时使用-c标志更改锁文件位置 $ postgres -D /path/to/datadir -c unix_socket_directory=/path/to/socketdir 提供当前用户有权访问的目录的路径 Error: coul

我需要在前台启动PostgreSQL(即
postgres-D path/to/db
):

它可以工作(
initdb
postgres
在$PATH中),但是:

即使使用
sudo:required

更新:


chown-R/var/run/postgresql

可以在运行时使用
-c
标志更改锁文件位置

$ postgres -D /path/to/datadir -c unix_socket_directory=/path/to/socketdir
提供当前用户有权访问的目录的路径

Error: could not create lock file "/var/run/postgresql/.s.PGSQL.18174.lock": Permission denied
$ postgres -D /path/to/datadir -c unix_socket_directory=/path/to/socketdir