使用Set-Service
,我可以StartType
在Boot, System, Automatic, Manual, Disabled
. 使用services.msc
,我可以将某些服务设置为以 优先级启动Automatic (Delayed Start)。但是,Get-Service
仍将这些延迟启动服务报告为StartType : Automatic
,并Set-Service
在尝试设置这些值时出错。
我可以通过powershell设置这个属性吗?还是我仅限于 UI或 GPO?
当我尝试从主机系统上的 PostgreSQL 客户端连接到 VirtualBox 来宾系统上的 PostgreSQL 服务器时,我收到一条“连接尝试失败”消息。
主机系统是Windows XP。我正在运行 VirtualBox 3.1.2。来宾系统是带有 PostgreSQL 8.4 的 Ubuntu 9.10 Karmic Koala。
我已经按照手册和这篇文章中的描述在 VirtualBox 中转发了端口 5432 。当我运行时vboxmanage getextradata vmname enumerate
,我得到这些条目(以及其他条目):
Key: VBoxInternal/Devices/e1000/0/LUN#0/Config/pgsql/GuestPort, Value: 5432
Key: VBoxInternal/Devices/e1000/0/LUN#0/Config/pgsql/HostPort, Value: 5432
Key: VBoxInternal/Devices/e1000/0/LUN#0/Config/pgsql/Protocol, Value: TCP
Run Code Online (Sandbox Code Playgroud)
我在 /etc/postgresql/8.4/main/pg_hba.conf 中使用以下条目配置了 PostgreSQL 安全性:
# IPv4 local connections:
host all all 127.0.0.1/32 md5
host all all 192.168.1.0/24 md5
host all all 10.0.2.2/32 md5
Run Code Online (Sandbox Code Playgroud)
然后我用sudo /etc/init.d/postgresql-8.4 reload
.
仅出于诊断目的,我已禁用 Windows 防火墙和 Ubuntu 防火墙 ( sudo ufw …