Articles of centos

如何阻止垃圾邮件从我的服务器发送?

我有一个VPS,我租用它运行Centos 6. VPS安装了ZPanel,用于托pipe一些网站和电子邮件。 我的一个客户在她的收件箱里已经注意到成千上万个“无法投递”的信息。 (FYI,Roundcube Webmail用于电子邮件)。 这持续了几天,现在她的电子邮件根本不起作用。 我得出结论,她的电子邮件地址正在发送垃圾邮件,现在邮件已停止工作,因为该域名已被列入黑名单。 我查了一下MXToolbox,我确认有很多黑名单。 我想停止发送所有的垃圾邮件,所以这是我的行动计划: 在我的服务器上完成病毒扫描 更改我的客户的networking邮件密码 更改所有FTP密码 更改我的ZAdmin密码 更改服务器根密码 请求从黑名单中删除 我对这个问题感到很紧张,因为我没有很多服务器的经验,而且我听说如果我把黑名单列了太多次,它可以成为永久的。 (但是,这是第四次,我相信以前的事件是来自不良的反向DNS设置??) 你会推荐我采取什么进一步的行动? 我需要100%确定我的服务器是安全的。 (仅供参考,我的杀毒软件是ClamAV)。

Chroot用户无法使用SSHlogin

我创build了一个没有shell访问权限的新用户: useradd -g www -d /www/user01 -p ****** -s /sbin/nologin user01 然后在我的sshd_config添加这些行: AllowUsers user01 user02 manager Subsystem sftp internal-sftp Match User user01 ChrootDirectory /www/user01 PasswordAuthentication yes ForceCommand internal-sftp 问题是我得到拒绝每次我用腻子login,是否有任何错误configuration? 更新: 看来,唯一的用户可以ssh是root用户,甚至添加新的用户到AllowUsers指令。

绑定DNS不工作?

我知道关于绑定总是有很多答案。 但不知何故,我不明白我的设置的问题。 这是我的configuration options { listen-on port 53 { 192.168.159.130; }; listen-on-v6 port 53 { ::1; }; directory "/var/named"; dump-file "/var/named/data/cache_dump.db"; statistics-file "/var/named/data/named_stats.txt"; memstatistics-file "/var/named/data/named_mem_stats.txt"; allow-query { any; }; recursion yes; } zone "example.com" IN { type master; file "example.fz"; allow-update { none; }; }; zone "159.168.192.in-addr.arpa" IN { type master; file "example.rz"; allow-update { […]

Linux(Centos)软raid1 – 主板死机

我使用centos 6.3和软raid1(通过mdraid)+ LVM。 问题是MB死了,我有几个问题。 我有两个硬盘。 是什么驱动器如何连接到MB是重要的。 我的意思是奴隶/主人等等。除此之外,我不记得他们之前是如何连接的。 我应该只更换MB和SWIT服务器? 我的意思是操作系统自动确定MB更改? 我应该做别的不要丢失数据吗?

Tomcat和Jenkins分别在同一台服务器上

我从来没有在CentOS上安装过Jenkins,但是现在我尝试了,它似乎并不能和独立的Tomcat服务器并行运行。 首先,我通过yum install tomcat tomcat来yum install tomcat (我正在使用CentOS 7)。 接下来,我添加Jenkins回购和运行yum install jenkins 。 它并没有从头开始,因为Tomcat正在运行,港口被绑定。 我已经在/ect/sysconfig/jenkins中将端口设置为8081。 现在看起来工作正常,jenkins跑起来了。 但是,我无法启动Tomcat, Caused by: java.net.BindException: Address already in use <null>:8009 。 如果我第一次启动tomcat ,然后启动jenkins ,同样如此:jenkins失败, Failed to start Jetty 。 我怎样才能pipe理这两个,而不是通过jenkins.war手动安装Jenkins到tomcat?

SendMail使用什么版本的OpenSSL,以及如何维护?

我的理解是,SendMail利用OpenSSL的STARTTLSfunction(等)。 这是否与我安装的任何版本的OpenSSLdynamic链接? 或者sendmail使用/维护自己的openssl的“副本”? 我问这个,因为有高级sendmail参数,如O CipherList=HIGH ,它引用openssl类别,随时间而改变。 例如,OpenSSL认为强/高密码与以后认为强大的可能不同。

坏的用户名Apache

当我尝试启动Apache时出现错误: AH00543: httpd: bad user name apache 我也可以看到我的apache用户不存在于/ etc / passwd中 我也试图卸载Apache,但后来我得到警告: warning: group apache does not exist – using root SELinux也被禁用。 有谁知道如何解决这一问题?

Spacewalk客户端OSAD服务SSL错误

我的新Spacewalk设置有一些问题。 我已经注册了我的testing客户端,并安装了osad服务,以避免执行rhn_check。 但是当我启动osad服务时,出现以下错误: Starting osad: Not able to reconnect Traceback (most recent call last): File "/usr/share/rhn/osad/jabber_lib.py", line 253, in setup_connection c = self._get_jabber_client(js) File "/usr/share/rhn/osad/jabber_lib.py", line 320, in _get_jabber_client c.connect() File "/usr/share/rhn/osad/jabber_lib.py", line 604, in connect raise SSLDisabledError SSLDisabledError [ OK ] 我尝试使用命令osad -v启动osad,并获得以下内容: 2014-11-06 11:26:23 jabber_lib.__init__: 2014-11-06 11:26:23 jabber_lib.connect: Server did not return a […]

无法安装phpmyadmin有错误

当我尝试安装phpmyadin时,出现了一些错误,我错过了什么吗? CentOS 7 # wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-2.noarch.rpm # wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm # rpm -Uvh remi-release-7*.rpm epel-release-7*.rpm # yum update # yum –enablerepo=remi,remi-php55 install php php-common # yum –enablerepo=remi,remi-php55 install php-gd php-pdo php-mysql # yum install mysql # yum install mariadb-server # systemctl start mariadb # mysql_secure_installation # service httpd start # yum install phpmyadmin or yum –enablerepo=remi […]

Perl模块未安装在Amazon Linux AMI(centOs 6.5)中

我正在configurationcloudwatch自定义指标,这需要安装一些perl模块。 这里是我试图安装perl模块的命令。 yum install perl-Switch perl-Sys-Syslog perl-LWP-Protocol-http 我正在AWS上运行CentOs 6.5。 这是我得到的回应。 [root@ip-10-21-1-38 aws-scripts-mon]# yum install perl-Switch perl-Sys-Syslog perl- LWP-Protocol-http Loaded plugins: fastestmirror, presto Loading mirror speeds from cached hostfile * base: mirror.es.its.nyu.edu * extras: mirror.ash.fastserv.com * updates: mirror.ash.fastserv.com Setting up Install Process No package perl-Switch available. No package perl-Sys-Syslog available. No package perl-LWP-Protocol-http available. Error: Nothing […]