Articles of centos

使用crontabconfiguration一个Sendmail主题

我的cron作业正在运行以下行: */40 * * * * cd /home/qa/prod/seo/casino && make testv 2> /dev/stdout | /usr/sbin/sendmail -t [email protected] 正如你所看到的,我正在使用sendmail软件包。 我无法find的东西是如何添加一个主题到当前运行的cron时间表。 我遇到以下情况: echo "Subject: Testing" | cat – /home/file1.out | /usr/sbin/sendmail -t [email protected] 然而,在这种情况下,我不知道'cat – /home/file1.out'pipe道是什么,或者我可以如何将它与我自己的集成在一起。 帮助将不胜感激!

我需要为VPS上的联系人表单设置SMTP MTA吗?

我即将build立一个运行一个CentOS服务器与轨应用程序的Linode。 Rails应用程序有一个联系我们的forms。 这只是发送enquirys网站所有者。 不需要其他电子邮件function 网站所有者只使用他的gmail电子邮件帐户,所以目前没有电子邮件是为托piperails应用程序的域configuration的。 我的问题是,我必须在托pipeRails应用程序的服务器上设置postfix,以便它可以发送电子邮件到网站所有者或有其他方式吗? 如果我必须这样做,我是否正确假设我将不得不设置MXlogging,发件人框架SSL证书等? 🙁 我正在寻找一个简单的方法:) 服务器将有一个静态IP和一个有效的DNS条目。

Post Os在Cent Os上的垃圾邮件攻击

有人正在使用我的服务器(可能来自不安全的forms)发送大量的垃圾邮件。 我看了一下mailq但似乎无法find解决这个问题的地方。 有没有办法来追查这些垃圾邮件来自哪里? 我正在使用CentOS和Postfix 这是我的main.cf文件的一部分: sendmail_path = /usr/sbin/sendmail.postfix # newaliases_path: The full pathname of the Postfix newaliases command. # This is the Sendmail-compatible command to build alias databases. # newaliases_path = /usr/bin/newaliases.postfix # mailq_path: The full pathname of the Postfix mailq command. This # is the Sendmail-compatible mail queue listing command. # mailq_path = /usr/bin/mailq.postfix […]

通过IPSec的VPN隧道

我对安装和configurationVPN连接并不熟悉,但我需要将我们的Web服务器(CentOS 6)连接到Cisco 3945.以下是我从Cisco设备获得的信息: VPN Device Tunnel Endpoint IP Address: 91.151.ab Host(s): IP address(es) to be accessed (Public IP address required): 91.151.cd Phase 1 & 2 Encryption Type: 3DES/SHA1 VPN scheme: IKE Phase 1 encryptin algorithm: 3DES Phase 1 hash algorithm: Secure Hash Standard Phase 1 authentication method: Pre-Shared Key Phase 1 algorithm: Diffie-Hellman Group 2 […]

覆盖较less的命令,我该如何重新安装它?

我试图使用下面的命令将结果传递给更less,以便我可以完整地读取列表: ls -lh | less 这样,根据各种渠道将内容输送到较less,并允许在新文件中查看列表。 相反,它覆盖了我较less的命令。 我用vi查看较less,现在确实是我所在的文件夹的列表。 我相信原因是因为当我使用命令的时候,我在/ usr / bin /文件夹内,那里的命令less了。 是的,我已经在命令日志中查看了我的步骤,只有cd和ls在覆盖之前和之后,修改时间与我运行上述命令时相匹配。 是的,我是唯一有权访问的用户。 那么现在less了已经被破坏了,我该如何重新安装那个文件呢? 服务器是CENTOS 4.9(Final),uname -a返回: Linux server.name.com 2.6.9-89.0.16.EL#1 Tue Nov 11 17:15:02 EST 2009 i686 i686 i386 GNU / Linux 因为cPanel不再支持CENTOS 4,所以我确实需要做一次操作系统的重装/升级,但同时我还是要less一些。 我可以使用vi或更多来代替它。 —编辑添加— 我知道每个人都会反复地这样说,不可能像描述的那样发生,但是这里是一步一步完成的实际列表: > /usr/sbin/exim -bp > /home/<username>/<filename>.log (created Feb 4 21:03) > less -N /home/<username>/<filename>.log (less was working […]

Centos php-fpm无法识别的服务

我想在我的Centos VPS上运行php-fpm,但是当我到达php-fpm部分时出现错误。 我从这些链接下载了软件包: rpm –import https://fedoraproject.org/static/0608B895.txt rpm -ivh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm 然后,所有其他服务都很好,我试过这个命令: yum install php php-fpm mod_fastcgi Loaded plugins: priorities, refresh-packagekit 1360 packages excluded due to repository priority protections Setting up Install Process Package php-5.3.3-14.el6_3.i686 already installed and latest version No package php-fpm available. Package mod_fastcgi-2.4.6-2.el6.rf.i686 already installed and latest version Nothing to do 启用php-fpm chkconfig –levels […]

如果getfacl不断运行,使用大于90%的可用磁盘I / O是否正常?

我最近从我们的服务器监控软件得到了超过90%的磁盘I / O利用率的警报。 我安装了iotop,并有以下过程的三个实例显示了非常高的IO: % getfacl -R –absolute-names /var/www 这是否表明有问题?

这个防火墙阻止input链?

我使用了一个在线工具来创build一个iptables防火墙。 基本上我只需要22和1194端口向外界开放。 但我注意到这个bash脚本有默认input,转发和输出链接受。 是阻塞所有的stream量,但这两个端口? 谢谢。 IPTABLES=/sbin/iptables # Flush, Init and Zero the 'built-in' chains $IPTABLES -F INPUT; $IPTABLES -P INPUT ACCEPT; $IPTABLES -Z INPUT $IPTABLES -F FORWARD; $IPTABLES -P FORWARD ACCEPT; $IPTABLES -Z FORWARD $IPTABLES -F OUTPUT; $IPTABLES -P OUTPUT ACCEPT; $IPTABLES -Z OUTPUT $IPTABLES -F -t nat; # Setup user-defined chains $IPTABLES -X $IPTABLES […]

MySQL在空闲时使用大量的CPU

一个networking服务器(Apache + MySQL)locking得非常厉害,我不得不重新启动它,并立即login以查看之后发生的事情。 平均负载超过3%,MySQL徘徊在CPU的20%到80%之间。 好奇,我跑了SHOW PROCESSLIST; 在活动的穗期间,只有find… +——-+——–+———–+——–+———+——+——-+——————+ | Id | User | Host | db | Command | Time | State | Info | +——-+——–+———–+——–+———+——+——-+——————+ | 10762 | root | localhost | NULL | Query | 0 | NULL | SHOW PROCESSLIST | | 11754 | phorum | localhost | phorum | Sleep | […]

无法telnet到端口25

当我尝试使用此命令telnet到端口25时: telnet aspmx.l.google.com 25 我得到这个消息 Trying 173.194.69.26… 而没有更多的发生。 我禁用CSF,但问题仍然存在。 我也问过我的VPS公司 他们是否阻止了港口25,他们说他们没有阻止任何港口。 在后缀日志中: server2 postfix/smtp[30847]: connect to alt2.gmail-smtp-in.l.google.com[173.194.64.27]:25: Connection timed out 有可能谷歌已经封锁了我的服务器IP地址? 编辑: 试过雅虎( telnet smtp.mail.yahoo.com 25 ),它有相同的结果。 我也禁用iptables( service iptables stop ),但问题仍然存在。