sharepoint保存_SharePoint 2010-更改诊断日志存储位置

sharepoint保存

Microsoft SharePoint Foundation 2010 and Microsoft SharePoint Server 2010 do not offer the option to configure the location of the SharePoint diagnostic trace log files during installation.  This can, however, be configured through Central Administration or through a simple PowerShell command after installation.  

Microsoft SharePoint Foundation 2010和Microsoft SharePoint Server 2010不提供用于在安装过程中配置SharePoint诊断跟踪日志文件的位置的选项。 但是,可以在安装后通过管理中心或通过简单的PowerShell命令进行配置。

With the default SharePoint configuration, the SharePoint diagnostic trace logs are stored in the 14 HIVE on the local hard drive of each SharePoint server in a SharePoint farm (C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS).  If you are not going to store the diagnostic trace log files on a different drive, it is recommended to leave the default location.  However, you may wish to store them on a different local hard drive for storage space or other considerations.  

使用默认的SharePoint配置,SharePoint诊断跟踪日志存储在SharePoint场中每个SharePoint服务器的本地硬盘驱动器上的14个HIVE中(C:\ Program Files \ Common Files \ Microsoft Shared \ Web服务器扩展\ 14 \ LOGS )。 如果您不打算将诊断跟踪日志文件存储在其他驱动器上,建议保留默认位置。 但是,出于存储空间或其他考虑,您可能希望将它们存储在其他本地硬盘驱动器上。

When deciding where to place the SharePoint diagnostic trace log files, it is important to remember that they must be stored on a local hard drive.  SharePoint does not support storing the diagnostic trace log files on network storage.  Also note that the specified directory location must exist in the same place on all SharePoint servers in the farm.

在决定将SharePoint诊断跟踪日志文件放置在何处时,务必记住它们必须存储在本地硬盘驱动器上。 SharePoint不支持将诊断跟踪日志文件存储在网络存储中。 还要注意,指定的目录位置必须在服务器场中所有SharePoint服务器上的同一位置。

To configure the SharePoint diagnostic trace log location through Central Administration:

要通过管理中心配置SharePoint诊断跟踪日志位置,请执行以下操作:

1个 (1)

打开要为其更改存储位置的SharePoint服务器场的管理中心

2 (2)

在管理中心中,浏览到“监视”,然后在“报告”下配置“诊断日志记录”

3 (3)

在“跟踪日志”下指定存储位置的路径

4 (4)

选择确定

To configure the SharePoint diagnostic trace log location through PowerShell:

要通过PowerShell配置SharePoint诊断跟踪日志位置,请执行以下操作:

1个 (1)

在SharePoint服务器场中的一台服务器上打开SharePoint 2010命令行管理程序(PowerShell)

2 (2)

输入以下PowerShell命令,指定日志位置:
Set-SPDiagnosticConfig –LogLocation PATH_TO_LOG_LOCATION
Set-SPDiagnosticConfig –LogLocation D:\SharePointLogs

Either method produces the same result and is only required to be once per SharePoint farm, regardless of how many SharePoint servers are in the farm.  You do, however, need to ensure the configured location exists on each server in the SharePoint farm.  After configuring using either method, the change will be reflected immediately.

两种方法均会产生相同的结果,并且每个场仅需要一次,无论场中有多少个SharePoint服务器。 但是,您需要确保SharePoint场中的每台服务器上都存在配置的位置。 使用任何一种方法进行配置后,更改将立即反映出来。

翻译自: https://www.experts-exchange.com/articles/6309/SharePoint-2010-Change-Diagnostic-Log-Storage-Location.html

sharepoint保存

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值