服务器问题集锦,包括 Linux(Ubuntu, Centos,Debian等)和Windows Server服务器
我在一个slicehost slice上运行一个RoR / MySQL / Apache堆栈。 我们在接下来的几个星期内将会发布testing版,我们会关注这个分片的可扩展性,以防万一。 我一直在寻找像林德,风暴点播,EC2和rackspace产品。 我不太了解数据库如何在“云中”工作吗? 还是我把其他地方呢? 我已经环顾了一下,想不到最好的路线。
我正在努力使MPM工人 我在/etc/sysconfig/httpd取消了#HTTPD=/usr/sbin/httpd.worker并重新启动了Apache,但是我收到了这些错误: 启动httpd:httpd.worker: /etc/httpd/conf/httpd.conf第222行的语法错误/etc/httpd/conf/httpd.conf第9行的语法错误:无法加载/etc/httpd/modules/libphp5-zts.so到服务器: /etc/httpd/modules/libphp5-zts.so :无法打开共享对象文件:没有这样的文件或目录 任何想法我做错了什么?
这是我在iptables防火墙脚本中指定的默认规则: iptables -F iptables -X iptables -t nat -F iptables -t nat -X iptables -P INPUT ACCEPT iptables -P OUTPUT ACCEPT iptables -P FORWARD ACCEPT 我有很多接口和许多networking和NATing的stream量应该转发,所以我已经作为默认规则的FORWARD ACCEPT 。 接下来我有这个: iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -o eth0 -j SNAT –to-source 2.4.5.6 最后我有这个: iptables -A INPUT -i eth0 -j DROP 这个DROP规则应该只丢弃指向网关主机的数据包。 无论通过eth0进入的stream量都不会受到影响。 我的问题是,如果我有一个接口的INPUT DROP规则,是否会影响同一接口(或全局FORWARD ACCEPT链) […]
我正在尝试通过通知阅读Windows安全事件日志。 下面是示例代码行,但是当我用标准用户在Windows 7上运行它时,我得到一个exception: EventLog _eventlog = new EventLog("Security"); //Monitor on the Security events _eventlog.EntryWritten += new EntryWrittenEventHandler(OnSecurityEventLogWritten); _eventlog.EnableRisingEvents = True; // I get an exception at this line with a Windows 7 standard user 我收到exception说Requested Registry is not allowed 。 我试图将用户添加到事件日志读取器组,但是没有帮助。 请注意,当我使用本地pipe理员权限运行此应用程序时,它工作正常。 我的要求是获取Windows安全事件和为标准login用户编写的通知。
我们在VMware基础架构上运行Exchange 2010,并使用ESX许可证与Backup Exec 2010进行备份。 尽pipe我们正在备份整个VM guest虚拟机镜像,但我仍然相信,Backup Exec将允许从这个虚拟机映像中对个别邮箱项目进行细粒度的恢复。 否则,我们必须备份获取所有邮箱数据文件的VMDK,并对信息存储进行传统备份,实质上复制了备份的数据量。 所以真正的问题是,我是否能够从ESX guest虚拟机备份中还原单个邮箱(甚至是邮件)?
如何使用url重写,更改url http://www.mydomain.com/this-is-a-new-article 至 http://www.mydomain.com/this_is_a_new_article ? 使用: # RewriteRule ^(.+?)-(.+?)$ (.+?)_(.+?) [R=301,L,NE] ?
我有一个服务器,主机mydomain.com。 然后我有一个服务器,主机subdomain1.mydomain.com。 在subdomain1.mydomain.com服务器上,我如何制作子域名? 例如,我想创buildsubdomain2.subdomain1.mydomain.com 我有我的subdomain1.mydomain.com网站在/ home / USER / public_html,它工作得很好。 但是,当我尝试创buildsubdomain2.subdomain1.mydomain.com,它说服务器没有在浏览器中find。 我在/ etc / hosts和/etc/apache2/sites-available/subdomain2.subdomain1.mydomain.com尝试了很多configuration,没有任何运气 我可以得到一些详细的说明吗? 我到处看,每个地方都告诉你不同的,没有运气。 Ubuntu的服务器11.10带灯栈选项
所以这是我的问题…我有两个站点托pipe在一台机器上使用Apache的虚拟主机。 我想使用适当的电子邮件地址从两个不同的网站(domain.com和domain2.com)发送电子邮件。 我目前在php.ini中有这个值: sendmail_path = /usr/sbin/sendmail -t -i [email protected] 但是,当我尝试从domain2.com上的脚本发送电子邮件时,它显然是与一个From: [email protected]标题交付。 Apache不允许你在<VirtualHost>指令中设置这样的规则: php_admin_value sendmail_path "/usr/sbin/sendmail -t -i [email protected]" 那么完成这个的最好方法是什么? 我已经尝试从domain2.com的<VirtualHost>指令中设置php_admin_value mail.force_extra_parameters "[email protected]" ,但所有电子邮件仍然来自domain.com。 有任何想法吗?
我正在我的本地主机上使用curltestingredirect。 当我运行这个命令时: $curl "test.test.com/landing/0192" 我得到这个输出: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>302 Found</title> </head><body> <h1>Found</h1> <p>The document has moved <a href="http://redirect.redirect.com/landing?xid=0192&tt=192">here</a>.</p> <hr> <address>Apache/2.2.17 (Fedora) Server at spencervm.adverplex.com Port 80</address> </body></html> 现在,如果我运行http://redirect.redirect.com/landing?xid=0192&tt=192"我到达了我想要的目的地,所以基本上我想要做的就是closures302错误并redirect到它的页面应该redirect到。
我将使用sasl从中央LDAP服务器执行内置authentication的Subversion迁移。 作为更改的一部分,用户名将被修改,从username到[email protected] 。 为了简单起见,我想更新作者的所有修订,以符合相同的命名scheme。 我明白,可以通过允许revprop更改和使用svn propset propset更改svn:author属性来更改svn:author : svn propset –revprop -r revision_number svn:author your_username 不过,我想使用脚本来完成所有修订。 是否有这样一个脚本已经可用,根据预设的模式,为存储库中的所有修订版本转换svn:author属性?