Linux系统维护例行操作指导手册.docx
- 文档编号:6103044
- 上传时间:2023-01-03
- 格式:DOCX
- 页数:32
- 大小:47.73KB
Linux系统维护例行操作指导手册.docx
《Linux系统维护例行操作指导手册.docx》由会员分享,可在线阅读,更多相关《Linux系统维护例行操作指导手册.docx(32页珍藏版)》请在冰豆网上搜索。
Linux系统维护例行操作指导手册
神州数码系统集成服务有限公司
密级:
第1篇(共1篇)
Linux系统维护例行操作
指导手册
外包交付中心
编写日期
审核日期
批准日期
方案名称:
编写:
审核:
批准:
修订状况
章节编号
章节名称
修订内容简述
修订日期
修订前版本号
修改人
目录:
1系统架构3
1.1招商信诺Linux系统架构图3
1.2服务器概要信息3
1.3数据库信息3
2主机系统监控和预防性检查操作方法3
2.1操作频率3
2.2检查硬盘灯、电源灯等状态4
2.3查看网卡状态及重启4
2.4查看硬盘数以及分区状态4
2.5查看系统主要进程运行情况5
2.6查看活动进程5
2.7查看操作系统空间情况9
2.8检查操作系统日志10
2.8.1系统登录日志:
last10
2.8.2查看系统启动日志:
dmesg10
2.8.3查看/var/log/messages系统日志10
2.8.4查看其他日志10
2.9查看操作系统性能10
2.9.1查看系统实时运行状态10
2.9.2查看系统负载情况12
2.9.3查看最近1,5,15分钟平均系统负载:
uptime12
2.9.4查看当前登陆系统的用户12
2.9.5查看物理内存和Swap空间使用率:
free13
3例行作业操作方法13
3.1操作频率13
3.2操作系统备份13
3.3过期系统日志清除13
4操作系统手工停止、启动、重启操作步骤13
4.1关闭操作系统13
4.2重启操作系统13
4.3启动操作系统14
5操作系统常见需求处理方法、常见问题解决方法14
5.1系统加固:
14
5.2忘记root密码14
5.3配置网卡16
5.4配置防火墙16
6操作系统应急恢复方法16
1系统架构
1.1Linux系统架构图
PS:
此图只是示例,请根据实际项目系统架构情况重新绘制
1.2服务器概要信息
服务器名
IP地址
操作系统
主要应用
1.3数据库信息
数据库所在服务器名
IP地址
数据库版本
端口
Oracle用户名
SID
注:
以下各检查项,如果有监控软件能实现检查项的监控报警,就不用手工检查。
否则需要手工检查。
2主机系统监控和预防性检查操作方法
2.1操作频率
每工作日检查1次。
2.2检查硬盘灯、电源灯等状态
硬盘灯、电源灯正常为绿灯,如果出现黄灯或红灯说明有问题。
如果电源报警灯亮可以先检查电源是否插好。
如果都已插好则是电源损坏。
需要通知硬件代维方更换硬件。
2.3查看网卡状态及重启
重启网络服务:
#servicenetworkrestart
查看网络状态:
#ifconfig
pmc2:
~#ifconfig
eth0Linkencap:
EthernetHWaddr00:
1F:
29:
09:
69:
4A
inetaddr:
10.1.180.73Bcast:
10.1.180.255Mask:
255.255.255.0
UPBROADCASTRUNNINGMULTICASTMTU:
1500Metric:
1
RXpackets:
6421788961errors:
0dropped:
0overruns:
0frame:
0
TXpackets:
9685332818errors:
0dropped:
0overruns:
0carrier:
0collisions:
0txqueuelen:
1000
RXbytes:
652478847531(622252.3Mb)TXbytes:
12895085984008(12297712.3Mb)
Interrupt:
185Memory:
f8000000-f8012100
loLinkencap:
LocalLoopback
inetaddr:
127.0.0.1Mask:
255.0.0.0
UPLOOPBACKRUNNINGMTU:
16436Metric:
1
RXpackets:
6385721errors:
0dropped:
0overruns:
0frame:
0
TXpackets:
6385721errors:
0dropped:
0overruns:
0carrier:
0collisions:
0txqueuelen:
0
RXbytes:
402215646(383.5Mb)TXbytes:
402215646(383.5Mb)
2.4查看硬盘数以及分区状态
#fdisk–l
pmc2:
/var/log#fdisk-l
Disk/dev/cciss/c0d0:
146.7GB,146778685440bytes
255heads,63sectors/track,17844cylinders
Units=cylindersof16065*512=8225280bytes
DeviceBoot
Start
End
Blocks
IdSystem
/dev/cciss/c0d0p1
1
262
2104483+
82Linuxswap/Solaris
/dev/cciss/c0d0p2*
263
17844
141227415
83Linux
2.5查看系统主要进程运行情况
#ps–ef|grepbackup
2.6查看活动进程
#ps–aux监听某个进程lsof–p进程号pmc2:
~#ps-aux
Warning:
badpssyntax,perhapsabogus'-'?
See
USER
PID%CPU%MEM
VSZ
RSSTTY
STATSTARTTIMECOMMAND
root
1
0.0
0.0
780304?
S
2008
0:
49init[5]
root
2
0.0
0.0
0
0?
S
2008
0:
01[migration/0]
root
3
0.0
0.0
0
0?
SN
2008
0:
00[ksoftirqd/0]
root
4
0.0
0.0
0
0?
S
2008
0:
00[migration/1]
root
5
0.0
0.0
0
0?
SN
2008
0:
00[ksoftirqd/1]
root
6
0.0
0.0
0
0?
S
2008
0:
00[migration/2]
root
7
0.0
0.0
0
0?
SN
2008
0:
00[ksoftirqd/2]
root
8
0.0
0.0
0
0?
S
2008
0:
00[migration/3]
root
9
0.0
0.0
0
0?
SN
2008
0:
00[ksoftirqd/3]
root
10
0.0
0.0
0
0?
S
2008
0:
01[migration/4]
root
11
0.0
0.0
0
0?
SN
2008
0:
00[ksoftirqd/4]
root
12
0.0
0.0
0
0?
S
2008
0:
00[migration/5]
root
13
0.0
0.0
0
0?
SN
2008
0:
00[ksoftirqd/5]
root
14
0.0
0.0
0
0?
S
2008
0:
00[migration/6]
root
15
0.0
0.0
0
0?
SN
2008
0:
00[ksoftirqd/6]
root
16
0.0
0.0
0
0?
S
2008
0:
01[migration/7]
root
17
0.0
0.0
0
0?
SN
2008
0:
00[ksoftirqd/7]
root
18
0.0
0.0
0
0?
S<
2008
0:
00[events/0]
root
19
0.0
0.0
0
0?
S<
2008
0:
00[events/1]
root
20
0.0
0.0
0
0?
S<
2008
0:
00[events/2]
root
21
0.0
0.0
0
0?
S<
2008
0:
00[events/3]
root
22
0.0
0.0
0
0?
S<
2008
0:
00[events/4]
root
23
0.0
0.0
0
0?
S<
2008
0:
00[events/5]
root
24
0.0
0.0
0
0?
S<
2008
0:
00[events/6]
root
25
0.0
0.0
0
0?
S<
2008
0:
00[events/7]
root
26
0.0
0.0
0
0?
S<
2008
0:
00[khelper]
root
27
0.0
0.0
0
0?
S<
2008
0:
00[kthread]
root
37
0.0
0.0
0
0?
S<
2008
0:
00[kblockd/0]
root
38
0.0
0.0
0
0?
S<
2008
0:
08[kblockd/1]
root
39
0.0
0.0
0
0?
S<
2008
0:
08[kblockd/2]
root
40
0.0
0.0
0
0?
S<
2008
0:
00[kblockd/3]
root
41
0.0
0.0
0
0?
S<
2008
0:
00[kblockd/4]
root
42
0.0
0.0
0
0?
S<
2008
0:
00[kblockd/5]
root
43
0.0
0.0
0
0?
S<
2008
0:
06[kblockd/6]
root
44
0.0
0.0
0
0?
S<
2008
0:
00[kblockd/7]
root
45
0.0
0.0
0
0?
S<
2008
0:
00[kacpid]
root
244
0.0
0.0
0
0?
S
2008
99:
04[kswapd0]
root
245
0.0
0.0
0
0?
S<
2008
0:
00[aio/0]
root
246
0.0
0.0
0
0?
S<
2008
0:
00[aio/1]
root
247
0.0
0.0
0
0?
S<
2008
0:
00[aio/2]
root
248
0.0
0.0
0
0?
S<
2008
0:
00[aio/3]
root
249
0.0
0.0
0
0?
S<
2008
0:
00[aio/4]
root
250
0.0
0.0
0
0?
S<
2008
0:
00[aio/5]
root
251
0.0
0.0
0
0?
S<
2008
0:
00[aio/6]
root
252
0.0
0.0
0
0?
S<
2008
0:
00[aio/7]
root
478
0.0
0.0
0
0?
S<
2008
0:
00[cqueue/0]
root
479
0.0
0.0
0
0?
S<
2008
0:
00[cqueue/1]
root
480
0.0
0.0
0
0?
S<
2008
0:
00[cqueue/2]
root
481
0.0
0.0
0
0?
S<
2008
0:
00[cqueue/3]
root
482
0.0
0.0
0
0?
S<
2008
0:
00[cqueue/4]
root
483
0.0
0.0
0
0?
S<
2008
0:
00[cqueue/5]
root
484
0.0
0.0
0
0?
S<
2008
0:
00[cqueue/6]
root
485
0.0
0.0
0
0?
S<
2008
0:
00[cqueue/7]
root
486
0.0
0.0
0
0?
S<
2008
0:
00[kseriod]
root
518
0.0
0.0
0
0?
S<
2008
0:
00[kpsmoused]
root
1007
0.0
0.0
0
0?
S<
2008
0:
00[ata/0]
root
1008
0.0
0.0
0
0?
S<
2008
0:
00[ata/1]
root
1009
0.0
0.0
0
0?
S<
2008
0:
00[ata/2]
root
1010
0.0
0.0
0
0?
S<
2008
0:
00[ata/3]
root
1011
0.0
0.0
0
0?
S<
2008
0:
00[ata/4]
root
1012
0.0
0.0
0
0?
S<
2008
0:
00[ata/5]
root
1013
0.0
0.0
0
0?
S<
2008
0:
00[ata/6]
root
1014
0.0
0.0
0
0?
S<
2008
0:
00[ata/7]
root
1015
0.0
0.0
0
0?
S<
2008
0:
00[ata_aux]
root
1071
0.0
0.0
0
0?
S<
2008
0:
00[reiserfs/0]
root
1072
0.0
0.0
0
0?
S<
2008
1:
56[reiserfs/1]
root
1073
0.0
0.0
0
0?
S<
2008
1:
55[reiserfs/2]
root
1074
0.0
0.0
0
0?
S<
2008
0:
00[reiserfs/3]
root
1075
0.0
0.0
0
0?
S<
2008
0:
00[reiserfs/4]
root
1076
0.0
0.0
0
0?
S<
2008
0:
22[reiserfs/5]
root
1077
0.0
0.0
0
0?
S<
2008
1:
25[reiserfs/6]
root
1078
0.0
0.0
0
0?
S<
2008
0:
00[reiserfs/7]
root
1140
0.0
0.0
7128
700?
S
2008
0:
00/sbin/udevd--daemon
root
1812
0.0
0.0
0
0?
S<
2008
0:
00[khubd]
root
1824
0.0
0.0
0
0?
S
2008
0:
00[shpchpd_event]
root
2865
0.0
0.0
10516
736?
Ss
2008
0:
00/sbin/resmgrd
root
2896
0.0
0.0
8296
876?
Ss
2008
2:
27/sbin/syslog-ng
root
2899
0.0
0.0
2640
404?
Ss
2008
0:
08/usr/sbin/irqbalance
root
2902
0.0
0.0
2884
668?
Ss
2008
2:
34/sbin/klogd-c1-x-x
root
2907
0.0
0.0
2620
520?
Ss
2008
0:
00/sbin/acpid
100
2941
0.0
0.0
13164
1140?
Ss
2008
0:
33/usr/bin/dbus-daemon--system
root
3039
0.0
0.0
13400
3484?
Ss
2008
0:
06/usr/sbin/hald--daemon=yes
--retain-privileges
root
3418
0.0
0.0
6012
736?
S
2008
0:
00hald-addon-acpi
root
3536
0.0
0.0
12012
632?
S 2008 0: 00/sbin/auditd-n root 3538 0.0 0.0 0 0? S< 2008 0: 00[kauditd] nobody 3542 0.0 0.0 4844 672? Ss 2008 0: 00/sbin/portmap daemon 3593 0.0 0.0 12984 1044? Ss 2008 0: 00/usr/sbin/slpd root 3709 0.0 0.0122964 1104? Ssl 2008 2: 16/usr/sbin/nscd lp 3879 0.0 0.0 24284 4120? Ss 2008 0: 00/usr/sbin/cupsd root 3893 0.0 0.0 0 0? S< 2008 0: 00[nfsd4] root 3894 0.0 0.0 0 0? S 2008 0: 00[nfsd] root 3895 0.0 0.0 0 0? S 2008 0: 00[nfsd] root 3896 0.0 0.0 0 0? S 2008 0: 00[nfsd] root 3897 0.0 0.0 0 0? S 2008 0: 00[nfsd] root 3899 0.0 0.0 0 0? S 2008 0: 00[lockd] root 3900 0.0 0.0 0 0? S< 2008162: 34[rpciod/0] root 3901 0.0 0.0 0 0? S< 2008 0: 00[rpciod/1] root 3902 0.0 0.0 0 0? S< 2008 0: 00[rpciod/2] root 3903 0.0 0.0 0 0? S< 2008 0: 00[rpciod/3] root 3904 0.0 0.0 0 0? S< 2008 0: 00[rpciod/4] root 3905 0.0 0.0 0 0? S< 2008 0: 00[rpciod/5] root 3906 0.0 0.0 0 0? S< 2008 0: 00[rpciod/6] root 3907 0.0 0.0 0 0? S< 2008 0: 00[rpciod/7] root 3925 0.0 0.0 5928 624? Ss 2008 0: 00/usr/sbin/rpc.mountd root 3964 0.0 0.0 27056 1464? Ss 2008 0: 11/usr/sbin/sshd-o PidFile=/var/run/sshd.init.pid root 3978 0.0 0.0 20288 2004? S 2008 0: 06/usr/sbin/powersaved-d-f /var/run/acpid.socket-v3 root 4059 0.0 0.0 21324 2172? Ss 2008 0: 02/usr/lib/postfix/master root 4090 0.0 0.0 7100 572? Ss 2008 0: 01/usr/sbin/cron postfix 4095 0.0 0.0 21328 2160? S 2008 0: 11qmgr-l-tfifo-u root 4393 0.0 0.0 3060 704tty1 Ss+ 2008 0: 00/sbin/mingetty--nocleartty1 root 4395 0.0 0.0 3060 692tty3 Ss+ 2008 0: 00/sbin/mingettytty3 root 4396 0.0 0.0 3060 708tty4 Ss+ 2008 0: 00/sbin/mingettytty4 root 4397 0.0 0.0 3064 688tty5 Ss+ 2008 0: 00/sbin/mingettytty5 root 4398 0.0 0.0 3064 692tty6 Ss+ 2008 0: 00/sbin/mingettytty6 oracle 4631 0.0 0.1 6304810244? Ssl 2008
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- Linux 系统维护 例行 操作 指导 手册
![提示](https://static.bdocx.com/images/bang_tan.gif)