小编sly*_*oty的帖子

Postfix aliases db: 没有那个文件或目录

我正在尝试postfix在本地Ubuntu 12.04使用ZoneMinder. 我从安装Ubuntu DesktopPostfix软件包和它的依赖。

现在,如果我尝试使用以下命令发送电子邮件,则效果很好:

echo "This is the body of the email" | mail -s "This is the subject line" myemail@gmail.com
Run Code Online (Sandbox Code Playgroud)

然后,如果警报ZoneMinder发送电子邮件,我会收到以下信息

Apr 16 17:05:18 ubuntu postfix/local[11541]: warning: hash:/etc/aliases is unavailable. open database /etc/aliases.db: No such file or directory
Run Code Online (Sandbox Code Playgroud)

如果我运行 postqueue -qi get queueed email with(别名数据库不可用)

A09B4A40C16      422 Thu Apr 16 16:59:37  destination@email.net
                                                  (alias database unavailable)
                                         root@nameofthehost.net
Run Code Online (Sandbox Code Playgroud)

我试图设置pownershippostfix在其他后建议用以下

sudo chown postfix:postfix -R /var/lib/postfix …
Run Code Online (Sandbox Code Playgroud)

postfix ubuntu-12.04

9
推荐指数
1
解决办法
3万
查看次数

如何增加 XFS 文件系统的大小?

我刚刚创建了一个运行RHEL7以下命令的 Amazon AWS EC2 实例:

[root@ip-10-184-161-46 ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.0 (Maipo)
[root@ip-10-184-161-46 ~]# 
Run Code Online (Sandbox Code Playgroud)

即使我选择了10GB作为我的存储容量,无论出于何种原因,我只看到6GB可供我立即使用的容量:

[root@ip-10-184-161-46 ~]# mount | grep xfs | grep -v selinux
/dev/xvda1 on / type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
[root@ip-10-184-161-46 ~]# df -h | grep xvda
/dev/xvda1      6.0G  2.2G  3.9G  37% /
[root@ip-10-184-161-46 ~]# fdisk -l /dev/xvda

Disk /dev/xvda: 10.7 GB, 10737418240 bytes, 20971520 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size …
Run Code Online (Sandbox Code Playgroud)

xfs redhat rhel7

6
推荐指数
1
解决办法
2万
查看次数

在 Active Directory 中,IP、MAC 和 OS 之间是什么关系?

我有一台机器,我想在其中运行 2 个不同的操作系统,在 Windows Server 2008R2 和 2012R2(或其他)之间进行双引导。我想保持相同的计算机名称、相同的 IP 地址和相同的 MAC 地址。
在 2 个操作系统之间切换时,我会遇到 AD 和 DNS 方面的任何问题吗?

domain-name-system windows active-directory ip operating-system

4
推荐指数
3
解决办法
1438
查看次数

PowerShell 与 PowerShell ISE 和 PowerGUI 中的虚拟机列表

我很困惑,为什么根据我尝试从哪里检索信息,我有不同的信息。我有 3 个运行 Hyper-V 的 Windows 2012 服务器(G0、G1 和 G2)。以下情况是从我用来运行脚本并控制其他服务器的一台服务器中捕获的。

我想要做的是获取这 3 台机器上存在的虚拟机列表:

使用PowerGUIPowerShell ISE

PS > Get-VMHost | select name

Name                                                                                               
----                                                                                               
G0.nothing.com                                                                       
G2.nothing.com                                                                           
G1.nothing.com                                                                           


PS > Get-VMHost | Get-VM | select name

Name                                                                                               
----                                                                                               
VM1628856-4                                                                                        
VM1628856-2                                                                                        
VM1628856-6                                                                                        
VM1628856-3                                                                                        
VM1628856-1                                                                                        
VM1628856-5                                                                                        
Run Code Online (Sandbox Code Playgroud)

使用PowerShell

PS > Get-VMHost | select name

Name
----
G0


PS > Get-VM

Name         State       CPUUsage(%) MemoryAssigned(M) Uptime   Status
----         -----       ----------- ----------------- ------   ------
VM1107610-1  OffCritical 0           0                 00:00:00 Cannot connect …
Run Code Online (Sandbox Code Playgroud)

windows powershell hyper-v virtual-machines

2
推荐指数
1
解决办法
2975
查看次数

端点映射器中没有更多端点可用

我有一个域的 Windows Server 2008 R2 数据中心部分。DebugView 不断地吐出这个错误:

[5592] 5592: 2014-01-08 13:32:39.410 [DirectResult] Error (Id=0) System.Runtime.InteropServices.COMException (0x800706D9): There are no more endpoints available from the endpoint mapper. (Exception from HRESULT: 0x800706D9) 
Run Code Online (Sandbox Code Playgroud)

我已经阅读了复制错误 1753 中的建议,端点映射器没有更多可用的端点,但无法解决问题或查明主要原因。

其他没有积极结果的方法:

  • 重新启动了系统
  • 重新启动了 DNS 服务器

任何关于寻找什么以及导致这种情况的想法都将不胜感激。

编辑

来自 DebugView 的包含相同 PID [5592] 的片段:

[5592] 5592: 2014-01-09 13:07:58.788 [DirectResult] Error (Id=0) System.Runtime.InteropServices.COMException (0x800706D9): There are no more endpoints available from the endpoint mapper. (Exception from HRESULT: 0x800706D9) 
[5592]    at Microsoft.Windows.ServerManager.NativeMethods.INetFwPolicy2.IsRuleGroupCurrentlyEnabled(String group) 
[5592]    at Microsoft.Windows.ServerManager.DirectResult.GetRemoteManagementEnabled() …
Run Code Online (Sandbox Code Playgroud)

windows-server-2008 rpc

1
推荐指数
1
解决办法
2万
查看次数