I've already written about finding out Linux / UNIX cpu utilization using various tools. You can use same iostat command to find out disk utilization and for monitoring system input/output device loading by observing the time the physical disks are active in relation to their average transfer rat...
Tomcat 自动更新脚本
之前总是要更新基于 Tomcat 的web项目,而且更新频繁。 手工更新太烦人了,遂写了一个半自动的脚本。已经一年多没接触 Tomcat ,脚本仅供参考 。
#!/bin/bash # Author: Jeffery.Su # Mail: [email protected] # Site: http://suzf.net # Date: Jun 1,2014 # Version: 1.0.2 # Definite variable PRO_NAME=javacenter WORK_PATH=/usr/local/tomcat/webapps BACK_PATH=/opt/backup/${PRO_NAME} UPLOAD_PATH=/root/$PRONAME DATE=$(date '+%Y%m%d...
How-to: Using yum with a Proxy Server
Using yum with a Proxy Server
By default, yum accesses network repositories with HTTP. All yum HTTP operations use HTTP/1.1, and are compatible with web proxy servers that support this standard. You may also access FTP repositories, and configure yum to use an FTP proxy server. The squid package provides a proxy service for both HTTP/1.1 and FTP connections.
[Tip] Modify...
Yum_Faq: unpacking of archive failed on file XXX: cpio: rename
今天对系统进行更新大更新了一百多个包,但唯独一个包安装失败。
错误信息如下: error: unpacking of archive failed on file /etc/inittab: cpio: renamecpio
错误 从字面上上来看应该是拷贝/替换文件错误 , 原因可能是权限控制
[10:31:12][root@XXX ~]#yum upgrade -y
Loaded plugins: fastestmirror
Setting up Upgrade Process
...
Running Transaction
Updating : initscripts-9.03.49-1.el6.centos.x86_64 1/2
...
SysVinit to Systemd Cheatsheet
This is a document to help system administrators who need to understand what commands in systemd replace their old workflow in sysvinit. If you want general information on systemd, refer to systemd.
Note on 'service' and 'chkconfig' commands
The 'service&...
FAQ - "Package Power limit" and "Core power limit" notifications.
Article Summary:
This article provides information on Linux - "Package Power limit" and "Core power limit" notifications.
Environment:
Linux - Various distributions - It seems to affect systems with kernel 2.6.18 and above.
Intel based CPU
Issue:
“Core power limit ” and “Package power limit &rd...
LB 简单比较 - F5、NetScaler、LVS、Nginx、Haproxy
负载均衡技术是构建大型网站必不可少的架构策略之一。它的目的是,把用户的请求分发到多台后端的设备上,用以均衡服务器的负载。我们可以把负载均衡器划分为两大类:硬件负载均衡器和软件负载均衡器。
硬件负载均衡器,常见的有NetScaler、F5、Radware和Array等,这些设备为专业的厂商开发的负载均衡器,价格比较高昂,但也提供了高 可用性和高稳定性,同时还提供专业的技术服务,这些设备往往都是一些大企业(非IT类)所热衷的。因为这些企业不缺乏资金,也没有专业的it团队来开发和 运维类似的负载均衡套件。
软件负载均衡器,较流行的有LVS,h...
提问的智慧
原文:How To Ask Questions The Smart Way
作者:Eric Steven Raymond, Rick Moen
翻译:王刚
时间:2010年9月28日
如果你想复制、镜像、翻译或引用本文,请参阅我的复制协议。
弃权申明
许多项目的网站在如何取得帮助的部分链接了本文,这没有关系,也正是我们想要的。但如果你是该项目生成此链接的网管,请在链接附近显著位置注明:我们不提供该项目的服务支持!
我们已经领教了没有此说明带来的痛苦,我们将不停地被一些白痴纠缠,他们认为既然我们发布了本文,那么我们就有责任解决世上所有的技术问题。
如果你是因为需要帮助正在阅读本文,然后就带着可以直接从作者那取得帮助的印象离开,那么你就不幸...
Linux Web 服务器网站故障分析常用的命令
系统连接状态篇
1.查看 TCP 连接状态
netstat -nat |awk '{print $6}'|sort|uniq -c|sort -rn netstat -n | awk '/^tcp/ {++S[$NF]};END {for(a in S) print a, S[a]}' netstat -n | awk '/^tcp/ {++state[$NF]}; END {for(key in state) print key,"t",state[key]}' netstat -n | awk '/^tcp/ {++arr[$NF]};END {for(k in arr) print k,"t&quo...