Articles of centos

检测用于发送邮件的恶意脚本

我最近被用作开放中继,大量垃圾邮件通过我的服务器发送。 我从那以后停止了它,但是我的邮件日志随着这种types的日志大大增加了。 Aug 20 07:00:29 veepiz postfix/smtp[15001]: DC8BD1641F1: lost connection with mx1.hotmail.com[65.55.92.168] while sending RCPT TO Aug 20 07:00:29 veepiz postfix/smtp[15000]: DC8BD1641F1: host mx3.hotmail.com[65.55.92.152] said: 421 RP-001 (SNT0-MC2-F19) Unfortunately, some messages from 50.57.111.177 weren't sent. Please try again. We have limits for how many messages can be sent per hour and per day. You can […]

puppet在所有服务器上执行远程脚本

我怎么能在所有木偶客户端上执行一个python脚本。 我已经添加了一个类来执行脚本 class curp { exec { "/usr/src/scripts/curp.py": } } 并将其包含在nodes.pp中 但是当我在远程客户端上执行,它说文件不能被发现? #client:# /usr/sbin/puppetd –test –server=puppetmasterserver notice: //chkconfig/Package[vsftpd]/ensure: created err: //curp/Exec[/usr/src/scripts/curp.py]/returns: change from notrun to 0 failed: Could not `find executable /usr/src/scripts/curp.py` 更多版本: 我已经通过创build文件服务器来修复了configuration文件, class curp { file { '/opt/files/curp.py': ensure => present, owner => 'root', group => 'root', mode => '0755', source => 'puppet:///modules/files/curp.py', […]

SSH使目录的副本?

是否有可能通过SSH复制一个目录? 可以说我有/目录/,我想做一个像/ directory_copy /这是可能的吗? 我正在使用CentOS。 谢谢。

将CentOS服务器连接到彼此

我有两个CentOS服务器,一个在本地,另一个在远程位置。 两者都运行CentOS 5.6,但一个是32位,另一个是64位。 我需要将这些服务器永久连接在一起,以便我可以随时安全地传输文件,执行命令,发送/接收HTTPstream量等。 我应该使用VPN还是其他的东西来达到这个目的? 任何帮助将不胜感激。

将Ext3转换为Ext4文件系统失败,因为我无法卸载驱动器

我想将我的文件系统从Ext3转换为Ext4,因为Ext3的32000目录限制。 但是,当我想卸载驱动器,我得到这个错误: umount: /: device is busy umount: /: device is busy 我尝试了下面的命令来了解是什么使驱动器繁忙: root@cl-t159-101cl [~]# ps auxw|grep 538 root 8426 0.0 0.0 4888 700 pts/2 S+ 10:04 0:00 grep 538 这实际上是我的远程会话(我连接到我的服务器使用SSH),不允许卸载驱动器。 我也尝试命令fuser来查看正在使用该驱动器的进程: root@cl-t159-101cl [~]# fuser -mu /dev/sda5 /dev/sda5: 1rce(root) 2rc(root) 3rc(root) 4rc(root) 5rc(root) 6rc(root) 7rc(root) 8rc(root) 9rc(root) 10rc(root) 11rc(root) 12rc(root) 13rc(root) 14rc(root) 15rc(root) 16rc(root) 17rc(root) […]

在networking服务器上的IRC

在networking服务器上运行irc服务器是否合理? 会有很多的影响? 这个服务器将用于12-20个人连接的局间关系。 我在看UnrealIRCD + Anope服务 双四方 超线程 12GB的RAM 750GB的磁盘空间Raid1 每月1750GB的带宽 CentOS的 Sever状态: Server load 0.9 (16 CPUs) Memory Used 8.79% (1,074,912 of 12,226,188) Swap Used 0% (0 of 33,559,768) Apache状态: Current Time: Thursday, 29-Sep-2011 08:53:08 PDT Restart Time: Tuesday, 13-Sep-2011 13:19:01 PDT Parent Server Generation: 266 Server uptime: 15 days 19 hours 34 minutes […]

python新安装显示加载共享库时出错

我之前安装了python2.6 /ust/local/bin 但现在我删除它,并安装了一个新的python2.6.4英寸 /opt/python2.6 我从文章安装 但在中途只有他们说检查python它说 [root@domain ~]# python /opt/python2.6/bin/python: error while loading shared libraries: libpython2.6.so.1.0: cannot open shared object file: No such file or directory 但是当我打开 /opt/python2.6/lib 我可以find这个文件。 请告诉我这是怎么回事?

Centos 5.7 apache安装的位置

我想知道Centos 5.7中Apache安装的位置($ APACHE_ROOT)在哪里 bash# $APACHE_ROOT/bin/apxs -iac mod_evasive.c

crontab命令说权限被拒绝

我在cent-OS服务器上工作。 我有两个脚本来运行cron。 脚本是在PHP中,我有一个Apache模块安装在cent-OS上。 一个脚本应该每天下午6点运行,其他每个星期四运行。 我的cron命令是: 00 18 * * * lynx -dump http://domain/folder1/script1.php //every Day 00 02 * * 5 lynx -dump http://domain/folder1/script2.php //every Thursday at 2am 我写了我的/etc/crontab文件中的两行,并试图执行它 [root@domain ~]# /etc/crontab crontab -bash: /etc/crontab: Permission denied 在网上search,但没有解决scheme。 任何想法我失踪?

在Mac上本地复制Linux生产环境

我有一个远程的CentOS服务器,我想尽可能地在当前充当文件服务器的Mac上本地环境中重新创build这个环境,以提供一个尽可能与生产环境和登台环境相匹配的开发环境。 该应用程序在很多地方被硬编码,以期望目录path按照我们的CentOS环境工作,即为每个帐户/home/USER/public_html/… PHP被设置为在我们的远程服务器上作为DSO运行,并带有一些额外的模块,例如mod_deflate正在运行。 是否有任何原因,为什么这是不能在Mac上本地复制,在一个足够接近我们的分期环境,使其可行的环境。 其他的考虑因素,我需要一个dynamic映射www.remotedomain.com到其本地等效(也许通过做一些像dev.remotedomain.com前缀或用.local后缀)