我在运行django时遇到了一些问题。当我使用命令manage.py runserver时,我收到一个错误消息:Error: [Errno 10013] An attempt was made to access a socket in a way forbidden by access permissions
我使用postgreSQL作为我的数据库。
编辑:我运行Windows Vista
我正在运行Arch,我安装了PostgreSQL作为任何其他的arch包。我使用位于用户目录中的本地数据库运行postgres。(postgres -D /home/user/data/)当我这样做时,我得到了错误FATAL: could not create lock file "/run/postgresql/.s.PGSQL.5432.lock": No such file or directory。创建目录/run/postgresql并赋予postgres用户访问权限可以解决这个问题
$ sudo mkdir /run/postgresql
$ sudo chmod
我试图在我的WSL Ubuntu上安装postgres。安装已经完成,但当我运行psql时,将显示以下错误。
psql: error: could not connect to server: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
当我运行sudo find /var/run/po
今天,我的PostgreSQL不再在我的windows机器上启动了.
我尝试在windows服务中启动该服务,并得到了以下错误:
Windows could not start the PostgreSQL Database Server 8.3 service on Local Computer.
Error 1053: The service did not respond to the start or control request in a timely fashion.
然后我转到命令行手动启动C:/Program (x86)/PostgreSQL/8.3/bin/psql.ex
我不明白为什么会这样?
Log started 07/02/2018 at 14:08:21
Preferred installation mode : win32
Trying to init installer in mode win32
Mode win32 successfully initialized
[14:08:24] Initializing PostgreSQL installer
[14:08:24] Windows Version is: Windows 7 (6.1)
[14:08:24] Operating System Language is: en
[14:08
作为Anaconda的新手,我在正确设置conda环境时遇到了一些问题。我感兴趣的是为带有postgres数据库的django应用程序设置环境。以下命令将创建环境:
$ conda create -n django1.7-webdev python=3.4 django=1.7 postgresql=9.1
第二个命令激活环境:
$ source activate django1.7-webdev
但是,此时,当尝试运行psql时,我得到了以下错误:
$ psql
psql: could not connect to server: No such file or directory
当我使用以下命令启动PostgreSQL时:
$ sudo /etc/init.d/postgresql start
Pg无法启动。报告的错误为:
* Starting PostgreSQL 8.4 database server
* The PostgreSQL server failed to start. Please check the log output:
2010-01-21 22:10:00 PST FATAL: private key file "server.key" has group or world access
2010-01-21 22:10:
每当我使用以下命令安装postgreSQL服务器时,我都会尝试安装并运行它
sudo apt-get install postgresql
我得到以下错误:
* Starting PostgreSQL 9.1 database server
* The PostgreSQL server failed to start. Please check the log output:
2014-04-03 17:18:16 PDT FATAL: could not create lock file "/v
我正在尝试在PostgreSQL数据库上设置一个运行Ruby on Rails的Windows XP Test Agent。我已经用默认设置安装了Windows9.2版的PostgreSQL。但是,当我尝试从service Control Panel启动该服务时,出现以下错误信息(与我尝试将其设置给哪个用户无关):
The postgres-9.2 -PostgreSQL Server 9.2 service on Local Computer started and then stopped. Some services
stop automatically if they h
我试图使用数据持久性在Azure Kubernetes上部署Postgresql。所以我用PVC。我在这里搜索了很多帖子,其中大多数提供了如下所示的yaml文件,但它给出了下面的错误;
chmod: changing permissions of '/var/lib/postgresql/data/pgdata': Operation not permitted
The files belonging to this database system will be owned by user "postgres".
This user must also own