已阅读5页,还剩6页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
.vi? WebApachehttpdApachehttpd.;LinuxLinux(Process Idenity NumberPID)(Parent Process ID,PPID)PIDPPIDPID(Child Process)1initinitinitinitinitps-afID1Linuxpstreepstree.LinuxLinuxI386PCB(Process Control Block)PCB.LinuxSWAP(zombie)exit.LinuxforkLinux? forkfork:#include#includepid_t fork();Linuxfork()/WebWebWebfork()systemstring(sh)stringshstringPATH(waitpid()-1.shellsystemexecexitsleepwaitpoppensystemhttpd.1.Linux(PID);(1)dfdfps -xdfdfpsfindps auxfind(2)shell2.Ctrl+CkillCPU;killLinux.LinuxinitinitLinuxID1,Linuxinitinit/etc/inittabInittabRHEL 4inittab:#inittab#author#Default runlevel.the runlevels used by rhs are:#0 - halt (do not set initdefault to this)#1 - single user mode#2 - multiuser,without nfs (the same as 3, if you do not haver networking)#3 - full multiuser mode#4 - unused#5 - X11#6 - reboot (do not set initdefault to this)#/5,id:5:initdefault:/etc/rc.d/rc.sysinit#system initialization.si:sysinit:/etc/rc.d/rc.sysinit10:0:wait:/etc/rc.d/rc 011:1:wait:/etc/rc.d/rc 112:2:wait:/etc/rc.d/rc 213:3:wait:/etc/rc.d/rc 314:4:wait:/etc/rc.d/rc 4/55/etc/rc.d/rcinit15:5:wait:/etc/rc.d/rc 516:6:wait:/etc/rc.d/rc 6/ctrl-alt-delete#trap ctrl-alt-deleteca:ctrlaltdel:/sbin/shutdown -t3 -r now#.#/2345ttyX/sbin/mingettyttyXmingetty#run gettys in standard runlevels1:2345:respawn:/sbin/mingetty tty12:2345:respawn:/sbin/mingetty tty23:2345:respawn:/sbin/mingetty tty34:2345:respawn:/sbin/mingetty tty45:2345:respawn:/sbin/mingetty tty56:2345:respawn:/sbin/mingetty tty6/5xdmxdmx:5:respawn:/etc/x11/prefdm -nodaemon#run xdm in runleverl 5Inittabid:runlevels:action:procees1.id122.runlevels1234535Linux7012(NFS)34563.actioninitinitrespawn4processprocesswait4processonce4processboot4processbootwait4processoffondemandondemand4processinitdefaultprocesssysinitbootbootwait4processpowerwait4processpowerfailnow4processctrlaltdelctrl+alt+del cessProcessinit/etc/rc.d/rcXXrcX/etc/rc.d/rc.X/etc/rc.d:#ls –l /etc/rc.d/total 112drwxr-xr-x 2 root root 4096 3/15 14:44 init.d-rxwr-xr-x 1 root root 2352 2004-3-17 rcdrwxr-xr-x 2 root root 4096 3/15 14:44 rc0.ddrwxr-xr-x 2 root root 4096 3/15 14:44 rc1.ddrwxr-xr-x 2 root root 4096 3/15 14:44 rc2.ddrwxr-xr-x 2 root root 4096 3/15 14:44 rc3.ddrwxr-xr-x 2 root root 4096 3/15 14:44 rc4.ddrwxr-xr-x 2 root root 4096 3/15 14:44 rc5.ddrwxr-xr-x 2 root root 4096 3/15 14:44 rc6.d-rxwr-xr-x 1 root root 2200 2004-3-17 rc.local-rxwr-xr-x 1 root root 2352 2004-3-17 rc.sysinit/etc/rc.d/rc5.d:#ls –l /etc/rc.d/rc5.dSKSKchkconfigshellinit/etc/inittabkill-SIGHUP 1init q.Linux1.Linux(thread)()CPUPOSIXPthreadLinux(LWP)/LWPCPUPthread2.Pthread(1)I/OI/O(2)(3)PthreadLinux3.Linux19991Linux 2.2fork2.2.x(thread)LinuxPthreadLinuxforkLinux 2.24096/Linux20011Lin
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 山东省济宁市金乡县2023-2024学年七年级下学期3月月考数学试卷(含解析)
- 2024年广东省九年级中考数学5月模拟卷
- 企业供应链数字化策略实践
- 2024年克孜勒苏柯尔克孜自治州《高等数学(一)》(专升本)临考冲刺试卷含解析
- 2024年乌什县《高等数学(一)》(专升本)预测试卷含解析
- 合同英语特色与写作技巧
- 农村门面出租合同
- 码头消防维保合同(2011年)
- 景程教育2010年证券从业资格考试取证保过班协议
- 2024年多层电容器用陶瓷介质粉料合作协议书
- DANFOSS安装指导手册
- 暖通工程设备吊装施工方案
- 毕业设计地铁车站答辩ppt课件
- excel____T检验_公式
- 光照疗法操作评分标准护理技术操作考核评分标准
- 罗斯308肉鸡营养标准
- 团队机票操作流程(20201001211150)
- 变电站接地网施工方案
- 浅议超滤技术在化工工艺中的应用
- 九年级下册化学知识点苏教版
评论
0/150
提交评论