Articles of centos6

无法在Centos 6上使用xen运行libvirt。使用ioctl 3166208失败

根据主题。 Xen 4.2.1 libvirt 0.10.2-18.el6 Linux gatto.example.com 3.8.3-1.el6xen.x86_64 #1 SMP Sat Mar 16 15:16:57 EST 2013 x86_64 x86_64 x86_64 GNU/Linux 我遵循Xen维基上的指示,重build了libvirt RPMS。 但是,当我运行virsh时,我得到: [root@gatto SPECS]# virsh capabilities error: Failed to reconnect to the hypervisor error: no valid connection error: Unable to issue hypervisor ioctl 3166208: Function not implemented 另外在libvirtd.log中: 2013-03-18 09:45:29.738+0000: 8973: error : xenHypervisorDoV1Op:967 […]

在CentOS 6.4中设置防火墙

我需要询问有关安装某些软件包的一般性问题,以及需要在centOS中进行iptable调整的问题。 当我安装了Apache包,并把一个简单的testing页面放在/ var / www / html,它不想拉起来,直到我真的去了IPTables,并添加一行来打开端口80.我现在有同样的问题设置ftp&vsftpd。 他们虽然更固执 我已经将端口20和21添加到了iptables,我仍然被拒绝。 我停止了iptables,并能够获得FileZilla连接。 我的一个同事告诉我,我甚至不需要这样做。 只是安装软件包应该照顾所有的configuration设置。 他是对的吗? centOS6.4还是如此新,它有缺陷? 我已经回顾了一些关于设置vsftpd的文档,但是它们有所不同。 帮助赞赏。 这是我从iptables的输出: Chain INPUT (policy ACCEPT 0 packets, 0 bytes) pkts bytes target prot opt in out source destination 0 0 ACCEPT tcp — any any anywhere anywhere tcp dpt:ftp 0 0 ACCEPT tcp — any any anywhere anywhere tcp […]

禁止所有* azenv.php请求到我的服务器

我在centos6下使用apache 2.2,而且我最近有一些不需要的访问,我想禁止。 例如,我在我的error_log中有这个: [Sun Apr 14 01:06:29 2013] [error] [client 96.254.171.2] File does not exist:/ var / www / html / var,referer:http:** server5.cyberpods.net/azenv.php (我用http://replacehttp://,以防止人们点击链接,我不确定它是否安全) 我想我可以禁止任何以azenv.php结尾的东西。 应该是什么方法?

与Pacemaker资源解释的Corosync

我有以下资源: primitive WowzaMediaServer lsb:WowzaMediaServer \ op monitor interval="30s" timeout="60" \ op start interval="0" timeout="60" \ op stop interval="0" 我想了解什么是“监视间隔”和“超时”的意思。

将sendmailconfiguration为从外部路由所有邮件会引发错误

我有这个问题的sendmail本地域的邮件提供,而不是阅读mxlogging,但无法解决它。 也许有人可以告诉我,如果我错过了任何一步。 我有一个vps运行mydomain.com,我的drupal站点使用sendmail发送表单提交等邮件。但邮件到达其他域,但不是在VPS托pipe的mydomain.com的邮件ID。 这是因为sendmail被configuration为在本地为本域路由邮件,如日志条目所示。 Jun 18 06:38:09 i-8941-41970-VM sendmail[23728]: r5HAqCB4013371: to=<[email protected]>, ctladdr=<[email protected]$ 我跟在ServerFault上的一个post,编辑我的/etc/mail/sendmail.mc VERSIONID(`nullclient setup')dnl FEATURE(`nullclient',`mx.mydomain.com')dnl 然后我运行m4 /etc/mail/sendmail.mc> /etc/mail/sendmail.cf 不过邮件没有发送到mydomain.com。 / var / log / mailog中logging以下条目 Jun 18 07:42:21 i-8941-41970-VM sendmail[26265]: r5I6gCQq026263: to=<[email protected]>, ctladdr=<[email protected]> (48/48), delay=00:00:09, xdelay=00:00:09, mailer=esmtp, pri=121044, relay=mx1.mydomain.com. [64.92.120.50], dsn=4.0.0, stat=Deferred: 450 4.1.8 <[email protected]>: Sender address rejected: Domain not found

在同一台机器上的两个磁盘的戏剧性磁盘I / O性能差异

通过Citrix Xen虚拟化的小型机器(1核,1 GB RAM,CentOs 6.3)具有3个大小完全不同的虚拟磁盘。 > cat /etc/fstab (snippet) … /dev/mapper/vg_stagingnfs-lv_root / ext4 defaults 1 1 # on /dev/xvda /dev/disk/by-uuid/8048fd86-3aa3-4cdd-92fe-c19cc97d3c2e /opt/xxx/data/nexus ext4 defaults 0 0 /dev/disk/by-uuid/58f16c69-786e-47d0-93ae-d57fb0cbd2a9 /opt/xxx/data/nfs ext4 defaults 0 0 > mount (snippet) … /dev/mapper/vg_stagingnfs-lv_root on / type ext4 (rw) /dev/xvdb1 on /opt/xxx/data/nexus type ext4 (rw) /dev/xvdc1 on /opt/xxx/data/nfs type ext4 (rw) > df […]

使用mdadm创buildraid1数组会削减空间

我正在尝试在已部署的系统(CentOS 6.4)上创buildRAID1镜像磁盘。 我有两个磁盘:操作系统的源/ dev / sda和/ dev / sdb将是镜像。 这些磁盘作为虚拟磁盘从VMware ESXi连接,它们具有相同的大小和精简/精简configuration。 我正在学习本教程: http : //www.howtoforge.com/how-to-set-up-software-raid1-on-a-running-lvm-system-incl-grub-configuration-centos-5.3 系统信息: / dev / sda大小和分区: Disk /dev/sda: 96.6 GB, 96636764160 bytes 255 heads, 63 sectors/track, 11748 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes […]

我如何configuration我的服务器到虚拟主机?

我有一台运行Centos 6.4的IBM服务器,我只有一个公共IP。 我需要创build两个虚拟服务器(在虚拟硬件上运行的完整的客户操作系统),并将它们指向两个不同的站点。 我怎么能做到这一点? 我想用apache作为web服务器。

Centos:错误首次configurationDNS服务器,“options:command not found”

我从头开始configurationDNS服务器,这是我第一次这样做。 我已经使用yum install -y bind bind-utils来安装所需的工具。 然后,我编辑了/etc/sysconfig/named与以下选项(这是来自互联网的示例选项): # create new options { directory "/var/named"; allow-query { localhost; 10.1.2.0/24; }; allow-transfer { localhost; 10.1.2.0/24; }; recursion yes; }; controls { inet 127.0.0.1 allow { localhost; } keys { rndckey; }; }; view "internal" { match-clients { localhost; 10.1.2.0/24; }; zone "." IN { type hint; file […]

最大连接限制Apache服务器上的configuration – CentOS 6.4

我们在CentOs 6.4上运行Apache和CherryPy(Python)服务器。 昨天Apache服务器突然下降,而使用8080端口的CherryPy正常工作。 我们正在努力解决这个问题,但没有运气。 似乎最大的同时连接有什么问题,但是我们不知道如何解决这个问题,甚至不能解决真正的问题。 错误日志文件有这样的东西: [Sun Aug 04 04:47:16 2013] [notice] mod_python: Creating 4 session mutexes based on 10 max processes and 0 max threads. [Mon Aug 05 21:57:31 2013] [notice] mod_python: Creating 4 session mutexes based on 10 max processes and 0 max threads. [Mon Aug 05 21:58:46 2013] [error] server reached MaxClients […]