初试在linux下部署tomcat
linux下部署tomcat
(1)安装java环境
(2)root@ubuntu:/安装tomcat目录/# tar -zvxf tomcat-6.0.16.tar.gz
(3)系统启动时tomcat自动启动的简易配置
root@ubuntu:/etc#nano rc.local
在rc.local中添加脚本语句
CLASSPATH=.:/home/gaozhaoxing/java/jre1.6.0_06/lib
JAVA_HOME=/home/gaozhaoxing/java/jre1.6.0_06
export CLASSPATH
export JAVA_HOME
/tomcat-6.0.16的安装目录/bin/startup.sh
(4)测试
/#reboot
http://127.0.0.1:8080
如果有tomcat主页出现那就配置成功啦
linux下部署tomcat
(1)安装java环境
(2)root@ubuntu:/安装tomcat目录/# tar -zvxf tomcat-6.0.16.tar.gz
(3)系统启动时tomcat自动启动的简易配置
root@ubuntu:/etc#nano rc.local
在rc.local中添加脚本语句
CLASSPATH=.:/home/gaozhaoxing/java/jre1.6.0_06/lib
JAVA_HOME=/home/gaozhaoxing/java/jre1.6.0_06
export CLASSPATH
export JAVA_HOME
/tomcat-6.0.16的安装目录/bin/startup.sh
(4)测试
/#reboot
http://127.0.0.1:8080
如果有tomcat主页出现那就配置成功啦