tomcat在线升级程序
cookqq ›博客列表 ›tomcat

tomcat在线升级程序

2016-10-14 11:21:50.0|分类: tomcat|浏览量: 3078

摘要: tomcat在线升级程序

查看当前用户的信息

tomcat7@ubuntu:/tmp$ id

uid=110(tomcat7) gid=118(tomcat7) groups=118(tomcat7)


查看当前系统版本

tomcat7@ubuntu:/tmp$ lsb_release -a

No LSB modules are available.

Distributor ID:Ubuntu

Description:Ubuntu 16.04 LTS

Release:16.04

Codename:xenial


查看tomcat安装版本号

tomcat7@iZ28hvwqkg1Z:~$ dpkg -l | grep tomcat

ii  libtomcat6-java                     6.0.39-1                         all          Servlet and JSP engine -- core libraries

ii  tomcat6                          6.0.39-1                         all          Servlet and JSP engine

ii  tomcat6-common                      6.0.39-1                         all          Servlet and JSP engine -- common files


查看当前的安装包最新对的版本

conca@iZ28hvwqkg1Z:~$ sudo apt-cache show tomcat6

Package: tomcat6

Priority: optional

Section: universe/web

Installed-Size: 362

Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>

Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>

Architecture: all

Version: 6.0.39-1

Depends: tomcat6-common (>= 6.0.39-1), ucf, adduser, debconf (>= 0.5) | debconf-2.0

Recommends: authbind

Suggests: tomcat6-docs (>= 6.0.39-1), tomcat6-admin (>= 6.0.39-1), tomcat6-examples (>= 6.0.39-1), tomcat6-user (>= 6.0.39-1), libtcnative-1

Filename: pool/universe/t/tomcat6/tomcat6_6.0.39-1_all.deb

Size: 35130

MD5sum: 09a1a0c0fda720bc2fa5af685081eeab

SHA1: 106c2c365178259193b7d9a9b36a30ebc0219a98

SHA256: 8e8a8915308e731e98f92adb4ac1fe48e95a5de97cc7446a955875ab90c55d91

Description-en: Servlet and JSP engine

 Apache Tomcat implements the Java Servlet and the JavaServer Pages (JSP)

 specifications from Sun Microsystems, and provides a "pure Java" HTTP web

 server environment for Java code to run.

 .

 This package contains only the startup scripts for the system-wide daemon.

 No documentation or web applications are included here, please install

 the tomcat6-docs and tomcat6-examples packages if you want them.

 Install the authbind package if you need to use Tomcat on ports 1-1023.

 Install tomcat6-user instead of this package if you don't want Tomcat to

 start as a service.

Description-md5: 934d55e0d50dac715e209698c30454ab

Homepage: http://tomcat.apache.org

Bugs: https://bugs.launchpad.net/ubuntu/+filebug

Origin: Ubuntu


发现apt自带的安装程序不是最新的

去ubuntu官方网站寻找最新的安装包

https://launchpad.net/ubuntu/+source/tomcat7

blob.png


下载.deb文件,然后使用:dpkg -i file.deb 进行安装

Dpkg 的普通用法:

1、dpkg -i <package.deb>
安装一个 Debian 软件包,如你手动下载的文件。

2、dpkg -c <package.deb>
列出 <package.deb> 的内容。

3、dpkg -I <package.deb>
从 <package.deb> 中提取包裹信息。

4、dpkg -r <package>
移除一个已安装的包裹。

5、dpkg -P <package>
完全清除一个已安装的包裹。和 remove 不同的是,remove 只是删掉数据和可执行文件,purge 另外还删除所有的配制文件。

6、dpkg -L <package>
列出 <package> 安装的所有文件清单。同时请看 dpkg -c 来检查一个 .deb 文件的内容。

7、dpkg -s <package>
显示已安装包裹的信息。同时请看 apt-cache 显示 Debian 存档中的包裹信息,以及 dpkg -I 来显示从一个 .deb 文件中提取的包裹信息。

8、dpkg-reconfigure <package>
重新配制一个已经安装的包裹,如果它使用的是 debconf (debconf 为包裹安装提供了一个统一的配制界面)。





一键分享文章

分类列表

  • • struts源码分析
  • • flink
  • • struts
  • • redis
  • • kafka
  • • ubuntu
  • • zookeeper
  • • hadoop
  • • activiti
  • • linux
  • • 成长
  • • NIO
  • • 关键词提取
  • • mysql
  • • android studio
  • • zabbix
  • • 云计算
  • • mahout
  • • jmeter
  • • hive
  • • ActiveMQ
  • • lucene
  • • MongoDB
  • • netty
  • • flume
  • • 我遇到的问题
  • • GRUB
  • • nginx
  • • 大家好的文章
  • • android
  • • tomcat
  • • Python
  • • luke
  • • android源码编译
  • • 安全
  • • MPAndroidChart
  • • swing
  • • POI
  • • powerdesigner
  • • jquery
  • • html
  • • java
  • • eclipse
  • • shell
  • • jvm
  • • highcharts
  • • 设计模式
  • • 列式数据库
  • • spring cloud
  • • docker+node.js+zookeeper构建微服务
版权所有 cookqq 感谢访问 支持开源 京ICP备15030920号
CopyRight 2015-2018 cookqq.com All Right Reserved.