Articles of centos

traceroute在主机名的第5跳中超时

出于某种原因,traceroute到主机名(以及此服务器上托pipe的任何域)总是在第5跳之间超时,正如下面所示: 76.246.22.2 (Request timed out.) ggr7.sffca.ip.att.net [12.122.114.17] tracert最终在第16跳完成。地址都是唯一的,超时跳只出现在第5跳。在att.net之后,跳数都是上面的一个长主机名,最终parsing到另一个IP之前,然后,最后是主机名。 1)这个超时有什么作用? 2)有什么我可以做的 – 或者是我configuration错误的东西? 专用的CentOS / WHM服务器。 (其他IP分配给同一台机器没有这个超时工作…)

当根目录下运行php脚本的时候,ClamAv会在我的服务器上运行所有的cpu,即使我没有调用clamscan

嘿家伙,我刚刚完成在我的vps运行CentOS安装clamAv。 由于某些原因,即使我不是直接调用ClamAv(clamascan),而是在根目录下(根目录下的文件夹)访问php文件,即使它们是空白文件,服务器交互也会慢下来。 然而,当我的网站是偶像,CPU使用情况良好。 有谁知道如何防止这种情况发生,或者遇到类似的问题? 任何意见非常赞赏。 解: 好的解决办法是在每个文件夹中放一个php.ini文件,但如果有人能告诉我为什么这可能是我会给他们的赏金

iptables过滤smtp?

我虽然我过滤了25端口smtp,但是当我运行iptables -L列出活动防火墙规则,我仍然在我的结果中得到以下内容: ACCEPT tcp — anywhere anywhere tcp dpt:smtp 不应该被删除,我在我的shell脚本中注释了以下规则,保存并重新加载iptables # iptables -A INPUT -p tcp -m tcp –dport 25 -j ACCEPT # iptables -A OUTPUT -p tcp -m tcp –dport 25 -j ACCEPT 更新:我使用的脚本是在这里,唯一的区别是,我注释了端口25行http://linode.com/wiki/index.php/CentOS_IPTables_sh

iptables不会启动并丢失/ proc / modules

我有一个完美的工作iptables,但服务器重新启动后,不会开始给我Setting chains to policy ACCEPT: security raw nat mangle fi[FAILED]错误。 我没有改变/etc/iptables任何东西。 我卸载iptables yum uninstall iptables ,并再次安装它。 现在更糟糕:(我得到: Flushing firewall rules: [ OK ] Setting chains to policy ACCEPT: security raw nat mangle fi[FAILED] Unloading iptables modules: Opening /proc/modules: No such file or directory grep: /proc/modules: No such file or directory Opening /proc/modules: No such file […]

eAccelerator问题 – caching目录为空

希望有人能帮我一把。 我最近安装了eAccelerator 0.9.6.1 – 在CentOS LAMP服务器上。 如果它工作正常,使用/ tmp / accelerator作为caching目录。 php.ini设置: zend_extension =“/ usr / local / lib / php / extensions / no-debug-non-zts-20060613 / eaccelerator.so”eaccelerator.shm_size =“200”eaccelerator.cache_dir =“/ var / cache / eaccelerator”eaccelerator.enable =“1”eaccelerator.optimizer =“1”eaccelerator.check_mtime =“1”eaccelerator.debug =“0”eaccelerator.filter =“”eaccelerator.shm_max =“0”eaccelerator.shm_ttl =“3600”eaccelerator.shm_prune_period = 180“eaccelerator.shm_only =”1“eaccelerator.compresspress =”1“eaccelerator.compress_level =”9“ php -v输出: PHP 5.2.12(cli)(内置:2010年2月3日00:34:28)版权所有(c)1997-2009 PHP集团Zend引擎v2.2.0,版权所有(c)1998-2009 Zend技术与eAccelerator v0.9.6。 1,Copyright(c)2004-2010 eAccelerator,由eAccelerator与ionCube PHP […]

nslookup将域名parsing为IP,但我无法获得对外部服务器ping的响应

我在内部开发服务器上安装了CentOS 4.8。 除了设置sudoers和SSH以外,我没有做任何事情。 我可以SSH进入服务器,从那里解决域到IP和ping内部服务器,但由于某种原因,我没有得到任何响应来自ping外部服务器。 软件防火墙被禁用,并且存在静态和DHCP分配的networkingconfiguration的问题。 networking域控制器是Windows Server 2003框。 $ nslookup google.com Server: 10.254.2.5 Address: 10.254.2.5#53 Non-authoritative answer: Name: google.com Address: 74.125.47.147 Name: google.com Address: 74.125.47.99 <etc…> Win2K3服务器是10.254.2.5。 $ ping google.com PING google.com (74.125.47.106) 56(84) bytes of data. 它只是无限期地挂在这里。 $ cat /etc/resolv.conf ; generated by /sbin/dhclient-script search <…snip…>.local nameserver 10.254.2.5 nameserver 10.254.2.124 10.254.2.124是备用的DC服务器,目前这个服务器已经closures了,并且被逻辑删除了。 剪切的部分是我们的公司名称。 # ifconfig […]

百胜安装错误(mysql-devel)depsolve

yum安装mysql-devel时出现以下错误。 谁能帮忙? 我没有在我的/etc/yum.conf排除列表中。 –> Finished Dependency Resolution mysql-server-5.0.45-7.el5.x86_64 from installed has depsolving problems –> Missing Dependency: mysql = 5.0.45-7.el5 is needed by package mysql-server-5.0.45-7.el5.x86_64 (installed) Error: Missing Dependency: mysql = 5.0.45-7.el5 is needed by package mysql-server-5.0.45-7.el5.x86_64 (installed) You could try using –skip-broken to work around the problem You could try running: package-cleanup –problems package-cleanup –dupes […]

CentOS作为打印机服务器

我有一个1x CentOS作为服务器和10x Fedora作为工作站的networking设置,打印机连接到CentOS的USB端口。 我想这台打印机直接从Fedora工作站打印,也想监视打印机的使用情况,如no。 从不同的工作站请求的页面。 我如何去做这件事?

Apache不会回来 – httpd已经死了,但是子系统已经locking了

我希望有人能够相当紧急地帮助我。 我一直试图让我的Centos服务器备份和运行。 我昨天做了一个yum更新按计划进行,但今天早上我发现httpd已经死了(我正在猜测logrotate)。 我可以发出一个“服务httpd开始”,它似乎开始确定,但状态显示“httpd已死,子弹被locking”。 我可以删除子锁,然后重新开始,但是我得到: “(98)已经使用的地址:make_sock:无法绑定到地址0.0.0.0:80 没有可用的sockets,closures 无法打开日志“ 然后运行netstat -plant显示正在运行的httpd tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 8191 / httpd tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 8191 / httpd 我可以从我的httpd.conf中删除Listen 80,并删除第一个错误,但它显示:“(98)已经在使用的地址:make_sock:无法绑定到地址0.0.0.0:443 没有可用的sockets,closures 无法打开日志“ 在我的configuration文件中没有443条目吗? 也运行tail -f / var / log / messages我得到一个令人担忧的条目: www内核:httpd [8189]:segfault在0 ip b7367c48 sp bf89f4fc错误4在libc-2.5.so [b72f8000 + 152000] 请任何想法? 你的,克里斯

隔离CentOS服务器上的垃圾邮件脚本位置

我们有一个CentOS服务器,运行Sendmail和ISPConfig作为面板。 我们最近注意到,一个幽默的雅虎帐户stream量大增。 日志显示在短时间内发送了数百封电子邮件。 我们正在尝试隔离脚本,但是我们有多个站点正在运行,不知道先看哪里。 想法? – 由于没有结果,所以我认为任何人都不知道,这不是一件容易的事情,或者我不能提供足够的信息。 我们已经尝试在服务器上search“@yahoo”和类似文件,但有可能是从外部网站或文件获取电子邮件地址。 我们可以轻松确定对外部文件的任何引用吗? 我们使用内部.js文件来处理所有事情,所以不应该有太多的。 或任何其他的想法..