:: ==>任何模式都执行
sysinit ==>该进程在系统启动时运行一次 initdefault ==>指定系统的默认运行等级
wait ==>只激活一次,init等待该进程,直到该进程结束。
powerfail ==>init进程收到SIGPWR信号下运行的进程,PS电源在电源发生问题时会向该进程发送SIGPWR信号
respawn ==>一直运行服务,当该进程终止时自动启动。 once ==>该进程只运行1次 off ==>不激活 在rc.boot 3阶段
l6:6:wait:/etc/rc.d/rc 6 在改变level时执行的脚本.wait表示,只有执行完这个程序,并结束后才会执行下一行.
常用下面的命令来查看和修改该文件 lsitab Lists records in the /etc/inittab file. mkitab Adds records to the /etc/inittab file.
rmitab Removes records from the /etc/inittab file.
8.关机 shutdown
shutdown +2 2分钟后关机 shutdown -Fr强制关机并重起 shutdown -m 单用户关闭 8.关机顺序 /etc/rc.shutdown 杀掉用户进程 停止系统服务进程 卸载文件系统 停止处理器
9.错误信息 errpt
errpt -a 具体细节 errclear 0 --清理信息
正常信息也可以由errpt输出
10.启动停止服务 查服务状态 lssrc -g 组名
启动一个系统服务
startsrc -s lpd 启动telnet startsrc -t telnet
ftp->telnet...=>inetd vi /etc/inetd.conf
修改后要执行refresh
停止服务stopsrc -s ldp stopsrc -t telnet
11.kill
默认是-1:即等待进程运行完了,再杀 -9:强制杀进程
12.自动shutdown脚本 vi /etc/rc.shutdown
13.改变系统环境 语言环境 locale
14.stty -echo
不显示信息到屏幕
+=================+ |五、AIX内存优化 | +=================+
http://publib.boulder.ibm.com/doc_link/en_US/a_doc_lib/aixbman/prftungd/2365c71.htm
+=================+ |六、DEVICES | +=================+ 配置设备
1.使用cfgmgr命令可以配置设备 2.b块设备->文件系统->有os buffer c字符设备->裸设备
任何逻辑卷都对应字符设备和块设备 3.
预定义设备:
所有系统可能支持的设备
自定义设备:
所有在系统中已经定义的或者已经安装有效的设备 4. lsdev
-P -H查看预定义设备的情况
-Pc 查看指定的自定义设备的情况 -C 查看自定义设备的情况 -bash-2.05b$ lsdev -P -H
class type subclass description
logical_volume vgtype vgsubclass Volume group logical_volume lvtype lvsubclass Logical volume
lvm lvdd lvm LVM Device Driver aio aio node Asynchronous I/O
pty pty pty Asynchronous Pseudo-Terminal memory L2cache_rspc sys L2 Cache memory totmem sys Memory ...
-bash-2.05b$ lsdev -C
sys0 Available 00-00 System Object sysplanar0 Available 00-00 System Planar pci0 Available 00-400000000110 PCI Bus pci1 Available 00-400000000111 PCI Bus pci2 Available 00-400000000112 PCI Bus 5.lsattr
查看系统所有内核信息 lsattr -EH -l sys0 sys0是内核
-bash-2.05b$ lsattr -EH -l sys0
attribute value description user_settable
keylock normal State of system keylock at boot time False
maxbuf 20 Maximum number of pages in block I/O BUFFER CACHE True
maxmbuf 0 Maximum Kbytes of real memory allowed for MBUFS True
maxuproc 128 Maximum number of PROCESSES allowed per user True
autorestart false Automatically REBOOT system after a crash True
iostat false Continuously maintain DISK I/O history True
realmem 4194304 Amount of usable physical memory in Kbytes False
查看内存使用情况
bash-2.05a$ lsattr -EH -l sys0 -a realmem
attribute value description user_settable
realmem 8388608 Amount of usable physical memory in Kbytes False
6.lscfg -v
所以设备配置信息 -bash-2.05b$ lscfg -v
INSTALLED RESOURCE LIST WITH VPD
The following resources are installed on your machine.
Model Architecture: chrp
Model Implementation: Multiple Processor, PCI bus
sys0 00-00 System Object sysplanar0 00-00 System Planar mem0 00-00 Memory proc0 00-00 Processor
Device Specific.(YL)........U0.1-P1-C1
L2cache0 00-00 L2 Cache proc1 00-01 Processor
Device Specific.(YL)........U0.1-P1-C1
pci0 00-400000000110 PCI Bus
Device Specific.(YL)........U0.1-P2
isa0 1G-18 ISA Bus
Device Specific.(YL)........U0.1-P2
fda0 01-D1 Standard I/O Diskette Adapter
Device Specific.(YL)........U0.1-P2/D1
fd0 01-D1-00-00 Diskette Drive
siokma0 01-K1 Keyboard/Mouse Adapter
Device Specific.(YL)........U0.1-P2/K1
sioka0 01-K1-00 Keyboard Adapter kbd0 01-K1-00-00 PS/2 keyboard sioma0 01-K1-01 Mouse Adapter mouse0 01-K1-01-00 3 button mouse
sa0 01-S1 Standard I/O Serial Port
Device Specific.(YL)........U0.1-P2/S1
sa1 01-S2 Standard I/O Serial Port
Device Specific.(YL)........U0.1-P2/S2
sa2 01-S3 Standard I/O Serial Port
Device Specific.(YL)........U0.1-P2/S3
sa3 01-S4 Standard I/O Serial Port
Device Specific.(YL)........U0.1-P2/S4
pci1 00-400000000111 PCI Bus
Device Specific.(YL)........U0.1-P2
pci3 1Y-10 PCI Bus
Device Specific.(YL)........U0.1-P2
scsi0 1Z-08 Wide/Ultra-3 SCSI I/O Controller
Device Specific.(YL)........U0.1-P2/Z1
cd0 1Z-08-00-1,0 16 Bit LVD SCSI DVD-ROM Drive (4700 MB)
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库IBM+AIX内部教程(2)在线全文阅读。
相关推荐: