Articles of centos

Apache,MySQL和Postfix的Monitconfiguration

我计划使用下面的configuration在我的生产服务器上启用Monit。 我对Monit来说是全新的,想要听取其他人的提示,或者是否有其他指令,我应该考虑根据您的经验来加强我的监控脚本。 我的服务器是CentOS 5.6。 谢谢! #httpd—- check process httpd with pidfile /var/run/httpd.pid group apache start program = "/etc/init.d/httpd start" stop program = "/etc/init.d/httpd stop" if failed host 127.0.0.1 port 80 protocol http then restart if cpu > 60% for 2 cycles then alert if cpu > 80% for 5 cycles then restart if 5 restarts […]

postfix-这些在日志中连接什么都担心?

我在我的maillog注意到以下内容。 很多这些: Sep 10 10:29:56 westc01-01-01 postfix/smtpd[26788]: connect from unknown[85.111.7.182] 还有这些: Sep 10 10:34:58 westc01-01-01 postfix/smtpd[26768]: disconnect from unknown[85.111.7.182] Sep 10 10:34:58 westc01-01-01 postfix/smtpd[26758]: timeout after AUTH from unknown[85.111.7.182] 还有这些: Sep 10 10:29:56 westc01-01-01 postfix/smtpd[26737]: warning: unknown[85.111.7.182]: SASL LOGIN authentication failed: UGFzc3dvcmQ6 这些东西是否担心?

如何解决“包装pcre-6.6-6.el5_6.1.x86_64已经安装和最新版本”警报需要更新到pcre-8.31?

下午好, 我试图更新我的pcre-6.6-6.el5_6.1.x86_64包到pcre-8.31以下是我的步骤: 步 1:cd /etc/yum.repos.d 使存储库utter-ramblings.repo在里面。 填充完整的ramblings.repo文件 [utter-ramblings] name=Utter Ramblings baseurl=http://www.jasonlitka.com/media/EL5/i386/ gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka enabled=1 gpgcheck=1 然后下面的命令: yum install pcre 我安装过程已成功启动,但出现以下错误 Transaction Check Error: file /usr/share/man/man1/pcregrep.1.gz from install of pcre-8.13-1.jason.2.i386 conflicts with file from package pcre-6.6-6.el5_6.1.x86_64 文件/usr/share/man/man1/pcretest.1.gz从安装pcre-8.13-1.jason.2.i386与来自包pcre-6.6-6.el5_6.1.x86_64的文件冲突 我的操作系统在VPS信息是:OS Linux 2.6.18-028stab094.3 请帮我解决它。

在Centos上安装mod_ssl,依赖性问题

我正在为当前生产的CentOS 5.8(最终)安装SSL证书, 所以我跑了这个: yum install mod_ssl 得到这个: Error: Missing Dependency: httpd = 2.2.3-65.el5.centos is needed by package 1:mod_ssl-2.2.3-65.el5.centos.x86_64 关于我的安装的一些细节: # yum list installed|grep httpd httpd.x86_64 2.2.20-1.w5 installed httpd-tools.x86_64 2.2.20-1.w5 installed

find共同的string来阻止IP

目前我有所有这些IP进来。有没有办法在数据包的内容中find一个共同的string,然后通过IPTables阻止攻击? Oct 24 16:28:52 host kernel: [ 823.255566] Firewall: *SYNFLOOD Blocked* IN=eth0 OUT= MAC= SRC=176.3.80.132 DST=28.7.4.90 LEN=40 TOS=0x00 PREC=0x00 TTL=242 ID=28861 PROTO=TCP SPT=1234 DPT=80 WINDOW=5840 RES=0x00 SYN URGP=0 Oct 24 16:28:54 host kernel: [ 825.252398] Firewall: *SYNFLOOD Blocked* IN=eth0 OUT= MAC= SRC=61.54.230.5 DST=28.7.4.90 LEN=40 TOS=0x00 PREC=0x00 TTL=242 ID=56117 PROTO=TCP SPT=1234 DPT=80 WINDOW=5840 RES=0x00 SYN URGP=0 […]

我的VPS超出内存需要多less钱?

我有1.25GB RAM和0.51GBcachingVPS服务器试图build立一个电子商务网站与200K项目,分贝现在是约2GB任何东西现在工作可怕缓慢,因为缺乏内存MySQL查询需要大约30秒完成峰值内存使用率。 那么有没有什么方法可以计算出我的VPS的RAM需要多less? [root@ssrv/]# free -m total used free shared buffers cached Mem: 1247 1209 38 0 1 48 -/+ buffers/cache: 1159 88 Swap: 511 174 337

我的小VPS上需要哪些Apache mods?

我对这个问题感到非常抱歉,但我真的是一个小菜鸟,search没有帮助 .so和.c mods有什么区别? 接下来,我再次对这样一个宽泛的,通用的,可能很难回答的问题表示歉意,我将非常感谢所有的build议 我有一个小的VPS(4 x四核,3GB内存,Xen,CentOS 6 64位,Apache,cPanel,PHP,mySQL,脚本:WordPress,OpenCart,bbPress,phpBB,Menalto Gallery)。 我想摆脱所有我不需要/不使用的MODS。 请你能帮我确定哪些我应该删除? 我的主机说:加载的Apache模块是: 以模块编译: core.c Core Apache HTTP Server features that are always available 似乎很清楚,这是核心和必要的。 http_core.c 不知道这是什么。 但我怀疑这与核心有关,所以计划离开这一点。 prefork.c This Multi-Processing Module (MPM) implements a non-threaded, pre-forking web server that handles requests in a manner similar to Apache 1.3. It is appropriate for sites that need […]

在CentOS上追踪并安装特定版本的PHP

长话短说:我已经inheritance了高度依赖于软件包版本的地狱般的PHP代码(框架)。 问题是,我需要一个PHP版本> = 5.3.0和<= 5.3.3的CentOS 5.7 i386,我似乎无法find任何地方 – 甚至没有源代码。 只有我发现这个http://pe-ell.net/rpms.html ,但它是64位。 另外,如果将PHP从5.2.17升级到5.3.0和5.3.3之间的版本,会不会破坏我已经编译的任何PECL扩展? 提前致谢!

MySQL 5.5.27在centOS 5上随机崩溃

我正在使用godaddy的专用服务器来托pipe我的web应用程序,它是centOS 5(我不知道为什么他们仍然在使用这个。),我在该服务器上安装了mysql,一切都运行正常,因为有一天我得到一个报告说, Web应用程序无法连接到MySQL,我检查,发现MySQL崩溃,重新启动MySQL后,一切再次工作。 但奇怪的是,它会随机崩溃,有时一个月一次,有时一两次。 请帮我弄清楚是什么问题。 以下是来自mysql的最新的崩溃日志。 非常感谢您的宝贵时间。 121015 08:59:35 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql 121015 8:59:36 [Note] Plugin 'FEDERATED' is disabled. 121015 8:59:36 InnoDB: The InnoDB memory heap is disabled 121015 8:59:36 InnoDB: Mutexes and rw_locks use InnoDB's own implementation 121015 8:59:36 InnoDB: Compressed tables use zlib 1.2.3 121015 8:59:36 InnoDB: Using […]

在使用Apache版本httpd-2.2.3-31的Centos上启用/ server-status时出现错误消息

我在httpd.conf中启用了以下内容: ExtendedStatus On LoadModule status_module modules / mod_status.so 并且: NameVirtualHost *:80 <VirtualHost *:80> ServerName myserver.com ServerAlias myserver.com DocumentRoot /prod/html RewriteEngine on RewriteCond %{HTTP_HOST} .*myserver.com$ RewriteRule /(.*) http://myserver.com/$1 [R,L] **<Location /server-status> SetHandler server-status Order deny,allow Deny from all Allow from localhost </Location>** </VirtualHost> 当运行lynx http://localhost/server-status会得到以下消息: 您无权访问此服务器上的/ server-status。 我在/ etc / httpd文件夹中没有看到与/ server-status有关的任何内容,这些文件夹是我在/ etc / httpd下的文件夹: **conf […]