Articles of centos7

百胜:php55w-与php-common-5.4常见冲突

我试图在命令行上使用yum install php-mysqlnd.x86_64在CentOS机器上安装mysqli ,但是我不断收到消息: Error: php55w-common conflicts with php-common-5.4.16-36.el7_1.x86_64 You could try using –skip-broken to work around the problem You could try running: rpm -Va –nofiles –nodigest build议的解决方法都不能解决问题。 以下是我尝试安装时显示的全文: sudo yum install php-mysqlnd.x86_64 Loaded plugins: fastestmirror, replace Loading mirror speeds from cached hostfile * base: mirror.acsnet.com * extras: mirrors.chkhosting.com * rpmforge: mirror.webnx.com * updates: mirror.netdepot.com […]

使用tcsh时,openldap用户无法login

我将不胜感激在以下问题的任何帮助: 我有一个openladp(2.3.39)服务器(Fedora 8),它从其他ldap客户端(各种版本的Fedora)authentication用户。 在尝试升级整个基础架构时,使用tcsh(作为默认shell)的ldap用户无法login运行CentOS 7的新客户端。相反,ldap用户使用bash以及本地用户(不pipe其默认shell)login没有问题。 Ldap tcsh用户既不能从控制台也不能从sshlogin。 从控制台,我收到的消息是: pam_unix(login:auth) authentication failure pam_unix(login:session) session opened for user 并从ssh(没有失败部分): pam_unix(sshd:session) session opened for user 但是,用户永远不会得到一个shell提示符,表明login挂起。 我不知道这个问题是否与pam有关,但在我的/etc/pam.d/system-auth-ac下面find,因为它是由system-authconfig自动创build的: #%PAM-1.0 # This file is auto-generated. # User changes will be destroyed the next time authconfig is run. auth required pam_env.so auth sufficient pam_unix.so nullok try_first_pass auth requisite pam_succeed_if.so uid >= […]

XenServer 6.2 SP1中的CentOS 7.0作为DomU; 不能与PV驱动程序一起运行?

看来,CentOS 7不能与XenServer 6.2的半虚拟化驱动程序一起工作 我已经用xs-tools软件包安装了一个PVHVM guest虚拟机,但驱动程序无法在bootime连接。 我在Domus的dmesg上得到这个消息: [ 0.000000] Xen Platform: blacklisted by host 当我期望收到那些: [ 0.000000] Netfront and the Xen platform PCI driver have been compiled for this kernel: unplug emulated NICs. [ 0.000000] Blkfront and the Xen platform PCI driver have been compiled for this kernel: unplug emulated disks. 并在Dom0中得到相应的消息: Jul 11 15:39:03 xenserver1 […]

CentOS最小安装 – 端口被阻塞?

我正尝试连接到一个新的CentOS 7服务器做一些性能testing。 这是一个最小的安装,在这一点上唯一的东西安装/configuration是testingRAID性能,Java 1.7和Wowza媒体服务器,其中有一个Web服务端口8088上运行。我能SSH / Sftp到服务器所有我想要,但不能从我的Windows电脑连接到端口8088。 这两台电脑在同一个networking上,交换机的端口是打开的,因为我可以绑定到端口8088上的Ubuntu服务器上。使用CentOS服务器上的lynx命令行浏览器,我可以使用localhost ,或者它也是IP地址。 在iptables或/etc/hosts.deny中没有configuration我的规则。 我已经看了所有的提示,我可以想到使用netstat打开什么,或者nmap ,不知道发生了什么。 我在这里错过了什么? 你可以看到端口8088在这里打开: [root@localhost sysconfig]# netstat -tanp | grep LISTEN tcp 2 0 127.0.0.1:25 0.0.0.0:* LISTEN 2490/master tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1694/sshd tcp 0 0 0.0.0.0:8088 0.0.0.0:* LISTEN 1781/java tcp6 0 0 ::1:25 :::* LISTEN 2490/master tcp6 0 0 :::22 :::* LISTEN 1694/sshd […]

Centos 7服务器无法看到磁盘arrays磁盘

上下文 我有一个新的服务器与CentOS 7,通过光纤通道连接到磁盘arrays。 我想在服务器的文件系统上安装磁盘arrays的磁盘,然后在其上设置一个NFS服务器,使这个存储可用于群集中的所有节点(服务器和磁盘arrays都是一个小群集的一部分,pipe理)。 服务器:公牛R423 磁盘arrays: DDN S2A6620(DirectDatanetworking) 我只使用磁盘arrays的两个控制器之一。 以下是命令lspci输出的摘录: # lspci 85:00.0 Fibre Channel: Emulex Corporation Saturn-X: LightPulse Fibre Channel Host Adapter (rev 03) 85:00.1 Fibre Channel: Emulex Corporation Saturn-X: LightPulse Fibre Channel Host Adapter (rev 03) 所以我认为我的服务器能很好的检测到FC HBA(光纤通道主机总线适配器),它似乎来自于Emulex品牌。 磁盘arrays与红帽5&6服务器兼容,所以我不确定它是否可以与CentOS 7服务器一起工作,但我决定尝试一下。 我已经按照磁盘arrays的用户指南,我已经能够从服务器远程连接到它,并且我已经完成了所有必要的configuration(创build2个磁盘的RAID 1存储池,创build一个虚拟磁盘该池将磁盘呈现给服务器,使用LUN号将虚拟磁盘呈现给主机…)。 但是用户指南并没有提到服务器端的任何信息。 磁盘arraysconfiguration 有关如何在磁盘arrays一侧执行configuration的一些详细信息。 磁盘arrays操作系统是SFA OS v1.3.0.8。 我find的最近的手册是这个 (v1.4.0)。 基本上这是我遵循的步骤(对应于文档的第3.6.5节,以及以下): 清理磁盘arrays $ […]

等待系统单机服务完成

我正在做一些服务器供应,我需要在安装后运行脚本,因为它需要系统function齐全,包括服务。 所以我不能把它放在我的kickstart文件的%post部分里面。 相反,我已经创build了一个systemd服务,禁用它自己作为最后一件事情。 [Unit] Description=Prepare the system after installation [Service] Type=oneshot ExecStart=/usr/bin/prepare-system [Install] WantedBy=multi-user.target 问题是,在第一次启动时,我到达login提示符,甚至可以login并开始使用系统,而“第一启动脚本”仍在运行。 这给pipe理员设置系统的幻觉系统完成,当它不是。 我反而希望服务延迟启动,最好显示一个消息,如“系统正在准备中,请稍候…”,并等待,直到脚本完成。

如何修复所有问号作为权限的目录

我正在使用CentOS 7,并试图列出一个目录的内容,但不能。 当我尝试列出内容时,我得到以下输出: [entpnerd@myhost ~]$ ls -ali /data/sharedlogs/otherhost/ ls: cannot access /data/sharedlogs/otherhost/vcs: Not a directory total 12 2361284 drwxr-xr-x 4 root root 4096 Sep 26 14:40 . 2359297 drwxr-xr-x 6 root root 4096 Apr 26 17:41 .. 2362573 drwxr-xr-x 2 root root 4096 Mar 22 2017 tkr ? d????????? ? ? ? ? ? vcs […]

rsync(和scp)失败,XFS设备上没有剩余空间

我有一个全新安装的CentOS 7,主要分区为400GB格式的XFS。 目前使用的GB不足一个。 我试图rsync 65GB的文件,复制开始14GB和26GB之间的失败。 (我已经尝试过多次了。) 我有足够的空间: # df -h Filesystem Size Used Avail Use% Mounted on /dev/xvda1 400G 919M 400G 1% / devtmpfs 7.3G 0 7.3G 0% /dev tmpfs 7.2G 0 7.2G 0% /dev/shm tmpfs 7.2G 41M 7.2G 1% /run tmpfs 7.2G 0 7.2G 0% /sys/fs/cgroup /dev/xvdb 37G 49M 35G 1% /mnt 我有很多的inode: # […]

为什么Uchiwa无法在CentOS7上监控数据中心?

这篇文章与使用YUM的安装Sensu相结合,用于安装,configuration和启动Sensu及相关服务: sudo yum install -y erlang && \ sudo rpm -Uvh http://www.rabbitmq.com/releases/rabbitmq-server/v3.5.0/rabbitmq-server-3.5.0-1.noarch.rpm && \ sudo yum install -y redis && \ echo '[sensu] name=sensu baseurl=http://sensu.global.ssl.fastly.net/yum/$basearch/ gpgcheck=0 enabled=1' | sudo tee /etc/yum.repos.d/sensu.repo && \ sudo yum install -y sensu && \ sudo yum install -y uchiwa && \ for s in rabbitmq-server redis.service sensu-server sensu-api uchiwa; […]

警告:连接#n到子系统private / proxymap:连接被拒绝

谁能告诉我什么是后缀告诉我这个错误? Feb 9 13:08:59 hostname postfix/postfix-script[23077]: starting the Postfix mail system Feb 9 13:08:59 hostname postfix/master[23079]: daemon started — version 2.10.1, configuration /etc/postfix Feb 9 13:11:32 hostname postfix/smtpd[23180]: warning: connect #1 to subsystem private/proxymap: Connection refused Feb 9 13:11:42 hostname postfix/smtpd[23180]: warning: connect #2 to subsystem private/proxymap: Connection refused Feb 9 13:11:52 hostname postfix/smtpd[23180]: warning: […]