ITeye博客

CentOS6下面vigro tomcat 步骤分享

hunter090730 · 2012-08-28 11:27 · Linux 环境设置 一 · 操作系统 · Markdown

1,Downloading the ZIP file http://www.eclipse.org/virgo/download/

2,Installing Linux

To install Virgo Server for Apache Tomcat on Linux, unzip the distribution package to the desired installation directory. For example, to install into /opt:

prompt$ unzip virgo-web-server-3.5.0.RELEASE.zip -d /opt

This creates a directory called virgo-web-server-3.5.0.RELEASE under /opt. 3,Set environment variable variables Edit the /etc/profile file to add the SERVER_HOME and JAVA_HOME environment variables. For example, if you installed into /opt:

export SERVER_HOME=/opt/virgo-web-server-3.5.0.RELEASE/ export JAVA_HOME=/user/java/jdk1.6.0_17 export PATH=$JAVA_HOME/bin:$PATH

To verify the setting of JAVA_HOME, issue the command $JAVA_HOME/bin/java -version from a new terminal window and ensure that the command completes successfully and reports a Java version 1.6.x (denoting Java 6) or greater. 4,Starting Virgo Server for Apache Tomcat prompt$ cd $SERVER_HOME prompt$ bin/startup.sh =====此时,我机子上报错:Exception by agent,host name unknown ist...... 但我用prompt$ hostname又能找的到hostname:ist 最后,修改了hosts问题得解决。改后hosts如下:

cat /etc/hosts

127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 127.0.0.1 ist 注意加粗这行,就是因为加了这行问题才得已解决的。

评论(1)

  1. #1 楼 · hao584703362 · 2012-09-24 16:55

    楼主可以详细介绍一下吗?有点没看懂.我需要地是在linux ubuntu下安装 virgo-tomcat-server-3.5.0.RELEASE。

评论功能维护中,当前仅展示历史评论。