Quantcast
Channel: 系统运维与网站架构设计 » Linux 附加服务配置
Browsing latest articles
Browse All 25 View Live

清除DNS缓存的方法

1.  bind中查看缓存(在named.conf中配置rndc) rndc dumpdb cat  /var/named/chroot/var/named/data/cache_dump.db 2.   bind中清除缓存 rndc flush 3.  windows下查看和清除DNS缓存 ipconfig /displaydns ipconfig /flushdns

View Article



bind中一些参数的解释2

1.  区域传送:主服务器和辅服务器同步 完全区域传送: axfr   刚开始要完全传送 增量区域传送:  ixfr   完全以后的同步 2.  allow-query-cache     { any; };   设置是否允许从缓存中响应解析请求,any是指定谁可以从缓存中取得缓存请求

View Article

apache+2tomcat(非tomcat集群)配置方法

使用环境: 两个网站www.test.com和oa.test.com都是使用java开发的,在同一个服务器上部署着,使用同一个apache,但不想使用同一个tomcat   具体配置: 前期配置请参考: http://wxd5981.sinaapp.com/185.html 这里把不同的地方贴出来, 编辑works.properties:...

View Article

Image may be NSFW.
Clik here to view.

rsyslog+loganalyzer的配置

1.  安装lamp环境  (不在赘述) 2.  安装libestr tar xzvf libestr-0.1.4.tar.gz cd ./libestr-0.1.4 ./configure CC="gcc -m64" --prefix=/usr --libdir=/usr/lib64 make make install 3.  安装libee tar xzvf libee-0.4.1.tar.gz...

View Article

rrdtool的数据类型解释

gauge: 收到什么值,就存入什么值 counter: 前一次收到的值为a, 当前收到的值为b,那么counter的值为(a-b)/step derive: 原理类似于counter,但值可以出现负值 absolute: 同counter一样只有正值,但运算为当前值a直接除以step,a/step 备注: 这里的step为间隔时间,例如300秒

View Article


Image may be NSFW.
Clik here to view.

我维护的DNS的相关配置

serial: 每次更新完DNS的记录时,比如增加,删除,更新A,Cname等记录后都要更新一下此记录,从DNS服务器就是根据此记录来判断主DNS是否有过记录更新 refresh: 主从DNS之间多久同步一次,这里是1小时 retry: 如果从DNS联系不到主DNS,多久后在重新尝试一下 expire: 如果在此时间内,从DNS还是没有联系到主DNS服务,则过期 不在尝试 default TTL:...

View Article

tomcat的server.xml实例

<?xml version='1.0' encoding='utf-8'?> <Server port="8005" shutdown="SHUTDOWN"> <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" /> <Listener...

View Article

find命令

find /data -empty #查找/data路径及其子目录下所有文件大小为0的文件 find /data -size +1024K #查找大小大于1024k的文件 find /data -name "libc*" #查找文件名为libc开头的所有文件 find /data -nouser #查找文件用户不在/etc/passwd文件中的文件 find /data -mtime +2...

View Article


cut和uniq的常用语法

cut -c 3-5 /etc/passwd #以字符为切割单位,打印出/etc/passwd文件中第3到第5个字符 cut -c 3-5,8 /etc/passwd #第3到第5,且第8个字符 cut -d : -f 1-2 /etc/passwd #以:为分割符,打印出/etc/passwd文件中,第1和第2个域 sort /etc/passwd | uniq -c...

View Article


bind的一些知识点

1. bind的查询缓存记录是存在内存中 2. linux主机是不缓存查询记录的 3. ttl 是配置域名的过期时间

View Article
Browsing latest articles
Browse All 25 View Live




Latest Images