惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Attack and Defense Labs
Attack and Defense Labs
T
Threatpost
C
Cybersecurity and Infrastructure Security Agency CISA
H
Hackread – Cybersecurity News, Data Breaches, AI and More
I
Intezer
C
Cyber Attacks, Cyber Crime and Cyber Security
The Register - Security
The Register - Security
量子位
Security Latest
Security Latest
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
大猫的无限游戏
大猫的无限游戏
小众软件
小众软件
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
C
CXSECURITY Database RSS Feed - CXSecurity.com
MyScale Blog
MyScale Blog
J
Java Code Geeks
Apple Machine Learning Research
Apple Machine Learning Research
Google DeepMind News
Google DeepMind News
WordPress大学
WordPress大学
Spread Privacy
Spread Privacy
Jina AI
Jina AI
博客园 - 【当耐特】
P
Palo Alto Networks Blog
Last Week in AI
Last Week in AI
SecWiki News
SecWiki News
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
G
GRAHAM CLULEY
宝玉的分享
宝玉的分享
Hacker News - Newest:
Hacker News - Newest: "LLM"
T
The Blog of Author Tim Ferriss
V
Vulnerabilities – Threatpost
有赞技术团队
有赞技术团队
T
Tor Project blog
H
Hacker News: Front Page
A
Arctic Wolf
NISL@THU
NISL@THU
A
About on SuperTechFans
云风的 BLOG
云风的 BLOG
Engineering at Meta
Engineering at Meta
V
V2EX
N
News and Events Feed by Topic
Webroot Blog
Webroot Blog
Know Your Adversary
Know Your Adversary
P
Privacy International News Feed
I
InfoQ
D
Docker
L
LINUX DO - 最新话题
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
U
Unit 42

清江 林影 – 魔帆博客

CentOS 7.0关闭默认防火墙启用iptables防火墙 | 魔帆博客 如何修改linux系统主机名称 | 魔帆博客 Google Docker 初探 | 魔帆博客 尘 埃 | 魔帆博客 倦 | 魔帆博客 荷塘 | 魔帆博客 无题 | 魔帆博客 闲想 | 魔帆博客 月光下的玫瑰 | 魔帆博客 清晨的小鸟 | 魔帆博客 矛盾 | 魔帆博客 雨夜 | 魔帆博客 竹林幻梦 | 魔帆博客 因为认识了你 | 魔帆博客 爱情打油诗 | 魔帆博客
Linux Tomcat 开机启动 | 魔帆博客
清江 林影 · 2017-08-16 · via 清江 林影 – 魔帆博客

1.创建软链接文件

ln –s /usr/local/tomcat/bin/startup.sh /etc/init.d/tomcat

2.修改权限

chmod +x tomcat

3.修改链接文件

添加到下面两句到 #!/bin/bash

# chkconfig: 2345 10 90
# description: myservice ....

其中:

2345 是默认启动级别,级别有0-6共7个级别。

  • 等级0表示:表示关机
  • 等级1表示:单用户模式
  • 等级2表示:无网络连接的多用户命令行模式
  • 等级3表示:有网络连接的多用户命令行模式
  • 等级4表示:不可用
  • 等级5表示:带图形界面的多用户模式
  • 等级6表示:重新启动

10 是启动优先级,90 是停止优先级,优先级范围是0-100,数字越大,优先级越低。

4.添加启动

chkconfig --add tomcat
chkconfig tomcat on

5.检查

service tomcat start

或者

reboot