CentOS6下面vigro tomcat 步骤分享
程序员文章站
2022-06-03 16:29:50
...
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如下:
[root@ist configuration]# 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
注意加粗这行,就是因为加了这行问题才得已解决的。
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如下:
[root@ist configuration]# 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
注意加粗这行,就是因为加了这行问题才得已解决的。