访次: AmazingCounters.com 次
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页
该文被密码保护。 阅读全文
posted @ 2016-08-17 14:55 IT老登 阅读(4) 评论(0) 推荐(0) 编辑
摘要: Linux下Tomcat catalina.out自动归档 如果 catalina.out 日志达到 2GB 大小的时候,Tomcat 因为缓存问题,便没有办法继续输出日志了。 为了避免这种情况,你需要及时对 catalina.out 进行归档。 实际上 Tomcat 自身也会对日志内容进行归档,但 阅读全文
posted @ 2016-06-15 16:37 IT老登 阅读(544) 评论(0) 推荐(0) 编辑
摘要: 安装cronolog 官网下载:http://cronolog.org/usage.html ./configuremake;make install 或者 yum install cronolog -y 默认安装位置: # which cronolog/usr/local/sbin/cronolo 阅读全文
posted @ 2016-06-15 15:26 IT老登 阅读(1848) 评论(0) 推荐(0) 编辑
摘要: 1 #!/bin/env python 2 #-*- coding:utf-8 -*- 3 import zipfile,os 4 import platform,sys,os 5 from zipfile import * 6 import zipfile 7 systty = platform.system() 8 system1 = 'windows' 9 system2... 阅读全文
posted @ 2016-04-01 18:34 IT老登 阅读(1050) 评论(0) 推荐(0) 编辑
摘要: 1 #打包成zip文件 2 import zipfile 3 f = zipfile.ZipFile('archive.zip','w',zipfile.ZIP_DEFLATED) 4 f.write('file_to_add.py') 5 f.close() 6 7 #从zip文件解包 8 import zipfile 9 zfile = zipfile.ZipFile(... 阅读全文
posted @ 2016-04-01 12:33 IT老登 阅读(345) 评论(0) 推荐(0) 编辑
摘要: 在zabbix agentd客户端上,查看nginx是否加载了--with-http_stub_status_module。因为zabbix监控nginx是根据 nginx的Stub Status模块,抓取Status模块所提供的数据。假如以前没开启,现在想启用StubStatus 模块,在编译ng 阅读全文
posted @ 2016-03-31 17:09 IT老登 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 使用外部邮箱账号发送报警邮件设置 一、关闭sendmail或者postfix 备注: 使用外部邮箱账号时,不需要启动sendmail或者postfix 如果在sendmail或者postfix启动的同时使用外部邮箱发送报警邮件,首先会读取外部邮箱 配置信息。 二、安装邮件发送工具mailx 1 yu 阅读全文
posted @ 2016-03-31 13:57 IT老登 阅读(566) 评论(0) 推荐(0) 编辑
摘要: 原已经安装好的nginx,现在需要添加一个未被编译安装的模块: nginx -V 可以查看原来编译时都带了哪些参数 原来的参数:--prefix=/app/nginx 添加的参数:--with-http_stub_status_module --with-http_ssl_module --with 阅读全文
posted @ 2016-03-31 13:57 IT老登 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 1 wget http://down1.chinaunix.net/distfiles/freetype-2.4.7.tar.bz2 2 tar -jxvf freetype-2.4.7.tar.bz2 3 cd freetype-2.4.7 4 ./configure --prefix=/usr/ 阅读全文
posted @ 2016-03-28 18:36 IT老登 阅读(332) 评论(0) 推荐(0) 编辑
摘要: 运用这4件工具,最简单直接的一个用途就是搭建一个网站,例如现在我的个人网站就是在「LNMP」上面跑的 其实在Nginx开始受到关注之前,「LAMP」是搭建网站比较流行的选择,即Linux,Apache,MySQL,PHP。 这里我们使用的不是LNMP的一键安装包,而是难度稍微高「一点」的逐个安装,这 阅读全文
posted @ 2016-03-24 18:16 IT老登 阅读(3013) 评论(1) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页
访次: AmazingCounters.com 次