HP UNIX 系统关闭与启动 

 |                 Multi user mode                                |

      |----------------------------------------------------------------|

       /|/          /|/         |             |              |      /|/

        |            |          |             |              |       |

        |          boot        shutdown       |              |       |

        |            |          |             |              |       |

        |    ________|_________/_/________   shutdown -h     |       |

        |   |        single user mode    |    |              |     shutdown -r

        |   |----------------------------|    |              |       |

        |      |             |                |              |       |

        |      |             | reboot -h      |              |       |

        |      |             |                |              |       |

    reboot     |     _______/_/______________/_/             |       |

        |      |     |  Halt state       |                   |       |

        |      |     |-------------------|                   |       |

        |      |             |                               |       |

        |      |             | power off                     |       |

        |      |             |                               |       |

        |______|             |                               |_______|

      ______________________/_/________________________________________

      |                power off                                      |

      |---------------------------------------------------------------|

     

     

      Ctrl+B 进入硬件程序环境

      co     返回操作系统

      rs     重启

     

      PDC互交,当

        1 主引导磁盘引导,使用替代内核

        2 主引导磁盘损坏,从备份盘引导

        3 从安装介质引导,安装操作系统

     

      ISL交互,当

        1 默认内核(/stand/vmunix)不可引导

        2 引导到单用户模式,而非多用户模式

        3 忘了root密码

     

      PDC

        boot               正常启动

        boot pri isl       ISL交互

     

      ISL命令

     

      到多用户模式                hpux                          

      引导到单用户模式             hpux  -is                           

      /stand中列出备份文件      hpux  ls

      指定启动内核                hpux  -is /stand/vmunix.prex  

      显示LIF中的auto文件     hpux show autofile

      指定默认内核           hpux set autofile "hpux /stand/vmnuix.a"

      

     

      shutdown - ry 0 立即启动

      reboot          强行重启

     

     

      运行级别

      0级    关闭系统

      s级    单用户,使用shoudown进入

      S级    单用户,VTY可访问

      1级    类似于单用户,安装了文件系统,syncer在运行

      2级    多用户

      3级    CDE可用,NFS可用

      4级    HP VUE可用

     

      查看运行级别  who -r

        /etc/inittab中定义了进程init的参数

       

     

     重新配置内核

     新建内核生成三个文件

       vmunix_test

       dlkm.vmunix_test

       system.SAM

     

      手工升级内核

       1  cp /stand/system  /stand/system.prev

          cp /stand/build/system.SAM  stand/system

        2 kmupdate  /stand/build/vmunix_test

        3 shutdown -ry 0

      不要使用cpmv替代kmupdate

     

      lsdev  列出当前配置的内核驱动程序

      sysdef 列出当前内核可配参数

      system_prep -s system  生成内核参数文件

      km_kernel -s ./system  生成内核/stand/build/vmunix_test

     

      查看内核子系统

      kmsystem | grep -e nfs -e lan

    

     

        系统级别改变,升序地执行脚本,S/K脚本命名习惯S+K=1000

        可有SXXX相同的情况,此时同时启动多个服务

       

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值