我用centos6重新安装了centos5,现在我不能用hpacuclipipe理我的MSA1000了。 我可以看到/ dev / sdX数组,但hpacucli不是cpqacuxe在MSA1000上看到的控制器。 我仍然可以启动到centos5并在那里看到控制器,所以它工作正常。 #### CENTOS 6 $ rpm -qa hp* hpacucli-8.60-8.0.i386 hponcfg-3.1.1-0.noarch hpsmh-6.2.1-14.x86_64 hp-health-8.6.2.2-14.x86_64 $ hpacucli ctrl all show status Smart Array 6i in Slot 0 (Embedded) Controller Status: OK Cache Status: OK $ dmesg qla2xxx [0000:00:00.0]-0005: QLogic Fibre Channel HBA Driver: 8.04.00.08.06.4-k. qla2xxx 0000:07:01.0: PCI INT A -> GSI 48 (level, […]
我刚刚在CentOS上完成了一个全新安装的Amazon Linux AMI版本2013.03,并按如下方式运行VirtualMIn wget http://software.virtualmin.com/gpl/scripts/install.sh sudo sh install.sh 但是我得到一个错误 无法检测操作系统 cat /etc/issue Amazon Linux AMI release 2013.03 Kernel \r on an \m
我运行8-10个基于EC2的Web服务器,所以我的经验是很多小时,但仅限于CentOS; 特别是亚马逊的分销。 我正在使用yum安装Apache,因此获得了Amazon的默认编译Apache。 我想要使用mod_rewrite实现从非www(bare / root)域的规范redirect到www.domain.com的search引擎优化,但是我的.htaccess文件一致地忽略了。 我的故障排除步骤(下面概述)使我相信这是亚马逊构buildApache的特定事件。 testing用例 启动EC2实例,例如Amazon Linux AMI 2013.03.1 SSH到服务器 运行命令: $ sudo yum install httpd $ sudo apachectl start $ sudo vi /etc/httpd/conf/httpd.conf $ sudo apachectl restart $ sudo vi /var/www/html/.htaccess 在httpd.conf中,我更改了以下内容,在DOCROOT部分/范围中: AllowOverride All 在.htaccess中,补充说: (编辑,我后来添加了RewriteEngine On ) RewriteCond %{HTTP_HOST} ^domain\.com$ [NC] RewriteRule ^/(.*) http://www.domain.com/$1 [R=301,L] .htaccess上的权限是正确的,AFAI可以告诉: $ ls -al /var/www/html/.htaccess […]
我的公司目前有一个内部的Linux服务器(Centos 5.7),运行一个内部网站(PHP / Apache)的内部工作。 有一个问题是创build打印作业。 我们拥有从HP LaserJet到STAR标签打印机的各种打印机。 pipe理这些股票的最好方法是什么? 我读过关于创build打印机服务器的地方? 笔记 不是所有的打印机都有能力联网 – 我在linux(wkhtmltopdf)find一个程序,将HTML / CSS转换成PDF,然后使用LPR将这些打印作业发送给打印机。 目前 我们目前使用两种方法。 我们使用名为Connectship(在Windows Server 2008上)的软件来控制我们出货的软件包。 它打印UPS的标签贴纸,但我们也发现它能够将打印作业发送到该服务器上共享的任何打印机。 他们的XML格式是非常糟糕的,创build常规的打印作业是困难的,因为它不是在HTML / CSS中,而是以他们创build的一些奇怪的格式。 此外,在这台服务器上pipe理一堆打印机似乎有时很笨重和不可靠 我们将HTML / CSS转换为PDF并使用LPR进行打印。 几个星期前,我testing了这个,但只有一个HP LaserJet(Worked Great btw)。 Linux可以打印到任何打印机就像Windows? 我不熟悉Linux如何处理驱动程序,所以我不确定在我的Linux服务器上是否会有任何缺陷来处理打印。 我通过GUI手动添加了打印机,但我不确定创build专用于共享打印机的服务器是否更有意义(如果这是人们的操作?)…
当我在LDAP中添加一些条目时遇到问题 slapadd -l /etc/openldap/root.ldif -f slapd.conf -d 10 slapadd -l /etc/openldap/people.ldif -f slapd.conf -d 10 slapadd -l /etc/openldap/testuser.ldif -f slapd.conf -d 10 这里是错误 不能统计configuration文件“slapd.conf”:没有这样的文件或目录(2)slapadd:坏的configuration文件! 和 /etc/openldap/slapd.conf include /etc/openldap/schema/core.schema include /etc/openldap/schema/cosine.schema include /etc/openldap/schema/inetorgperson.schema include /etc/openldap/schema/nis.schema include /etc/openldap/schema/eduperson.schema include /etc/openldap/schema/schac.schema include /etc/openldap/schema/iris.schema allow bind_v2 pidfile /var/run/openldap/slapd.pid argsfile /var/run/openldap/slapd.args database bdb suffix "dc=example,dc=com" rootdn "cn=admin,dc=example,dc=com" rootpw <secretpassword> # […]
我想使用iptables使CentOS成为端口转发NAT机器。 这是我第一次尝试这个,我想我可能需要一点帮助。 这是我试图实现的configuration。 我试图通过端口5500上的CentOS机器build立一个远程桌面连接,并让CentOS连接到端口3389上的服务器。 192.168.21.11是通过连接到端口5500上的192.168.21.10(CentOS)连接到192.168.9.120上的端口3389的客户端。 CentOS eth0是192.168.9.20/24 CentOS eth1是192.168.21.10/24 我到目前为止所尝试的是: 禁用SELINUX 在/etc/sysctl.conf中启用IPv4转发 /etc/sysctl.conf net.ipv4.ip_forward = 1 运行下面的iptables命令 iptables -t nat -A PREROUTING -p tcp -d 192.168.21.10 –dport 5500 -j DNAT –to 192.168.9.120:3389 iptables -A INPUT -i eth1 -p tcp –dport 5500 -m state –state NEW,ESTABLISHED -j ACCEPT iptables -A OUTPUT -o eth0 -p tcp –sport […]
我正在testing这里logging的RedHat群集pipe理工具: https : //access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Cluster_Administration/index.html 我有两台运行CentOS 6.4的虚拟机。 我一直在testing故障转移场景; 重新启动主机,并正常closures主机成功将资源迁移到辅助机器(如DRBD,Tomcat,MySQL,Apache)。 但是,我想模拟一个完整的电源故障,或强制关机。 在XenCenter客户端中,我强制closures主要计算机,并在辅助计算机上观察日志。 简而言之,资源似乎永远不会迁移到次要的地方,而集群pipe理界面似乎认为服务仍在主要运行。 以下是辅助机器日志的输出: http : //pastebin.com/gsi6uBct 它主要是抱怨击剑。 但我不明白:如果主节点完全死亡,没有什么可以篱笆的。 想法?
当我尝试yum install phpmyadmin然后我得到这个错误 Error: Package: php-gd-5.3.3-22.el6.x86_64 (base) Requires: php-common(x86-64) = 5.3.3-22.el6 Installed: php-common-5.5.0-1.el6.remi.x86_64 (@remi-test) php-common(x86-64) = 5.5.0-1.el6.remi Available: php-common-5.3.3-22.el6.x86_64 (base) php-common(x86-64) = 5.3.3-22.el6 You could try using –skip-broken to work around the problem ** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows: yum-3.2.29-40.el6.centos.noarch has missing requires of yum-plugin-fastestmirror 我需要做什么来解决这个错误 更新: 然后我得到这个 Repository epel is […]
我使用yum在CentOS上安装并configuration了nagios 我在Web界面上看到“ It appears as though you do not have permission to view information for any of the hosts you requested… ”。 我已经创build了passwd文件,并检查了nagiosadmin在cgi.cfg文件中有权限。 但是,在Web界面上,即使我以nagiosadmin身份login,页面显示“ Logged in as $REDIRECT_REMOTE_USER=login”。 有任何想法吗? [编辑]我刚从源码编译无效[/编辑] [EDIT2] ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin" <Directory "/usr/local/nagios/sbin"> # SSLRequireSSL Options ExecCGI AllowOverride None Order allow,deny Allow from all # Order deny,allow # Deny from all # […]
我目前正在运行CentOS服务器(最新版本),并遵循OpenEMM安装指南安装OpenEMM 2013.我更新了我的Java和Tomcat。 完成安装后,我使用以下命令: su openemm /home/openemm/bin/openemm.sh start 我收到两个失败的消息: Starting sendmails: listener Starting sendmail: 451 4.0.0 can not chdir(/var/spool/mqueue/): Permission denied Program mode requires special privileges, eg, root or TrustedUser. 和 Starting sm-client: touch : cannot touch '/var/run/sm-client.pid': Permission denied chown: cannot access '/var/run/sm-client.pid': No such file or directory lstat(/var/run/sm-client.pid) failed: no such file or directory […]