Articles of configuration

Windows 8configuration文件创buildvideo

我有一个软件,通过MSI在工作站上部署本地帐户,并为其创buildconfiguration文件。 在Windows 8之前的Windows版本中,首次使用此帐户时,它将完成所有初始configuration文件设置任务。 但是,在Windows 8中,这个屏幕被replace为一个欢迎/教程video,我不知道如何禁用。 这意味着用户第一次加载这个帐户,这是很less做,他们会被提交一个交互式的Windows教程(尴尬)。 有没有我们可以部署的GPO或registry设置,以防止显示此video? 我意识到它将不得不执行configuration文件设置任务,但在这个特定的用例中,最好是有一个请等待屏幕或什么的,而不是一个交互式教程。

nginx:在重写的位置块中指定自定义标题

我正在尝试为nginx中的特定location块设置一些标头。 我遇到的问题是这些location块包含rewrite语句,显然这似乎删除自定义标头。 在这个例子中,我有两个规则: 里面的/static文件应该已经expires max; (其中设置头Cache-Control: max-age=some huge value和Expires: some future date really far off ),并将其名称被重写为不包含/static 其他地方的文件应该有Cache-Control: public (没有max-age ) 这是我尝试的configuration: server { listen [::]:80; root /somepath; location /static { expires max; rewrite /static(.*) /whatever$1; } add_header Cache-Control public; } 并具有以下目录结构: /somepath /somepath/f1.txt /somepath/static/f2.txt 然后我们得到以下内容: f1.txt : Cache-Control: public ,no Expires标题 f2.txt : Cache-Control: public […]

如何安全地使用白名单和黑名单设置Postfix * _restrictionsconfiguration参数?

学习和尝试理解 上周我花了一些时间来了解Postfix可以做些什么来帮助减less垃圾邮件。 如果我正确理解了不同的*_restrictionsconfiguration参数控制何时完成检查,然后限制列表,如permit_mynetworks和check_client_access控制检查什么 。 那是对的吗? 如果我理解正确,检查按以下顺序进行: smtpd_client_restrictions smtpd_helo_restrictions smtpd_sender_restrictions smtpd_relay_restrictions smtpd_recipient_restrictions 那是对的吗? 如果我理解正确, smtpd_delay_reject不影响检查的顺序,但只影响拒绝发送 。 对? 我的服务器设置 smtpd_relay_restrictionsconfiguration参数似乎没有在我的Plesk 11服务器上设置。 我的Postfix版本是2.8.4。 我也注意到一些检查在不同的configuration参数下被多次列出。 他们是否需要多次列出? 这是我目前的configuration: smtpd_sender_restrictions = check_sender_access hash:/var/spool/postfix/plesk/blacklists permit_sasl_authenticated check_client_access pcre:/var/spool/postfix/plesk/non_auth.re smtpd_client_restrictions = permit_mynetworks smtpd_recipient_restrictions = permit_mynetworks check_client_access pcre:/var/spool/postfix/plesk/no_relay.re permit_sasl_authenticated reject_unauth_destination 如果我理解正确的话,那也是一样的: smtpd_sender_restrictions = smtpd_client_restrictions = smtpd_recipient_restrictions = permit_mynetworks check_sender_access hash:/var/spool/postfix/plesk/blacklists permit_sasl_authenticated check_client_access pcre:/var/spool/postfix/plesk/non_auth.re permit_mynetworks check_client_access […]

在Server 2008上漫游用户configuration文件问题

我以为我从2008年就清除了一个用户的个人资料,但是它一直在回来。 所以,我正在寻找清除Server 2008中的漫游configuration文件的最佳方式,但我一直无法find任何东西。 但是,我确实在这里看到post: 用户configuration文件不断加载TEMPconfiguration文件 我想为该post添加评论,但是因为与系统pipe理员没有关系而closures了。 但是,我认为这是相关的,因为我在Wndows 2008terminal服务器上处理了这个问题。 问题出在这里:我们有一位用户在Windows 2008login时遇到了“无法加载漫游configuration文件”types的错误。查看服务器,我们可以看到她在configuration文件列表中列出的tempconfiguration文件(列为“临时”而不是“漫游”configuration文件)。 当她login时,用户文件夹中存在一个名为C:\ Users \ Temp.DOMAIN的文件夹,但是一旦她注销,该文件夹就消失了。 当这个事情发生在2003年,我们将清除漫游configuration文件夹的内容并删除C:\ Documents and Settings中的临时文件夹。 事情是,2008年的行为有点不同。 Server 2008在漫游configuration文件文件夹共享:\ SERVER \ ProfileShare \ UserName.V2中创build了一个新的漫游configuration文件文件夹 本地configuration文件从“系统属性”中的configuration文件列表中消失,因此没有要清除的configuration文件 另外,当用户注销时,本地configuration文件夹C:\ Users \ Temp.DOMAIN不会保留在服务器上,所以我们无法像在Windows 2003中发生这种情况时那样将其删除 尽pipe如此,每当用户重新login时,frickin的Tempconfiguration文件总是会重新出现。 我的一个在2008年有更多经验的队友说,我应该检查registry以获得用户在这个密钥中的个人资料(用户通过SID列出):HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ WindowsNT \ CurrentVersion \ ProfileList 我在那里看到用户的SID,但以.BAK结尾。 我检查了几个其他服务器,她有相同的configuration文件错误:在所有情况下,她的SID以.BAK结束。 例如(xxxreplaceLONG SID):HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows NT […]

通过SNMP提供Dell的OpenManage 6.2信息

我已经在CentOS 5.4服务器上成功安装了OpenManage,并且能够通过端口1311上运行的Web界面使用OpenManage,但是我希望能够通过SNMP服务器公开这些信息。 我不太了解SNMP,所以configuration是反复试验的结果。 我试过按照OpenManage Server Administrator用户指南中的说明进行操作 。 我已经按照有关SNMPconfiguration的文档 ,但没有成功。 我创build了一个小的snmpd.conf文件: com2sec notConfigUser default public group notConfigGroup v1 notConfigUser group notConfigGroup v2c notConfigUser view systemview included .1.3.6.1.2.1.1 view systemview included .1.3.6.1.2.1.25.1.1 access notConfigGroup "" any noauth exact all all none view all included .1 rwcommunity public 10.200.26.50 syslocation "Somewhere" syscontact [email protected] pass .1.3.6.1.4.1.4413.4.1 /usr/bin/ucd5820stat smuxpeer .1.3.6.1.4.1.674.10892.1 […]

将C:\ Users移动到Windows Server 2008 Standard上的另一个分区

在Windows Server 2008标准服务器上,我有两个部分,分别命名为C:和P :。 我想将用户configuration文件目录C:\ Users移动到P:\ Users 可能吗? 它是否支持微软? 这可能导致升级等任何问题? 这里有没有人做过类似的事情?

ASP.NET自定义configuration节声明中断了IISpipe理器configuration编辑器

我有一个简单的.NET自定义configuration组件,允许我在ASP.NET 2.0(Web项目的目标.NET Framework 3.5)Web应用程序的web.config文件中指定自定义configuration组和部分: 在我的web.config我有以下声明: <configuration> <configSections> <sectionGroup name="SimpleConfigGroup" type="CustomSettingsLib.SimpleConfigGroup, CustomSettingsLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7a58d3af5d6768c9"> <section name="SimpleConfigSection" type="CustomSettingsLib.SimpleConfigSection, CustomSettingsLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7a58d3af5d6768c9"/> </sectionGroup> </configSections> <SimpleConfigGroup> <SimpleConfigSection MySetting="Hello World" /> </SimpleConfigGroup> </configuration> 有几个类可以访问驻留在名为CustomSettingsLib类库项目中的此自定义configuration部分: SimpleConfigGroup.cs: using System.Configuration; namespace CustomSettingsLib { public class SimpleConfigGroup : ConfigurationSectionGroup { [ConfigurationProperty("SimpleConfigSection")] public SimpleConfigSection SimpleConfigSection { get { return (SimpleConfigSection)this.Sections["SimpleConfigSection"]; } } } […]

16个内核12 GB内存专用的MySqlconfiguration

我有一个专用的16核12 GB的RAM的Mysql服务器,performance相当不好,因为我configuration了一个16 GB的服务器,我想这解释了为什么在世界上该网站现在需要超过500秒来呈现一个页面。 我使用memcachedcachingquires和使用InnoDB作为数据库引擎。 #8 core/16GB config stolen from http://groups.drupal.org/node/28830 back_log = 50 max_connect_errors = 9999999 table_cache = 5000 binlog_cache_size = 1M max_heap_table_size = 128M sort_buffer_size = 500K join_buffer_size = 500K thread_cache_size = 100 thread_concurrency = 16 query_cache_size = 512M query_cache_limit = 8M query_cache_min_res_unit = 2K thread_stack = 192K tmp_table_size = 384M long_query_time = 2 […]

PHP的date.timezone警告

我不断收到这个错误: 消息:date()[function.date]:依靠系统的时区设置是不安全的。 您需要使用date.timezone设置或date_default_timezone_set()函数。 如果您使用这些方法中的任何一种,并且仍然收到此警告,则很可能是拼写错误的时区标识符。 我们select'America / New_York'代替'EST / -5.0 / no DST' 我编辑了我的php.ini,并添加到它的结尾:date.timezone =“America / New_York” 保存php.ini并重新启动Apache后,我仍然得到错误。 我也尝试重新启动整个服务器无济于事。 我在CentOS 5.6上运行cPanel / WHM,如果这有什么区别的话。 另外,PHP处理程序是suphp。 我不知道接下来要尝试什么…有什么指导?

为Tomcat Web应用程序添加全局URI前缀

我正在设置一个反向代理configuration,其中path以'/ apps /'开头的所有请求都应该由Apache代理到Tomcat。 这个IMO有两个好处:它可以保留代理到URI空间的“/ apps /”部分,并且对所有的Tomcat应用程序只使用一个代理规则(例如,任何Tomcat应用程序的请求应该开始'/应用/')。 例如,对http:// mydomain / apps / my_app /的请求应该代理到http:// localhost:8082 / my_app / 。 请注意,Tomcat URI中没有“/ apps /”前缀:“my_app”位于$ {CATALINA_HOME} / webapps / my_app的常规位置。 我已经在Apache vhost.conf文件中使用以下代理规则实现了这一点: ProxyPreserveHost on ProxyPass /apps/ http://localhost:8082/ ProxyPassReverse /apps/ http://mydomain/ (注意:我使用了ProxyPreserveHost,因为我的Tomcat应用程序需要访问原始主机来生成进一步的链接)。 一切顺利,除了我的Tomcat应用程序的一部分生成的绝对链接。 鉴于上面的configuration,我的Tomcat应用程序将'看到'这个请求: http:// mydomain / my_app ,并因此生成链接不带'/ apps /'前缀应该触发这些链接的代理。 这花了我一些时间,但我现在明白,这是代理的重要特征,并且没有“标准”方式将原始请求的“/ apps /”前缀传递给代理应用程序。 因此,我开始研究另一种可能性,即为所有Tomcat应用程序定义全局前缀,并使用以下设置代理Tomcat应用程序: ProxyPreserveHost on ProxyPass /apps/ […]