“ubuntu教程”ubuntu 下快速安装jdk及tomcat(附启动

来源: 电脑维修教程 阅读:     发表时间:

http://4285797.blog.51cto.com/4275797/1585378 应用服务器ip address for eth0: 192.168.10.15 sudo apt-get update sudo apt-get upgrade tar zxvf jdk-7u65-linux-x64.gz mkdir /usr/java mv jdk1.7.0_65/

http://4285797.blog.51cto.com/4275797/1585378

应用服务器ip address for eth0: 192.168.10.15

sudo apt-get update

sudo apt-get upgrade

tar zxvf jdk-7u65-linux-x64.gz

mkdir /usr/java

mv jdk1.7.0_65/ /usr/java/

vi /etc/profile

export path=$path:/usr/java/jdk1.7.0_65/bin:/usr/java/jdk1.7.0_65/jre/bin

export java_home=/usr/java/jdk1.7.0_65/

export classpath="./:/usr/java/jdk1.7.0_65/lib:/usr/java/jdk1.7.0_65/jre/lib"

sudo apt-get install language-pack-zh-hans language-pack-zh-hant

tar zxvf apache-tomcat-7.0.56.tar.gz

mv apache-tomcat-7.0.56 /www

sudo apt-get install apache2 libapache-mod-jk-doc

sudo vi /etc/rc.local

sleep 10

export java_home=/usr/java/jdk1.7.0_65

/etc/init.d/apache2 start > /dev/null 2>&1 &

/www/apache-tomcat-7.0.56/bin/startup.sh > /dev/null 2>&1 &

exit 0

sudo vi /etc/network/interfaces

auto eth0

iface eth0 inet static

address 192.168.10.15

netmask 255.255.255.0

gateway 192.168.10.1

dns-nameservers 218.85.152.99

以上是:解决“ubuntu教程”ubuntu 下快速安装jdk及tomcat(附启动问题的详细资料教程