当前位置: 首页 > article >正文

linux debian系统中利用sysv-rc-conf启动服务

1、安装sysv-rc-conf

cd /etc/apt/sources.list.d

新建资源文件
sudo vi situation.list

追加资源库:
deb http://ports.ubuntu.com/ubuntu-ports/ trusty main universe restricted multiverse

安装sysv-rc-conf
sudo apt-get update
sudo apt-get install sysv-rc-conf

2、设置自启动服务

sudo sysv-rc-conf tomcat on

tomcat服务的简要说明

vi /etc/init.d/tomcat

------------------
tomcat脚本略。。。,可以参照
https://blog.csdn.net/yhj_911/article/details/106976420?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522C1A675B2-34EA-4DEE-B40E-126628A6F1B9%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fblog.%2522%257D&request_id=C1A675B2-34EA-4DEE-B40E-126628A6F1B9&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~blog~first_rank_ecpm_v1~rank_v31_ecpm-4-106976420-null-null.nonecase&utm_term=tomcat&spm=1018.2226.3001.4450
------------------

给与该文件权限
chmod u+x /etc/init.d/tomcat

http://www.kler.cn/news/356997.html

相关文章:

  • javayufa
  • 10_实现readonly
  • linux修改mac和ip地址的方法
  • ubuntu docker安装elasticsearch:7.12.1
  • BeautifulSoup进阶篇:高效解析的艺术
  • Android SELinux——上下文Context介绍(九)
  • Cortex-A7:如何切换ARM和Thumb状态
  • Day3 线性表(Linear List)
  • 深入理解Reactor核心概念
  • 到底是微服务,还是SOA?
  • 探索免费音频剪辑软件的神奇功能
  • 信息收集2
  • 软件测试工程师:如何写出好的测试用例?
  • 《七度荒域:混沌之树》风灵月影二十二项游戏辅助:上帝模式/无限HP和EP/金币不减
  • 利用 OBS 推送 WEBRTC 流到 smart rtmpd
  • 数据结构--二叉树随记
  • IDEA中我常用的快捷键
  • 基于微信小程序的汽车预约维修系统(lw+演示+源码+运行)
  • 前端遮罩层的应用
  • 51单片机的智能电饭煲【proteus仿真+程序+报告+原理图+演示视频】