最近要写一个oracle启动服务,遇到一个问题,特记录如下:编写好脚本后,测试可以正常启动与关闭,加入服务的时候出现如下提示:

chkconfig --add oracle

service oracle does not support chkconfig

google发现如下链接:

Make sure the rc script has a chkconfig-conforming header.

Citing the manual page:

RUNLEVEL FILES

Each service which should be manageable by chkconfig needs two or more

commented lines added to its init.d script. The first line tells

chkconfig what runlevels the service should be started in by default,

as well as the start and stop priority levels. If the service should

not, by default, be started in any runlevels, a - should be used in place

of the runlevels list. The second line contains a description for the

service, and may be extended across multiple lines with backslash

continuation.

For example, random.init has these three lines:

# chkconfig: 2345 20 80

# description: Saves and restores system entropy pool for

# higher quality random number generation.

This says that the random script should be started in levels 2, 3, 4, and 5,

that its start priority should be 20, and that its stop priority

should be 80. You should be able to figure out what the description says;

the causes the line to be continued. The extra space in front of

the line is ignored.

仔细检查我写的oracle脚本,发现description 我少写一个冒号,加入后,在执行

chkconfig --add oracle

一切正常。

linux怎样服务,如何在linux添加服务相关推荐

  1. linux系统export,Linux入门进阶 - 如何在Linux中使用export命令

    原标题:Linux入门进阶 - 如何在Linux中使用export命令 来自: Linux迷 链接:https://www.linuxmi.com/linux-export.html Linux ex ...

  2. 在红帽Linux上安装samba服务,如何在linux上安装配置samba服务器

    如何在linux上安装配置samba服务器 更新时间:2019-10-29 22:40 最满意答案 1.首先需要登入安装了Linux系统的计算机,安装Samba.Fedora发行版一般使用yum工具安 ...

  3. 深度linux安装spotify,如何在 Linux 上使用 snap 安装 Spotify(声破天)

    如何在 Ubuntu Linux 桌面上安装 spotify 来在线听音乐? Spotify 是一个可让你访问大量歌曲的数字音乐流服务.你可以免费收听或者购买订阅,可以创建播放列表.订阅用户可以免广告 ...

  4. linux 查看ip_如何在 Linux 中查看可用的网络接口 | Linux 中国

    对于某些人来说,他们更偏爱在安装完系统后再进行网络的配置或者更改现存的设置.众所周知,为了在命令行中进行网络设定的配置,我们首先必须知道系统中有多少个可用的网络接口.-- Sk 在我们安装完一个 Li ...

  5. 如何部署linux服务器,CRAP-API——如何在Linux服务器部署CRAP-API教程

    标签:trade   使用   format   ade   cer   art   files   朋友   linux 前言 之前一直用的eolinker的免费版,但是人数有限,所以想找个免费开源 ...

  6. linux 进程suricata,如何在 Linux 系统上安装 Suricata 入侵检测系统

    随着安全威胁的不断发生,入侵检测系统(IDS)在如今的数据中心环境中显得尤为必要.然而,随着越来越多的服务器将他们的网卡升级到10GB/40GB以太网,对如此线路上的硬件进行计算密集型的入侵检测越来越 ...

  7. docker部署在linux怎么代理,如何在linux 上部署docker

    如何在linux 上部署docker? Docker的三大核心概念:镜像.容器.仓库 镜像:类似虚拟机的镜像.用俗话说就是安装文件. 容器:类似一个轻量级的沙箱,容器是从镜像创建应用运行实例, 可以将 ...

  8. Linux入门进阶 - 如何在Linux中使用export命令

    Linux export命令会标记哪些值需要传递给一组子进程.这是bash shell提供的一个简单但有用的特性.它允许管理员在不中断当前会话的情况下传递环境的配置参数.这就是为什么在终端会话重新启动 ...

  9. linux重装eclipse_如何在Linux系统上安装Eclipse

    如何在Linux系统上安装Eclipse 作为Java程序员,需要在Linux系统上安装Eclipse,很多人不知要如何安装,在安装Eclipse前,还需安装JDK,下面小编就给大家介绍下Linux如 ...

  10. linux truncate 命令,如何在Linux中截断truncate文件

    在某些情况下,您可能希望将现有文件截断(空)为零长度.简单来说,截断文件意味着删除文件内容而不删除文件. 截断文件比删除文件,重新创建并设置正确的权限和所有权更快,更容易.另外,如果文件是由进程打开的 ...

最新文章

  1. linux命令-mkdir命令
  2. go 语言系列 (四)位操作用法
  3. C++实现huffman哈夫曼编码的算法(附完整源码)
  4. 你不知道的javascript(上卷)----读书笔记
  5. 【转载】别了,摩托罗拉(十六):平台之乱
  6. 安装deepin_deepin使用笔记,安装steam客户端
  7. Spark cluster 安装
  8. Kubernetes对象之Replication Controller(RC)和Replica Sets(RS)
  9. 趣图:他居然在前端写业务逻辑!
  10. EXCEL 保护工作表、工作薄不被破坏
  11. 基于springboot的在线考试系统
  12. 怎么做一个企业级的BI项目?三步教你迅速搭建
  13. 【龙印】以程序员的角度整定3d打印机的pid实现控温
  14. 矩阵相乘取共轭_共轭矩阵
  15. PPT修行之路(二)-素材库
  16. COOC+VOSviewer可取代任何文献计量与知识图谱软件
  17. PHP几大框架的优点与缺点
  18. 你会刷牙吗?图解正确刷牙方法
  19. 关于Linux mint更换中文字体后全局楷体修改办法
  20. T13656 NOI接站

热门文章

  1. SAP CRM IBASE在ABAP update task中实现update和delete操作
  2. 如何显示Organization unit ID
  3. SAP IBASE logic of pt_equiindx
  4. hierarchy change in CRM - step2 outbound R3AUIBASE queue
  5. Tcode SCU3查看table log的error message - 如何查找necessary PFCG role
  6. 如何在SAP ABAP development studio里进行代码coverage分析
  7. java后台验证不能为空_java validation 后台参数验证的使用详解
  8. lucky前面加a还是an_lucky的用法
  9. arraylist转int数组_LeetCode 1389. 按既定顺序创建目标数组
  10. mac securecrt程序无响应_终端仿真软件SecureCRT和Xshell,让运维工作更轻松