我有一些奇怪的行为在rhel 6.5机器上运行ntpd。 这台机器作为kvm主机(也是rhel)上的虚拟机运行,并且该主机具有正确的时间(几毫秒内)以及保持正确的ntpd。 我注意到,在我做了一个ntpdate -u之后,时间最终会变好,并且通常呆在那里。 然而,红帽推荐在虚拟客户端上运行ntpd。 所以我开始ntpd。 现在,我们大部分的主机都能正常工作,除了less数几个看到奇怪行为的地方外。 在ntpd启动时,在这些主机上,时间开始在这些系统上滞后约0.5 ms / sec(或者最大ntpd的500 ppm将会使时间缩短)。 而这甚至在ntpd已经获得同行之前,它可以同步… 停止ntpd停止漂stream的时间。 启动它,时间又开始漂移了。 换句话说,我似乎有一个ntpd,在某些系统上(这使我感到困惑,因为它们都是完全相同的)或多或less地反映了它应该做的事情。 我的ntp.conf非常简单: tinker panic 0 # Permit time synchronization with our time source, but do not' # permit the source to query or modify the service on this system.' restrict default kod nomodify notrap nopeer noquery restrict -6 default […]
我试图安装使用YUM安装shibboleth SP包(百胜安装shibboleth)。 安装时出现以下错误。 Downloading Packages: http://download.opensuse.org/repositories/security%3A/shibboleth/CentOS_CentOS-6/x86_64/libcurl- openssl-7.33.0-1.1.x86_64.rpm: [Errno 14] PYCURL ERROR 22 – "The requested URL returned error: 404 Not Found" Trying other mirror. http://download.opensuse.org/repositories/security%3A/shibboleth/CentOS_CentOS- 6/x86_64/liblog4shib1-1.0.8-1.1.x86_64.rpm: [Errno 14] PYCURL ERROR 22 – "The requested URL returned error: 404 Not Found" Trying other mirror. http://download.opensuse.org/repositories/security%3A/shibboleth/CentOS_CentOS-6/x86_64/libsaml8-2.5.3-1.1.x86_64.rpm: [Errno 14] PYCURL ERROR 22 – "The requested URL returned error: […]
我想用R来进行一些日志文件信息的统计分析,但是发现即使是“有限的”R核心RPM也有许多依赖项还没有安装。 我不想为外设需要安装这么多的软件包。 在RHEL 6上进行简单的统计分析是否有轻量级的select? 我有一个R脚本,在stdin上接受一大组值 – 每行一个值 – 并打印出最小值,最大值,平均值,中位数,第95百分位和标准偏差。 对于更多的上下文,我使用grep和awk在我们的web服务器日志文件中查找特定path的GET请求,获取响应时间并计算上面列出的度量,以便衡量对Web应用程序的更改的性能的影响。 我不需要任何绘图function,只需简单的计算。 有什么我忽略了吗?
我一直在努力在几台RHEL 6服务器上configuration多path。 通过我自己的错误(黑名单错误input),我已经在根分区上configuration了多path,但是我似乎无法解开这个问题。 根分区不在SAN上。 这是一个本地RAID 1驱动器集。 任何帮助,将不胜感激。 采取的步骤: 尝试从基于UUID的path更改为fstab(sda1等)中的硬path。 这导致无法启动,并在救援模式。 但是,我没有改变grub.conf,所以我想知道是否可以这样做? 试图完全消除多path。 必须在救援模式下启动,开始联网并重新安装。 当然尝试了“多path-F”,但根目前正在使用。 由于这是一个远程系统,加载光盘并不是那么容易,但是如果这是唯一的select,我可以pipe理完成它。
如何configurationPHP的命令行版本以在Redhat系统上具有不同的设置? 在基于Debian的系统上,php有一个单独的命令行版本configuration文件: /etc/php5/cli 。 在Redhat上,/ /etc/php.ini和/etc/php.ini有各种额外的ini文件,但是命令行版本没有单独的configuration文件,即使安装了php-cli软件包。
我遵循本指南将RHEL6机器上/ etc / passwd和/ etc / group中的现有用户迁移到新的外部OpenLDAP服务器。 我正在尝试应用此文件: # cat people_group.ldif dn: ou=People, dc=my_domain, dc=com ou: People objectclass: organizationalUnit dn: ou=Group, dc=my_domain, dc=com ou: Group objectclass: organizationalUnit 我得到这个错误: # ldapadd -x -W -D "cn=admin,dc=my_domain,dc=com" -H ldaps://my_hostname.my_domain.com -f people_group.ldif Enter LDAP Password: adding new entry "ou=People, dc=my_domain, dc=com ou: People objectclass: organizationalUnit" ldap_add: Protocol error (2) […]
我正在努力确定是否根据Redhat 6.8中的防火墙打开特定的端口 我想打开2222端口。 我已经尝试了以下内容: system-config-firewall,以sudo的身份运行,并将端口2222描述为要打开的特定端口: 然而,港口并不公开。 我通过尝试通过SSH连接到2222端口来testing。目前SSH运行在22端口上,而且我可以正常连接,但是当我configurationSSH通过2222运行时,使用/ etc / ssh /中sshd_config中的Port 2222 ,连接超时。 我知道SSHD被configuration为侦听该端口,因为我可以使用netstat来testing。 我也尝试过对/ etc / sysconfig / iptables进行各种编辑,包括添加下列规则: -I INPUT 9 -m state –state NEW -m tcp -p tcp –dport 2222 -j ACCEPT 和 -A INPUT -m state –state NEW -m tcp -p tcp –dport 2222 -j ACCEPT 每一个这些变化后,我执行sudo service iptables restart ,我无法连接。 […]
尝试使用yum更新某些RHEL 6.1 64位服务器时遇到一些错误。 我尝试了全新安装的操作系统,然后运行yum -y升级,并收到了我在生产服务器上遇到的同样的错误。 我试过yum -y upgrade –skip-broken和rpm -Va –nofiles –nodigest ,都没有帮助。 我想这个问题可能是我们在卫星服务器上丢失了一个软件包,但是我不确定。 任何帮助将不胜感激。 –> Processing Dependency: /bin/sed for package: redhat-lsb-4.0-3.el6.x86_64 –> Processing Dependency: /bin/sed for package: policycoreutils-2.0.83-19.8.el6_0.x86_64 –> Processing Dependency: /bin/sed for package: groff-1.18.1.4-21.el6.x86_64 –> Processing Dependency: /bin/sed for package: initscripts-9.03.23-1.el6.x86_64 –> Finished Dependency Resolution Skip-broken could not solve problems Error: Package: initscripts-9.03.23-1.el6.x86_64 […]
我正在通过kickstart安装Scientific Linux 6.1,并试图debugging一个问题。 根据anaconda和kickstart提示和技巧 ,我应该有几个虚拟控制台可用: What the different terminals display Alt-F1 The installation dialog when using text or cmdline Alt-F2 A shell prompt Alt-F3 The install log displaying messages from install program Alt-F4 The system log displaying messages from kernel, etc. Alt-F5 All other messages Alt-F7 The installation dialog when using the graphical installer 虚拟控制台Alt […]
我试图让mod_evasive发射一个脚本来添加一个iptables规则来拒绝违规的主机。 我已经尝试了这两个答案的build议,但我仍然无法得到它的工作。 除了链接的post之外,我正在尝试运行本文所述的脚本。 我的Apacheconfiguration有这个 DOSSystemCommand "sudo -u root /root/scripts/ban_ip.sh %s" 脚本有这个 #!/bin/sh IP=$1 IPTABLES=/sbin/iptables $IPTABLES -A banned -s $IP -p TCP -j DROP echo "$IPTABLES -D banned -s $IP -p TCP -j DROP" | at now + 5 minutes 我创build了一个“禁止”链(我也试图把它添加到INPUT链无济于事) 我的/ etc / sudoers看起来像这样: apache ALL=(root) NOPASSWD: /root/scripts/ban_ip.sh * 我禁用了SELinux,以确保它不会阻碍。 我可以su apache –shell=/bin/bash并运行sudo /root/scripts/ban_ip.sh 10.10.10.10 […]