服务器问题集锦,包括 Linux(Ubuntu, Centos,Debian等)和Windows Server服务器
有人能告诉我为什么我不能用下面的脚本备份我的数据库? 我可以运行该脚本,但它没有创build备份。 我使用SQL Server 2008 DECLARE @pathName NVARCHAR(512) SET @pathName = 'C:\Backup\MyBackup.bak' … EXEC sp_add_jobstep … @command = 'BACKUP DATABASE MyBackup TO DISK = @pathName WITH INIT', …
如何在iRedMail开源版本中为域创build全部电子邮件别名? 我知道这是可能的通过LDAP,并发现以下说明: http : //iredmail.org/wiki/index.php?title=Addition/OpenLDAP/Catch-all 问题是如何通过phpLDAPAdmin添加这个参数? 我select“在此创build新条目”并selectmailUsertypes。 然后在步骤2中,第一个问题是关于“RDN”,select框“selectRDN属性”。 我应该select什么作为RDN? 应该填写“创build对象”表单的哪些字段? 不幸的是,用户input是完全没有validation的,最终的错误不包含解释什么是错误的 另外当我尝试从iredmail维基phpldapadmin导入示例它给LDIF导入parsing错误说明:有效的DN行是必需的[] dn行是:dn:mail = @ mydomain.eu,ou =用户,domainName = mydomain.eu,o =域,dc = myserver,dc = pl
我有一个奇怪的networking问题与Windows 2008服务器R2,在KVM-Qemu主机下作为guest运行。 主机是CentOS 6.3 x86_64。 这是networking设置: # cat /etc/sysconfig/network-scripts/ifcfg-br0 DEVICE=br0 BOOTPROTO=static BROADCAST=xx.xx.xx.63 IPADDR=xx.xx.xx.4 NETMASK=255.255.255.192 NETWORK=xx.xx.xx.0 ONBOOT=yes TYPE=Bridge # cat /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 HWADDR=xx:xx:xx:xx:xx:xx ONBOOT=yes BRIDGE=br0 IPV6INIT=yes IPV6_AUTOCONF=yes # cat /etc/sysconfig/network NETWORKING=yes NETWORKING_IPV6=no HOSTNAME=my.hostname GATEWAY=xx.xx.xx.1 # cat /etc/sysctl net.ipv4.ip_forward = 1 # tried to set it to 0 without any changes net.ipv4.conf.default.rp_filter = 1 # tried to […]
我有一个1TB的外置硬盘驱动器,想要定期拍摄整个服务器的快照(也许每周一次)。 对于cronjob部分,我打算指向一个bash脚本: $ sudo crontab -e 但不知道我可以用什么工具在服务器上运行时创build磁盘映像。 在创build图像时是否必须closures? 我正在看Clonezilla,但看起来我必须先build立一个DRBL服务器,这似乎是我不想要的东西。 我也不知道运行备份需要多长时间,或者有什么办法只做增量更改。 我计划在那里存储500GB的数据。 我需要以任何特定的方式格式化外部硬盘驱动器吗? 有谁知道很好的教程/出发点? 提前致谢。
我们刚刚买了一台新的服务器。 我们希望我们的旧服务器响应https连接(由于ssl证书)和新的服务器来响应其余的。 新服务器准备就绪,但我不知道如何将请求redirect到新的服务器。 mydomain.com => old machine ip 10.10.10.41 => new machine 请求将通过mydomain.com来。 If it is https: respond else redirect to 10.10.10.41 我应该如何configurationApache的这种情况?
我一直在尝试这个设置好几个星期,但仍然无法使这个工作… Ubuntu 12.04 64位2 nic nic1:eth0:192.168.2.33 – 静态IP与互联网接入(连接到调制解调器) nic2:eth1:192.168.1.2 -static ip连接到局域网。 启用ip_forward在Ubuntu的盒子net_ip_forward = 1 在局域网的IP地址192.168.1.5指定的网关为192.168.1.2,并能ping通gateway.But不能ping公共地址。我缺less什么? 在路由器框上: route -n Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.2.1 0.0.0.0 UG 100 0 0 eth0 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 试着 ip route add 192.168.2.0/24 […]
我想监视我们的Tomcat应用程序服务器是否正在运行。 该应用程序不在内部托pipe,而是托pipe托pipe提供商。 我没有直接访问应用程序服务器,但我可以通过login服务器访问它们。 发送HTTP请求以查看Tomcat应用程序服务器是否启动的最简单方法是什么? 我已经有了一个监视器系统( sensu ),但是这个系统也没有直接访问Tomcat服务器。 它只能通过login服务器访问。 +—————+ +——+ Apache Server +——+ | +—————+ | | | | | +—v———–+ +———–v—+ | Tomcat Server | | Tomcat Server | | RFC1918 | | RFC1918 | +—————+ +—————+
我试图找出为什么我刚刚在Nginx中创build的子域没有使用它的configuration文件中指定的根文件夹。 以下是子域zeta的configuration文件。 server { listen 80; root /var/www/zeta; server_name zeto.mydomain.com; error_log /var/log/nginx/subdomains_error.log; error_page 404 /404.html; if ($subdomain = ""){ set $subdomain something; rewrite /.* /not_found; } location / { index index.php index.html index.htm; access_log /var/log/nginx/subdomains_access.log; location / { include fastcgi_params; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root/index.php; access_log /var/log/nginx/subdomains_php_access.log; } location /public { } location […]
我有一个在Fedora上运行的主DNS服务器(ns1.mydomain.com)和两个辅助DNS服务器(ns2和ns3)。 在我的Web服务器上进行的DNS更改首先进入主名称服务器,然后传播到辅助服务器。 在Web服务器上的域上进行DNS更改之后,当我执行以下操作时,无法在ns1上看到新的DNS信息: dig @ns1 A blahblah.com 然后我去了名称服务器上的主logging(使用named)在/var/named/run-root/var/named/masters ,我看到Alogging已经被适当的更新了。 拖拽日志/var/log/messages不会显示任何错误。 可能是什么问题?
我最近在Augeas组装了一个镜头,现在它不能按照要求工作。 我的文件包含几个使用以下语法的引用: Value1 = KEY 32 OR\ KEY 33 OR\ …. 我如何表示反斜线换行符组合并将其视为同一个值的一部分? 编辑 – 我运行的版本.10.0 … let comment = IniFile.comment IniFile.comment_re IniFile.comment_default let sep = IniFile.sep IniFile.sep_re IniFile.sep_default let empty = IniFile.empty let setting = IniFile.entry_re let title = IniFile.indented_title_label "target" IniFile.record_label_re let entry = [ key IniFile.entry_re . sep . IniFile.sto_to_comment . (comment|IniFile.eol) ] […]