博客
关于我
linux debian系统中利用sysv-rc-conf启动服务
阅读量:790 次
发布时间:2023-01-31

本文共 486 字,大约阅读时间需要 1 分钟。

安装sysv-rc-conf并设置Tomcat自启动服务

1. 安装sysv-rc-conf

在Ubuntu系统上安装sysv-rc-conf工具,可参考以下步骤:

sudo nano /etc/apt/sources.list.d/sources.list" --append"

添加源 :

资源库配置

打开文件并添加以下内容:

deb http://ports.ubuntu.com/ubuntu-ports/ trusty main universe restricted multiverse

保存文件后,安装sysv-rc-conf:

sudo apt-get updatesudo apt-get install sysv-rc-conf

2. 设置Tomcat自启动服务

使用sysv-rc-conf工具启用Tomcat服务:

sudo sysv-rc-conf tomcat on

为Tomcat服务添加自启动支持:

chmod u+x /etc/init.d/tomcat

(如有需改动,请参考自定义脚本内容,建议参考链接:

Tomcat初始化脚本参考)
你可能感兴趣的文章
LeetCode 无重复字符的最长子串 获取字符串中不重复的子串最大长度
查看>>
leetCode 给定数组,目标值 计算数组下标
查看>>
leetcode 验证回文字符串 java实现
查看>>
LeetCode(229):Majority Element ||
查看>>
leetcode--
查看>>
LeetCode--020--括号匹配
查看>>
Leetcode-966 Vowel Spellchecker(元音拼写检查器)
查看>>
LeetCode-Binary Tree Maximum Path Sum
查看>>
LeetCode111.二叉树最小深度
查看>>
LeetCode136.只出现一次的数字[异或运算典例]
查看>>
LeetCode13:罗马数字转整数
查看>>
leetcode191-打家劫舍
查看>>
leetcode23-合并K个升序链表
查看>>
leetcode231 判断一个给定的整数是否是2的n次幂
查看>>
leetcode238-除自身以外数组的乘积
查看>>
LeetCode268.缺失数字
查看>>
LeetCode331.验证二叉树的前序序列化
查看>>
Leetcode: Spiral Matrix II
查看>>
LeetCode: String to Integer (atoi)
查看>>
Leetcode:454. 4Sum II
查看>>