ubuntu jdk和tomcat配置
先查看linux的版通过file /sbin/init命令,下载对应版本的jdk。
我的ubuntu是64位的(桌面系统),所以下载的是jdk-7u71-linux-x64.tar.gz
在home的Downloads文件夹下。
先进行解压,在终端输入:sudo tar zxvf file Downloads/jdk-7u71-linux-x64.tar.gz,解压的文件将会在home文件夹下,先将文件夹名字改成jdk。
将解压后的文件移动到 /usr/lib/文件夹下,
输入sudo mv jdk /usr/lib/。
完成之后设置环境变量
使用 vi 命令打开 /etc/profile 文件,终端输入:
sudo vi /etc/profile
在最后一行之前加入:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAjIAAABOCAIAAAC10WudAAAAA3NCSVQICAjb4U/gAAAgAElEQVR4Xu19d3hc1bXvKdP7SBrNjMpIVndBlhvYFsY22AYbsE0o5oaQ0EJ4pFxu7gvv3vu4ud/Ll5vwSMJHyksCBEKCEwgOYMDENhhsLOMibBnLsqxqlRlpmqb3ds7bZ86MNBrNmSJLVtvH/kOz21r7t/bZa7ezf+gjSnV+/bKPP+9DJvmw0aV3Y3WVKI+NhOxkz8HIl50IMcmyYLZ5hQAmxdZ9FdMoEQxBSD9iaoucP0Ja/POqjrAyEAGIwFQjgD6iVOXXX3cVbmmqNYLlQQQgAhABiMACRgCMY+EDEYAIQAQgAhCB2YIAcEsoOluUgXpABCACEAGIwEJHAEMRErqlhd4KZlX9Ua6vcbN+s2q6NihZcvuOLeZaIQlqjQncu/f031cWmVUIQGUgAgsbAWq2RL2fs+xBuaHKek+5aJapNTfVIVWNPc//i3YJ7xqonyiLlNb3Pf90O/3/yZoJXT8aqd7W87PvX9muHOeBUL5v/RrbYknGZslQL7b3zocvP/eYoYKTur6sAvuWlU41OxrLCVaXeQu4qVPCUIgARGAmEGABobNwtsRS2x99wnP+OUG/O2vtWHkjP3jMpBhFMST+/f8r7QrGfmNi+5NPDFeg3PdfrjhmowpFea7Hvq0taV3044/5oVgq0NP1Pr2O/dpvylqjB8Ym5kprJKJ8W/f3qiUvvKgeD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QJaWEjwCq5TzpngNQVVa3JLnfgb9VjZQSQg4SREQYLXcThlptadWeTnI7PqxIYKQ3JFgEVtLUWP4s1pdtpYtWcJLWyuXKJpqSQXBsFrLlStY22cpKh4szxImqtRolIWAMHrjCI/H5lVc+2CYfqJCIDZUuzuobnNTkvXbLbQwtLaEJDglQIiDcHraHtky901IkQ/MEb1SIZRcF04T0BgSJxrcmLrnRgCCV4TMJnNyNNqzkdm1YmNEobkisDYB59zm52Wsd7XlhYWErzShsiS4FVW4q4LsNgyd+MGi8KZt6+LNfr1LBng9jmRTdeb13vFbl4IH5KdS6RZY7D3lLHuji9//hG8zjzyDBbMzHfMlBGGzx8EqO+WYnRLc5udlsEk15gWFoMEr1FDZCR4JYOcHh171cqhx1eDIzf4UFfhi5/k9/gTrBjmfXqwoGS75Su77aSfd/KApCULtwQJXucK8gzvazZ8x0xZYfi8QQB9XF2kWlH//rGeSVYJstOmAm5hcYmmQiAWBmlG04AzrVEQ+WmFFxY+nQjQi3hTc8PLdOoJy84eAUgzmj1WU5sSIj+1eMLSFigC0ZN4kHFpqq0/k4yWkGaUwZrTbhSI/EwhzyAXBs9RBNDHi4rUDfXvTXoRb47WG6oNEYAIQAQgArMSAUgDOCvNApWCCEAEIAILFQHqTjy4hrdQrQ/rDRGACEAEZh0CFA1g7ID4rNMNKgQRgAhABCACCw6BWcqfCthpK2qDkSvCfveCM8mcrjAgQu19+nruH35X2p74EdK01ClRVjo6jKkWnr2sFGhwZd4qBTrQy3dPIe9u7jWcJWrkrjjMsRAQ+P8L7nbLusaaTwAAAABJRU5ErkJggg==" alt="" />
export JAVA_HOME=/usr/lib/jdk
export JRE_HOME=/usr/lib/jdk/jre
export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
保存并退出。
注销下,然后在终端输入:
java -version
看是否能输出 jdk 版本
解压文件,终端输入:
sudo tar zxvf Downloads/apache-tomcat-7.0.57.tar.gz 将解压后的文件改名为tomcat,并移动到/usr/local文件夹下
sudo mv tomcat /usr/local
给tomcat赋权
sudo chown -R root:你的密码 /usr/local/tomcat
sudo chmod 775 -R /usr/local/tomcat
使用 vi 命令打开 /etc/profile 文件,终端输入:
sudo vi /etc/profile
在最后一行之前加入:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAXkAAAAlCAIAAAAoWg5SAAAAA3NCSVQICAjb4U/gAAAeCElEQVR4Xu1dCXgcxZXua6Znek5Jc+kaydLo8IEvyTfGxtgYG2wMGEgCJBBykGSzy2Y32eMj2W/zZZNssskHST4IsBASSNZAMCaY+MDGxgYfsixh2ZYlWbKu0Zya+57pY6u7ZzSj0cxIHo+xTaYsS93VXfVevXr96tXrqr/h+2c10gxDQeAXRDIM+GN2oFAxFSVQlEBRAgWVAJKoDQYHKAzB7N9iKkqgKIGiBAosgQlbw9bLFLjyYnVFCRQlUJRAXALo3NIyimGANwMMDQOBiRTjC04yQNdcVDAeq58bVgSE7ug156XIwGVIgNGtGvjh9sDoJwo7eRnF8ro1lRajmD/0ky+ZN66yg596e+kpx9VT6JnTyiANXBlsriZDbkH0mo7ynxYbGOhZBIZphgYHwNJA0HU3icLK3Y8/Eej8GTHknzlvMF1W77hzpWuujhTQ6LhRfuRDzcdmlO9TROb+5hOmOhj/y4t1h118pdTcB3sfr0nXc3pI/9Qb0jCXnakUEFds9aMX7wlV//sOGX9bsgokuu6x/rvKUup0an7yO5WdgmTzBv9zc7h/j+G3ZwWs4AXBR741VHaw8ZmzWHYO03lLOadrb7/49w3yp58vH+Gfaix0z9cGFw3U/mgfAQy0oMS7ab1txawoDqG2QeXeA+ozLgQQgiWev/vWmLKt7qeHRTGIKV898N0VyJu/nXXcCybTXLvUqUTRzh0Nr47M+LlFowvnRiODusFIDs4LdGkSLdjXV/kzC41JvY9sHy8QgWzVzJhWBmnQ2lbj402yp58X+1kluFbpU2MDA08aG6PhVBwGR5y9udETo14w+p3bA/6LqrdPEF44VlETl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NBVal90mjAgwEDWJyydzu9iHOyM8IN8iZZW/OYIJlP5Vqx1qb+mbfSwuH5+YCD7ohdYuta8MyvyiGDqmPD2DT/QKy21fXO+SQh6x2fDGWDxkk0MBssa2Cy/eRMOu/d/EataER5OQ+A2Ny5dFrNMg7OWFehfNDlKHYBheVlXVUM+9r2Bi7vFLR3qGwff72ER5zrUf9xsaZ1fPqa4DG9GibrvRgcC4UquE/BdTg8akzxyEFmiVuDHEhXCmpmlK8XGIkqYlG5NFaVPHoaMOChZVrl6RWMtnaN1ogOJr+SYTYULm83bDKhamdBpaWTicynNqDhO2dx84G20xNN2ixyAyCFY1ftxvA1XBKPhWAcOHEOMFOC8HEyRfRGVsF7g5CyAeExX2GwUti8e+1gr6BB3r0zx/sKw/Fb2dFH2wR1W1yXHvNjcTFh3bLe+Yga0hPdILHncLJO3hPq3HJziXAmQWydUQb2ZK1yAX/oKhiYWSAOMFhylBMsxofMnb5XNTxOXLJDOwRH3tQrTrcGJ1b6Z7inkFlsD1BIhXVAC+c5PvoXh7nNW5K7AuFKv77EkAxSVyYYalLwwT8fkj2dfbXQVJFAHxroJQr7TK+H4o9sUTt0+hmAouAWr86MEDBa/1+qsQVdS2btAnP5iW5DAycuCjHsfVWjM5VRLXGSDe34oCTO2IyTnwFxricyiGDbuxc6iRvOdQ0xErXi9KoCiBv1kJcCFzzqPh445F1+ZvVhWKDS9K4KpK4P8BB7VOj8M8VhUAAAAASUVORK5CYII=" alt="" />
export CATALINA_HOME=/usr/local/tomcat
export PATH=$CATALINA_HOME/bin:$PATH
保存并退出。
注销下,终端输入:
startup.sh
将会看到
Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME: /usr/lib/jdk/jre
Using CLASSPATH: /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar
Tomcat started.
最后进行验证:
在浏览器地址栏中输入 http://localhost:8080/
ubuntu jdk和tomcat配置的更多相关文章
- 环境配置-云服务器jdk与tomcat配置
我所实践的主机是麻花疼云的主机,第一次试用30天,装了个centos6.5,其实已经用商用专用镜像配置好环境了,包括jdk.tomcat等常用的内容,但是我实在是找不到他们安装在哪个目录下了,我就自己 ...
- jdk,tomcat配置
方法/步骤 一.安装JDK和Tomcat 1,安装JDK:直接运行jdk-7-windows-i586.exe可执行程序,默认安装即可. 备注:路径可以其他盘符,不建议路径包含中文名及特殊符号. 2. ...
- Jdk与Tomcat配置与安装
一.jdk的安装与配置 先下载Tomcat与jdk的压缩包:在usr/local/src目录下下载,下载方法:wget+链接 (tar.gz) 解压tomcat与jdk的压缩包: tar –zvxf ...
- jdk和tomcat配置
1.一次成功的JAVA环境变量配置,必须要配置一下三个系统变量:JAVA_HOME(变量值为JDK的路径),PATH(变量值:%JAVA_HOME%\bin;),CLASS_PATH(变量值为JDK中 ...
- Ubuntu 14.04 tomcat配置
在tomcat-users.xml中添加了以下代码即可 <role rolename="tomcat"/> <role rolename="role1& ...
- Ubuntu 下载 Eclipse + tomcat 配置
tomcat下载 去网站下载core中的 tar.gz的文件 下载之后依然转移到/opt文件夹然后进行解压 sudo cp apache-tomcat- /opt sudo tar -zxvf apa ...
- ubuntu jdk环境变量配置
export JAVA_HOME=/usr/local/java/jdk1.8.0_25 export JRE_HOME=${JAVA_HOME}/jre export CLASSPATH=.:$ ...
- 详解Tomcat配置JVM参数步骤
这里向大家描述一下如何使用Tomcat配置JVM参数,Tomcat本身不能直接在计算机上运行,需要依赖于硬件基础之上的操作系统和一个Java虚拟机.您可以选择自己的需要选择不同的操作系统和对应的JDK ...
- ubuntu linux环境下安装配置jdk和tomcat
关于linux搭建服务器,ubuntu中jdk和tomcat的安装和配置 一.jdk的安装配置 1:去官网下载好自己需要的版本,注意,linux压缩文件通常以tar.gz结尾,别下载错了.本次我下载安 ...
随机推荐
- 蓝书3.3 SPFA算法的优化
T1 最小圈 bzoj 1486 题目大意: 一个环的权值平均值为定义为一个这个环上所有边的权值和除以边数 求最小的环的权值平均值 思路: 二分一个值 把所有边减去这个值 判断是否有负环 #inclu ...
- [国家集训队2]Tree I
https://www.zybuluo.com/ysner/note/1294263 题面 给你一个无向带权连通图,每条边是黑色或白色.让你求一棵最小权的恰好有need条白色边的生成树. 题目保证有解 ...
- bzoj4443
二分+二分图匹配 晚上脑子不太好使... 行列模型,填充数量性质,种种迹象告诉我们这是二分图,但是我觉得好像不太科学就弃了网络流... 二分第k大值,转化为求第n-k+1小值,二分求匹配判定即可. # ...
- springboot开发过程中的小坑(持续更新)
1. 启动的Application必须放到一个package下面,如下: package com.example.kikidemo; import org.springframework.boot.S ...
- Linux进入单用户模式的两种方法
单用户模式的作用 在使用Linux系统中,维护人员经常会碰到一个问题,就是在拥有root账号权限和密码的用户中,总是会出现忘记root密码的情况. 遇到这种情况,一般情况下,维护人员就会通过最常用的方 ...
- oracle给用户授权
1.在PLSQL里,用sys(oracle系统用户)登陆,登陆的时候一定要选择SYSDBA.普通用户登陆选择normal就可以了 2.创建用户 *也可以给普通用户授权为dba即数据库管理员.在导入导出 ...
- bzoj 1492: [NOI2007]货币兑换Cash【贪心+斜率优化dp+cdq】
参考:http://www.cnblogs.com/lidaxin/p/5240220.html 虽然splay会方便很多,但是懒得写,于是写了cdq 首先要想到贪心的思路,因为如果在某天买入是能得到 ...
- 给独立搭建的博客启用https的过程
申请SSL证书 我自己独立搭建的博客部署在阿里云服务器上,因此我就先搜索阿里云启用https的方法,网上有比较详细的讲解,在此提供一个参考网址: https://blog.csdn.net/csluc ...
- CentOS 7 配置 Nginx 正向代理 http、https 最详解
手头项目中有使用到 nginx,因为使用的三方云服务器,想上外网需要购买外网IP的,可是有些需要用到外网却不常用的主机也挂个外网IP有点浪费了,便想使用nginx的反向代理来实现多台内网服务器使用一台 ...
- [ZJOI2005]沼泽鳄鱼
题目描述 潘塔纳尔沼泽地号称世界上最大的一块湿地,它地位于巴西中部马托格罗索州的南部地区.每当雨季来临,这里碧波荡漾.生机盎然,引来不少游客. 为了让游玩更有情趣,人们在池塘的中央建设了几座石墩和石桥 ...