今天,我的 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.
Run Code Online (Sandbox Code Playgroud)
然后我到命令行手动启动C:/Program Files (x86)/PostgreSQL/8.3/bin/psql.exe,然后得到这个错误:
psql: Could not connect to server: Connection refused (0x0000274D/10061)
Is the server running on host "???" and accepting TCP/IP connections on port 5432?
Run Code Online (Sandbox Code Playgroud)
编辑:我在日志中发现了这一点:
2011-04-22 13:13:16 CEST LOG: could not receive data from client: No connection could be made because the …
Run Code Online (Sandbox Code Playgroud) 我在 nginx 将流量传递到我的站点而不是我自己的域时遇到了一些问题。
似乎“fb.citroen.nl”的 dns 设置错误(到我的服务器)。我想在 nginx 级别阻止除 bviaene.sanderdeclerck.be 和 www.bviaene.sanderdeclerck.be 之外的所有流量,以减少服务器负载。
搜索后,我看到它应该在 /etc/nginx/sites-enabled/default 中完成。我认为它已正确设置,但 fb.citroen.nl 的流量仍然显示我的网站。
这是我的 /etc/nginx/sites-enabled/default:
# bviaene
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
server_name bviaene.sanderdeclerck.be www.bviaene.sanderdeclerck.be;
location / {
proxy_pass http://localhost:5000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-alive;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
Run Code Online (Sandbox Code Playgroud)
有谁知道我做错了什么?
编辑:我确实用'sudo nginx reload -s'重新加载了nginx