作为系统管理员,经常会碰到这样一个场景:刚接手应用系统不久,业务扩展迅速,老板要求你再搭建N个应用环境,并希望尽量与运行中的平台一致。
犯难的是,前同事留下的文档不详细,没有关于几个主要Service的编译参数。这时你就必须设法取得信息。

1.通过软件包自己的version参数或者debug工具
例如,MySQL软件包中的mysqlbug,执行该工具,将返回debug信息,过滤出其中的Configure command代码块即可

Read the rest of this entry

, , ,

系统环境 – Vmware WorkStation 7(同系列其他产品,如ESX/Esxi类似)

客户机操作系统 – Ubunt Linux Server 9.10

搭建测试环境,为了快速部署,使用Vmware的Clone功能,快速复制出许多客户机。

启动后发现个问题,除了源客户机,其他副本客户机,网络功能都不正常,具体表现为

  1. ifconfig输出的网络配置,只有lo,没有eth0
  2. “ifconfig –a”输出的网络配置中,eth0已经被自动修改为eth1了
  3. /etc/udev/rules.d/70-persistent-net.rules中,有eth0和eth1的详细定义。eth0为源客户机copy过来的;eth1为虚拟机自动生成的新网卡,定义区块的ATTR{address}记录着新网卡的mac(在虚拟机目录的VMX文件中,也能找到该mac地址)

Read the rest of this entry

,

多人管理同一台Linux Server,为了方便审计,最好在history内加入操作时间。

It comes in handy particularly if there are multiple people maintaining a given server (so you can see when a command was performed) or even if you are the sole maintainer, but can’t remember exactly when you did or changed something.

Edit your /etc/bashrc and append to the bottom:

export HISTTIMEFORMAT="%h/%d – %H:%M:%S "

Read the rest of this entry

# 查看默认的运行级别,Debian系默认运行级别为2,Redhat系默认运行级别为3

[11:34:29.9] root@webserver:/usr/local/webserver/nginx# runlevel

[11:34:31.8] N 2webserverwebserver

Read the rest of this entry

, ,

故障现象

访问页面出现(502)bad gateway,或者(403)Access Forbid错误.

部分错误日志

Apr 15 00:30:41 sqweb2 kernel: lockd: server 192.168.96.50 not responding, timed out

Apr 15 00:31:21 sqweb2 last message repeated 10 times

Apr 15 00:32:31 sqweb2 last message repeated 21 times

Apr 15 00:33:41 sqweb2 last message repeated 17 times

主交换 CPU在10%左右,MEM在20-30%之间波动

Read the rest of this entry

,

1.在本地主机生成SSH公钥和私钥(这里是用Mac OS X的”终端”工具,其他*Nix以及SSH Client步骤类似)

lin-pooplematoMacBook:~ linpoople$ ssh-keygen

lin-pooplematoMacBook:~ linpoople$ cd .ssh

lin-pooplematoMacBook:.ssh linpoople$ ls

id_rsa id_rsa.pub known_hosts #id_rsa为私钥,留在客户端;id_rsa为公钥,传至服务器端

2.利用U盘或者FTP等方式,把公钥传至服务器,存放位置为服务器用户的.ssh目录(如果没有该目录,请创建)

Read the rest of this entry

详细方法官方文档说得很清楚,请移步文章末尾的附件。

#文中提到Data Ontap为Netapp存储的操作系统,基于*Nix定制

几个注意点:

1.需要域控制器上面同时有DNS server。对域控制器不熟的兄弟,可以利用“Windows2003 EE – 管理工具 – 管理您的服务器 – 添加删除角色 -第一台服务器”模式安装。这会把常用的Service都装上,然后移除不需要的服务即可。

Read the rest of this entry

,

一、Windows平台

utorrent

推荐等级:强力推荐

理由:老牌的BT Client,为国内大多数PT站所支持。设置简单,资源占有率低。WEB管理界面和本机一致,无须重新适应。

Read the rest of this entry