<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>月影鹏鹏 &#187; 服务器管理</title>
	<atom:link href="http://jk.aiwaly.com/wp/category/it-technology/server-manage/feed" rel="self" type="application/rss+xml" />
	<link>http://jk.aiwaly.com</link>
	<description>不断探索,追求卓越,做快乐自己</description>
	<lastBuildDate>Thu, 29 Mar 2012 01:09:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>国内快速debian安装源，最新6.0版</title>
		<link>http://jk.aiwaly.com/wp/debian-6-src.html</link>
		<comments>http://jk.aiwaly.com/wp/debian-6-src.html#comments</comments>
		<pubDate>Wed, 17 Aug 2011 06:31:05 +0000</pubDate>
		<dc:creator>月影鹏鹏</dc:creator>
				<category><![CDATA[开源软件]]></category>
		<category><![CDATA[服务器管理]]></category>

		<guid isPermaLink="false">http://jk.aiwaly.com/?p=3088</guid>
		<description><![CDATA[国内快速debian源 sources.list下载-最新6.0版（squeeze）更新

# &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;
# 主源
# 必须，一般的包都从此获取。
# 香港主站
deb http://ftp.hk.debian.org/debian squeeze main contrib non-free
deb-src http://ftp.hk.debian.org/debian squeeze main contrib non-free
# 网易镜像
deb http://mirrors.163.com/debian squeeze main contrib non-free
deb-src http://mirrors.163.com/debian squeeze main contrib non-free
# 台湾主站
deb http://ftp.tw.debian.org/debian squeeze main contrib non-free
deb-src http://ftp.tw.debian.org/debian squeeze main contrib non-free
# 搜狐镜像
deb http://mirrors.sohu.com/debian squeeze main contrib non-free
deb-src http://mirrors.sohu.com/debian squeeze main contrib non-free
# &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;
# 计划更新
# 通常不必，发布小版本之前的测试库。该库包括所有的安全更新，有此则无需再设置安全
# 更新源。
# 香港主站
deb http://ftp.hk.debian.org/debian [...]]]></description>
		<wfw:commentRss>http://jk.aiwaly.com/wp/debian-6-src.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>添加yum源 ：yum install PHP 5.2</title>
		<link>http://jk.aiwaly.com/wp/yum-install-php-5-2.html</link>
		<comments>http://jk.aiwaly.com/wp/yum-install-php-5-2.html#comments</comments>
		<pubDate>Wed, 03 Aug 2011 01:14:56 +0000</pubDate>
		<dc:creator>月影鹏鹏</dc:creator>
				<category><![CDATA[服务器管理]]></category>

		<guid isPermaLink="false">http://jacky.aiwaly.com/?p=3056</guid>
		<description><![CDATA[喜欢CentOS 的原因之一他有yum ，有些依赖包安装起来很方便！但有个缺点就是yum 的库都不是最新的包，如php 用官方yum 来安装只是5.1版的，由于开发需要安装php 5.2 或以上的版本，又想通过yum 来安装，所以网上找了个 yum install php 5.2 的方法，贴出来给大家分享一下。

安装相应的GPG key
# rpm &#8211;import  http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka 
新建一个repo
# /etc/yum.repos.d/utterramblings.repo
把以下内容添加进去，保存退出就OK了
[utterramblings]
name=Jason&#8217;s Utter Ramblings Repo
baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
就这么简单！呵呵，现在可以试试了
yum install php
安装出来的就是 php5.2
]]></description>
		<wfw:commentRss>http://jk.aiwaly.com/wp/yum-install-php-5-2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SVN + Trac + Apache 完整安裝攻略</title>
		<link>http://jk.aiwaly.com/wp/svn-trac-apache.html</link>
		<comments>http://jk.aiwaly.com/wp/svn-trac-apache.html#comments</comments>
		<pubDate>Thu, 21 Jul 2011 03:33:11 +0000</pubDate>
		<dc:creator>月影鹏鹏</dc:creator>
				<category><![CDATA[开源软件]]></category>
		<category><![CDATA[服务器管理]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://jk.scanmon.com/?p=3027</guid>
		<description><![CDATA[SVN + Trac + Apache 完整安裝攻略，而原本在 SVN 所欠缺的用戶及權限管理介面，也都可以由 Trac 的外掛程式來搞定，可謂兩全其美。
本文章適合熟悉 SVN 但沒用個任何線上專案管理的人做為參考。
請注意，本人使用的 Linux 是 CentOS 5.x，RHEL 5.x 也適用。
1. 伺服器環境及設置
在伺服器上，我的設置如下:

SVN 相關設定檔: /etc/svn/
SVN 檔案庫的根目錄: /var/svn/ (裡面可以存放多個檔案庫)
Trac 專案的根目錄: /var/trac/ (裡面可以存放多個專案)
SVN 用戶的帳號密碼檔: /etc/svn/account
SVN 用戶的權限檔: /etc/svn/authz
伺服器 IP: 192.168.1.10
SVN 的存取網址: http://192.168.1.10/svn
Trac 的存取網址: http://192.168.1.10/trac

所以要先建立這些目錄及檔案:
mkdir /etc/svn
mkdir /var/svn
mkdir /var/trac
touch /etc/svn/account
touch /etc/svn/authz
chown -R apache /etc/svn
因為 “account” 及 “authz” 這兩個檔案都需要由 Trac 來管理，所以都要把擁有者改為 apache (包含 /etc/svn 這個目錄)
2. [...]]]></description>
		<wfw:commentRss>http://jk.aiwaly.com/wp/svn-trac-apache.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>linux服务器不重启重新加载分配表</title>
		<link>http://jk.aiwaly.com/wp/re-read-the-partition-table-without-rebooting-linux-system.html</link>
		<comments>http://jk.aiwaly.com/wp/re-read-the-partition-table-without-rebooting-linux-system.html#comments</comments>
		<pubDate>Thu, 24 Feb 2011 07:12:05 +0000</pubDate>
		<dc:creator>月影鹏鹏</dc:creator>
				<category><![CDATA[linux 系统]]></category>
		<category><![CDATA[服务器管理]]></category>

		<guid isPermaLink="false">http://jk.scanmon.com/?p=2899</guid>
		<description><![CDATA[linux使用fdisk分区的使用，一般是可以不重启直接加载文件分区表的，但是有时候必须重启才能重新加载分区表。分区后会有如下提示
WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
&#8212;&#8212;&#8212;-文件界面操作如下
[root@scanmon ~]# fdisk /dev/sdc
The number of cylinders for this disk is set to 5221.
There is nothing wrong with that, but this is larger than 1024,
and could in [...]]]></description>
		<wfw:commentRss>http://jk.aiwaly.com/wp/re-read-the-partition-table-without-rebooting-linux-system.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>(转)改Oracle字符集到utf-8,可以入中文,日文,其他字符</title>
		<link>http://jk.aiwaly.com/wp/oracle-charset-2.html</link>
		<comments>http://jk.aiwaly.com/wp/oracle-charset-2.html#comments</comments>
		<pubDate>Sun, 21 Nov 2010 12:21:07 +0000</pubDate>
		<dc:creator>月影鹏鹏</dc:creator>
				<category><![CDATA[databases]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[服务器管理]]></category>

		<guid isPermaLink="false">http://jk.scanmon.com/?p=2833</guid>
		<description><![CDATA[
改Oracle字符集到utf-8,可以入中文,日文,其他字符
先check下現在oracle字符集
Check nls_parameter:
Select * from v$nls_parameters;
check nls_database_parameters
Select * fron nls_database_parameters;
1-改 Regedit
Start -&#62; Run -&#62; Rededit &#60;-&#124;
Under registry Editor &#8211; &#62; HKEY_LOCAL_MACHINE -&#62; SOFTWARE -&#62;ORACLE-&#62;KEY_XE-&#62;RIGHT WINDOW DOUBLE CLICK NLS_LANG -&#62; CHANGE VALUE TO &#8220;AMERICAN_AMERICA.UTF8&#8243; -&#62;OK -&#62;CLOSE REGISTRY
2-改database character
Start -&#62; Run -&#62; cmd&#60;-&#124;
&#62; connect sqlplus &#8220;用戶/pass as sysdba&#8221; (sysdba-oracle database name)
&#62;shutdown immediate; (吧database停了)
&#62;startup mount; (吧database重開去可更改情況)
&#62;Alter system enable restricted [...]]]></description>
		<wfw:commentRss>http://jk.aiwaly.com/wp/oracle-charset-2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>sql server 高可用性方案</title>
		<link>http://jk.aiwaly.com/wp/sql-2005-mirroring.html</link>
		<comments>http://jk.aiwaly.com/wp/sql-2005-mirroring.html#comments</comments>
		<pubDate>Thu, 11 Nov 2010 02:09:41 +0000</pubDate>
		<dc:creator>月影鹏鹏</dc:creator>
				<category><![CDATA[databases]]></category>
		<category><![CDATA[探索中的鹏鹏工作室]]></category>
		<category><![CDATA[服务器管理]]></category>

		<guid isPermaLink="false">http://jk.scanmon.com/?p=2818</guid>
		<description><![CDATA[
“数据库镜像 ”是用于提高数据库可用性的主要软件解决方案。镜像基于每个数据库实现，并且只适用于使用完整恢复模式的数据库。简单恢复模式和大容量日志恢复模式不支持数据库镜像。因此，所有大容量操作始终被完整地记入日志。数据库镜像可使用任意支持的数据库兼容级别。



鹏鹏工作室介绍数据库镜像的优点




 数据库镜像是一种简单的策略，具有下列优点：

 增强数据保护功能。
数据库镜像提供完整或接近完整的数据冗余，具体取决于运行模式是高安全性模式还是高性能模式。有关详细信息，请参阅本主题后面的“运行模式”。
 提高数据库的可用性。
发生灾难时，在具有自动故障转移功能的高安全性模式下，自动故障转移可快速使数据库的备用副本在线（而不会丢失数据）。在其他运行模式下，数据库管理员可 以选择强制服务（可能丢失数据），以替代数据库的备用副本。有关详细信息，请参阅本主题后面的“角色切换”。
 提高生产数据库在升级期间的可用性。
若要使镜像数据库的停机时间减至最小，可以按顺序升级要参加数据库镜像会话的 SQL Server 实例，从而使停机时间仅为一次故障转移的时间。这种形式的升级称为“滚动升级”。有关详细信息，请参阅如何以最小的镜像数据库停机时间在系统上安装 Service Pack。


数据库镜像工作方式



 
在“数据库镜像会话 ”中，主体服务器和镜像服务器作为“伙伴 ”进行通信和协作。两个伙伴在会话中扮演互补的角色：“主体角色” 和“镜像角色” 。在任何给定的时间，都是一个伙伴扮演主体角色，另一个伙伴扮演镜像角色。每个伙伴拥有 其当前角色。拥有主体角色的伙伴称为“主体服务器” ，其数据库副本为当前的主体数据库。拥有镜像角色的伙伴称为“镜像服务器” ，其数据库副本为当前的镜像数据库。如果数据库镜像部署在生产环境中，则主体数据库即为生产数据库。
数据库镜像涉及尽快将对主体数据库执行的每项插入、更新和删除操作重做到镜像数据库中。重做通过将每个活动事务日志记录发送到镜像服务器来完成，这会尽快将日志记录按顺序应用到镜像数据库中。与逻辑级别执行的复制不同，数据库镜像在物理日志记录级别执行。
运行模式

数据库镜像会���以同步操作或异步操作运行。在异步操作下，事务不需要等待镜像服务器将日志写入磁盘便可提交，这样可最大程度地提高性能。在同步操作下，已提交的事务将在伙伴双方上提交，但会延长事务滞后时间。
有两种镜像运行模式。一种是“高安全性模式 ”，它支持同步操作。在高安全性模式下，当会话开始时，镜像服务器将使镜像数据库尽快与主体数据库同步。在同步数据库之后，已提交的事务将在伙伴双方上提交，但会延长事务滞后时间。
第二种运行模式，即“高性能模式 ”，异步运行。镜像服务器尝试与主体服务器发送的日志记录保持同步。虽然镜像数据库可能稍微滞后于主体数据库，但这两个数据库之间的时间间隔通常很小。但是，如果主体服务器的工作负荷过高或镜像服务器系统的负荷过高，则时间间隔会增大。
在高性能模式中，主体服务器向镜像服务器发送日志记录之后会立即再向客户端发送确认一条消息，而不需要等待镜像服务器的确认。这意味着事务不需要等待镜像服务器将日志写入磁盘便可提交。此异步操作允许主体服务器在事务滞后时间最小的条件下运行，但可能会丢失某些数据。
所有数据库镜像会话都只支持一台主体服务器和一台镜像服务器。下图阐释了这种配置。

具有自动故障转移功能的高安全性模式要求使用第三个服务器实例，称为“见证服务器 ”。与这两个伙伴不同的是，见证服务器并不能用于数据库。见证服务器通过验证主体服务器是否已启用并运行来仅支持自动故障转移。只有在镜像服务器和见证服务器与主体服务器断开连接之后而保持相互连接时，镜像服务器才启动自动故障转移。
下图显示了包含见证服务器的配置。

有关详细信息，请参阅本主题后面的“角色切换”。
事务安全与运行模式

运行模式是异步还是同步取决于事务安全设置。如果专门使用 SQL Server Management Studio 来配置数据库镜像，则在您选择运行模式时，将自动配置事务安全设置。
如果使用 Transact-SQL 配置数据库镜像，则需要了解如何设置事务安全。事务安全由 ALTER DATABASE 语句的 SAFETY 属性控制。在正在镜像的数据库中，SAFETY 为 FULL 或 OFF。

 如果将 SAFETY 选项设置为 FULL，则在初始同步阶段后，数据库镜像操作将同步执行。如果在高安全性模式下设置见证服务器，则会话支持自动故障转移。
 如果将 SAFETY 选项设置为 OFF，则数据库镜像操作将异步执行。会话在高性能模式下运行，并且 WITNESS 选项也应设置为 OFF。

有关详细信息，请参阅 Transact-SQL 设置和数据库镜像运行模式。


角色切换
在数据库镜像会话上下文中，通常可以使用一个称为“角色切换” 的过程来互换主体角色和镜像角色。角色切换涉及将主体角色转换给镜像服务器的操作。在角色切换中，镜像服务器充当主体服务器的“故障转移伙伴 ”。进行角色切换时，镜像服务器将接管主体角色，并使其数据库的副本在线以作为新的主体数据库。以前的主体服务器（如果有）将充当镜像角色，并且其数据库将变为新的镜像数据库。这些角色可以反复地来回切换。
存在以下三种角色切换形式：

 自动故障转移
这要求使用高安全性模式并具有镜像服务器和见证服务器。数据库必须已同步，并且见证服务器必须连接到镜像服务器。
见证服务器的作用是验证给定的伙伴服务器是否已启动并运行。如果镜像服务器与主体服务器断开连接，但见证服务器仍与主体服务器保持连接，则镜像服务器无法启动故障转移。有关详细信息，请参阅数据库镜像见证服务器。
 [...]]]></description>
		<wfw:commentRss>http://jk.aiwaly.com/wp/sql-2005-mirroring.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vsftp 配置以及日志格式</title>
		<link>http://jk.aiwaly.com/wp/vsftp-configure-log.html</link>
		<comments>http://jk.aiwaly.com/wp/vsftp-configure-log.html#comments</comments>
		<pubDate>Tue, 09 Nov 2010 02:46:10 +0000</pubDate>
		<dc:creator>月影鹏鹏</dc:creator>
				<category><![CDATA[服务器管理]]></category>
		<category><![CDATA[网站运维]]></category>

		<guid isPermaLink="false">http://jk.scanmon.com/?p=2815</guid>
		<description><![CDATA[FTP服务中常见有vsftp,proftp,wu-ftp&#8230;而在类redhat的linux发行版本中vsftp一般都是默认安装的，下面我们就来介绍下vsftp的配置以及它的日志格式。
1问题描述
昨天刚向实验室的同学公开一个movie帐户，其实是想大家都能telnet,或ssh上，有空玩玩。没想到有人就用这个帐号在ftp上删除了文件。
首先vsftp默认只有上下传记录，根本没有本地用户的删除或建目录的操做。这个在lastlog里也不会有痕迹。所以对公开账号千万不能同时是本地账号。如果是本地账号，那也要控制该账号确定文件的删除修改权限。不要让该用户对其他文件有破坏性权限。这种控制会积累很多管理漏洞，所以最好就是给虚拟用户，或者ftp只能使用匿名账号(当然，这个管理员可以灵活控制自己的使用权限)。
因此在开放用户账号时要考虑日志的决定存在，不能出现这种漏空监控。
出现这种问题的关键就是日志与服务没有绝对一致。比如ftp本来只是用来上传或下载，这里却还给了管理文件的权限，而vsftp对管理文件的却没有监控，太失败了。

2 相关知识
查阅vsftp的参数手册才知道是自己太无知。
vsftpd与log有关的选项：
vsftpd_log_file
xferlog_enable
xferlog_std_format
xferlog_file
dual_log_enable
syslog_enable
log_ftp_protocol
no_log_lock
这里主要要到下面几个参数控制
log_ftp_protocol
如果启用, 假若选项 xferlog_std_format 没有启用, 所有的 FTP 请求和应答都会被记录. 此选项将对调试很有用.
默认: YES
dual_log_enable
如果启用, 将生成两个相似的日志文件, 默认在 /var/log/xferlog 和 /var/log/vsftpd.log 目录下. 前者是 wu-ftpd 类型的传输日志, 可以用于 标准工具分析. 后者是 vsftpd 自己类型的日志.
xferlog_enable
如果启用, 将会维护一个日志文件, 用于详细记录上载和下载. 默认情况下, 这个日志文件是 /var/log/vsftpd.log. 但是也可以通过配置文件中的 vsftpd_log_file 选项来指定.
默认: NO(但是在示例设置中启用了这个选项)
xferlog_std_format
如果启用, 传输日志文件将以标准 xferlog 的格式书写, 如同 wu-ftpd 一样. 这可以用于重新使用传输统计生成器. 然而, 默认格式更注重可读性. 此格式的日志文件默认为 /var/log/xferlog, 但是您也可以通过 xferlog_file 选项来设定.
默认: NO
3 解决方法
这里只给出日志这块的参数设置
##################log settings###################
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# You [...]]]></description>
		<wfw:commentRss>http://jk.aiwaly.com/wp/vsftp-configure-log.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>对话 UNIX: 新改进的 Vim 编辑器</title>
		<link>http://jk.aiwaly.com/wp/unix-vim-edit.html</link>
		<comments>http://jk.aiwaly.com/wp/unix-vim-edit.html#comments</comments>
		<pubDate>Tue, 26 Oct 2010 13:13:08 +0000</pubDate>
		<dc:creator>月影鹏鹏</dc:creator>
				<category><![CDATA[linux 系统]]></category>
		<category><![CDATA[question (问题)]]></category>
		<category><![CDATA[服务器管理]]></category>

		<guid isPermaLink="false">http://jk.scanmon.com/?p=2777</guid>
		<description><![CDATA[Adam Cormany, 国家数据中心经理, Scientific Games Corporation
2008 年 10 月 30 日
如果您曾和 IBM® AIX®（UNIX® 的一个版本）或 Linux® 打过交道，使用的很可能是 vi 编辑器。自 1976 年提出 vi 的概念开始，它已经成为编辑文件的主要工具。您可能会问：“有比 vi 功能更强大的编辑工具吗？”当然有，那就是 Vim，本文将详细介绍 Vim 增强功能，这些增强功能使 Vim 成为 UNIX 和 Linux 领域中广泛使用的编辑器。
vi 程序是一个功能强大的文本编辑器。Sun Microsystems 的共同创始人 William Joy 最初在 1976 年编写了针对 Berkeley Software Distribution（BSD）UNIX 早期版本的 vi 编辑器。据说 Bill 一个周末就编写了 vi，不过他说这纯属谣言。该程序以 UNIX 扩展行编辑器中的 visual 命令命名 — [...]]]></description>
		<wfw:commentRss>http://jk.aiwaly.com/wp/unix-vim-edit.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iptables的妙用——条件限速</title>
		<link>http://jk.aiwaly.com/wp/iptables-limit.html</link>
		<comments>http://jk.aiwaly.com/wp/iptables-limit.html#comments</comments>
		<pubDate>Tue, 12 Oct 2010 07:02:30 +0000</pubDate>
		<dc:creator>月影鹏鹏</dc:creator>
				<category><![CDATA[linux 安全]]></category>
		<category><![CDATA[linux 系统]]></category>
		<category><![CDATA[服务器管理]]></category>

		<guid isPermaLink="false">http://jk.scanmon.com/?p=2770</guid>
		<description><![CDATA[某些路由器具有所谓的流量控制中具有“惩罚性限速”的功能：（例如）192.168.1.100在120秒内平均速率超过100KB/S，那么把该IP
列入惩罚队列，惩罚队列速率是40KB/S.
其实，利用iptables的也可以实现类似的功能。脚本如下：
iptables -t mangle -N LMT
iptables -t mangle -N LMT2
iptables -t mangle -I FORWARD -d 192.168.1.100 -m length &#8211;length 128: -j LMT
iptables -t mangle -A LMT -m recent &#8211;rdest &#8211;name badguy &#8211;rcheck &#8211;seconds 60 -j LMT2
iptables -t mangle -A LMT -m limit &#8211;limit 100/sec &#8211;limit-burst 5000 -j RETURN
iptables -t mangle -A LMT -m recent &#8211;rdest &#8211;name [...]]]></description>
		<wfw:commentRss>http://jk.aiwaly.com/wp/iptables-limit.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>postfix 清除邮件deferred队列(不可到达队列)</title>
		<link>http://jk.aiwaly.com/wp/postfix-clean-deferred.html</link>
		<comments>http://jk.aiwaly.com/wp/postfix-clean-deferred.html#comments</comments>
		<pubDate>Tue, 28 Sep 2010 14:28:44 +0000</pubDate>
		<dc:creator>月影鹏鹏</dc:creator>
				<category><![CDATA[服务器管理]]></category>
		<category><![CDATA[网站运维]]></category>

		<guid isPermaLink="false">http://jk.scanmon.com/?p=2765</guid>
		<description><![CDATA[postfix 是一个很强大有电子邮局软件,性能上比sendmail 快3倍,月影鹏鹏最近公司用电子邮件方式进行产品推广活动. 造成邮件服务器磁盘满,  发现是deferred目录不可到达的邮件过多.通过下面的方法可以清除不可到达的邮件队列

清除deferred队列


#cd /var/spool/postfix                          //切换至 Postfix Mail Queued 文件夹
#find defer deferred -type f                   //显示 Postfix Mail Queued  信件
#find defer deferred -type f -delete           //删除 Postfix Mail Queued  信件
删除邮件
#/../postsuper -d 7B94A3A810F
如要删除所有类似的邮件。
#mailq &#124;grep online@Webspan.net &#124; awk &#8217;{print $1}&#8217;  &#124; while read a; do /../postfix/sbin/postsuper -d $a; done
deferred邮件路径为/var/spool/postfix/defer/
/var/spool/postfix/deferred/
 据说可以直接删除。
启动服务器
]]></description>
		<wfw:commentRss>http://jk.aiwaly.com/wp/postfix-clean-deferred.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

