Sheldon Xu

2012年4月13日

创建Redhat/CentOS Service的一般方法

摘要: 1. 在/etc/init.d下创建Service启动脚本例如:vi /etc/init.d/some_service脚本头部的固定写法:#!/bin/sh#chkconfig:23458515#description:somedeschere#processname: the_process_name其中2345是runlevel,即2-5,85是系统启动顺序,15是系统关闭顺序当然,它要有运行权限: chmod +x/etc/init.d/some_service2. 注册到系统chkconfig--addsome_service3. 设置随系统启动激活:chkconfig some_se 阅读全文

posted @ 2012-04-13 10:50 Sheldon Xu 阅读(684) 评论(0) 推荐(0) 编辑

导航