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

推荐订阅源

Forbes - Security
Forbes - Security
GbyAI
GbyAI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
S
SegmentFault 最新的问题
Y
Y Combinator Blog
Recorded Future
Recorded Future
博客园 - Franky
I
InfoQ
T
The Blog of Author Tim Ferriss
Recent Announcements
Recent Announcements
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园_首页
阮一峰的网络日志
阮一峰的网络日志
T
Tailwind CSS Blog
Cyberwarzone
Cyberwarzone
The Register - Security
The Register - Security
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
雷峰网
雷峰网
P
Palo Alto Networks Blog
G
GRAHAM CLULEY
Cloudbric
Cloudbric
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
MongoDB | Blog
MongoDB | Blog
F
Full Disclosure
Google DeepMind News
Google DeepMind News
Recent Commits to openclaw:main
Recent Commits to openclaw:main
C
Check Point Blog
爱范儿
爱范儿
The GitHub Blog
The GitHub Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
W
WeLiveSecurity
T
Threat Research - Cisco Blogs
U
Unit 42
N
Netflix TechBlog - Medium
The Cloudflare Blog
Spread Privacy
Spread Privacy
Microsoft Azure Blog
Microsoft Azure Blog
美团技术团队
T
Troy Hunt's Blog
Engineering at Meta
Engineering at Meta
H
Heimdal Security Blog
TaoSecurity Blog
TaoSecurity Blog
C
Cybersecurity and Infrastructure Security Agency CISA
T
Tenable Blog
B
Blog
S
Securelist
H
Hacker News: Front Page
Google Online Security Blog
Google Online Security Blog
G
Google Developers Blog

博客园 - 牦牛

Linux常用命令 错误:80040154 没有注册类 的问题 [转]Java实现定时任务的三种方法 访问IIS网站需要输入用户名密码(非匿名登录)问题汇总 IE10、IE11 User-Agent 导致的 ASP.Net 网站无法写入Cookie 问题 端口占用问题 中国电信翼支付网关接口接入 修改Tomcat响应请求时返回的Server内容 模拟用户点击弹出新页面 Eclipse常用设置 JavaScript继承的模拟实现 Windows Server 2008 小操作汇总 手机也能连VPN,再来个远程控制PC这种事你以为我会随便说么! - 牦牛 Windows下Git服务器搭建及使用过程中的一些问题 Oracle PL/SQL中的循环处理(sql for循环) CSS的display小记 博客园添加访问人数统计 IIS故障问题(Connections_Refused)分析及处理 Windows Server 2008自定义桌面
Tomcat服务无法启动的问题
牦牛 · 2014-02-27 · via 博客园 - 牦牛

  去年下半年公司就决定投入人力物力"跟风"做大数据方向的研究并应用到后续项目中,于是乎,我们也得熟悉下Java才行了。
  先弄个JavaEE的开发环境再说吧。装JDK、JRE,其实JDK下面已经有JRE了,如果在服务器上的话,只需装JRE;然后配置环境变量:

新建:JAVA_HOME:D:\Java\jdk1.7.0_51
新建:CLASS_PATH:.;%JAVA_HOME%\lib
编辑:PATH:在最前面加上 %JAVA_HOME%\bin; 

  接着装Tomcat,startup.bat、shutdown.bat都正常,然后想把压缩版的Tomcat的启动和关闭做成Windows服务来处理,执行service.bat install提示服务创建成功,但是启动服务却失败了,系统日志提示:

我之前台式机上的Windows 2003系统没啥问题,怎么到了现在这Win7系统的小本上就这样了呢?先分析下,既然可以正常调用service.bat,也就是环境变量的配置是没有问题的,对比下2个操作系统,似乎目前最有可能的就是安装时候的权限问题。先卸载掉已经安装过的服务service.bat remove,然后"以管理员身份运行" cmd.exe,切换到service.bat所在的目录执行service.bat install重新安装Tomcat服务。HoHo, 这下可以正常启动和关闭了。
  因为是开发环境,所以我们可以配置一个超级用户admin ,使其能够通过"http://localhost:8080/"来管理Tomcat。进入Tomcat根目录下的conf文件夹,打开"tomcat-users.xml"进行编辑:

<tomcat-users>      
  <user username="admin" password="admin" roles="manager-gui,admin-gui"/>    
</tomcat-users>  

重启Tomcat后,就可以使用admin来管理Tomcat了。