Virgo-tomcat-server-3.5.0.RELEASE installation on centos6.2 i686
I. Prerequisites
For javase1.6 or later, you must set java_home, path, and classpath environment variables;
1.1 download and install JDK
Http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u37-download-1501634.html to the site to download jdk-6u37-linux-x64.bin
1.2 install JDK
Upload the jdk-6u31-linux-x64.bin to the/usr/Java directory on the server (if there is no Java directory, create it manually)
# Chmod A + x jdk-6u31-linux-x64.bin
#./Jdk-6u31-linux-x64.bin
1.3 modify Environment Variables
Export java_home =/usr/Java/jdk1.6.0 _ 37
Export jre_home =/usr/Java/jdk1.6.0 _ 37/JRE
Export Path = $ path: $ home/bin: $ java_home/bin
Export classpath =.: $ java_home/lib: $ jre_home/lib: $ classpath
1.4. Verify the Java version
# Java-version
Java version "1.6.0 _ 31"
Java (TM) se Runtime Environment (build 1.6.0 _ 31-b04)
Java hotspot (TM) 64-bit server VM (build ipv6-b01, mixed mode)
Ii. Install Virgo
2.1 Download Virgo
Download Virgo Tomcat server to Virgo official website http://www.eclipse.org/virgo/download,
After the download is complete, upload the package to the/usr/local directory on the server, decompress the package, and rename Virgo.
# Unzip virgo-tomcat-server-3.5.0.RELEASE.zip
# Mv virgo-tomcat-server-3.5.0.RELEASE Virgo
2.2 configure the environment variables in the home directory of Virgo as follows:
# Cd
# Add the following records to VI. bash_profile:
Export virgo_home =/usr/local/Virgo
Save and exit
This completes the installation of Virgo.
Iii. Use Virgo
3.1 start Virgo
# Virgo_home/bin/startup. Sh & (background startup)
Access virgohttp: // 192.168.37.128: 8080 account password (default) admin/springsource
3.2 stop VIRGO:
Go to the bin directory and run:
Shutdown. Sh, shutdown. Sh-immediate, or shutdown. Sh-jmxport 8090, or run the CTRL + C shortcut.
3.3 starting in clean mode:
Add:-clean after the Startup Script
Start in this mode. The repository and pickup directories under the server_home directory will not change,
The work directory (including all logs, spam files, and Operation paths) will be deleted and re-generated; that is, all apps will be re-installed.
3.4 starting in debug mode:
Add-Debug 8001 after the script is started. The default port is8000 is the default remote debugging port of Eclipse;
If you want to listen for debugging only when an exception occurs during startup, add-suspend after the script;
3.5. Starting with JMX access modifications
Start Virgo first, and then start jconsole. Sh in the bin directory;
Remote Process address: localhost: 9875, user name/password: admin/springsoure
Modify port: Specify the port at startup: startup. Bat-jmxport 9090
4. Modify the default Virgo Password
CD/usr/local/Virgo/configuration [some versions are/usr/local/Virgo/config]
VI org. Eclipse. Virgo. kernel. Users. Properties
Change the password springsource in user. Admin = springsource to your own password, and restart Virgo.
5. Configure JVM
VI/usr/local/Virgo/dmk. Sh
Add the following parameter to the row chmod 600 $ config_dir/org. Eclipse. Virgo. kernel. jmxremote. Access. properties.
Java_opts = "\
$ Java_opts \
-Xms2048m \
-Xmx10240m \
-XX: permsize = 128 M \
-XX: maxpermsize = 128 M \
-Djava.net. preferipv4stack = true"
6. self-starting upon startup [not resolved at the moment]
7. Installation Problems
7.1.startup.sh:
error: exception thrown by the agent: java.net. malformedurlexception: local host name unknown: java.net. unknownhostexception: bogon
the cause is that there is no bogon in the/etc/hosts file. The solution is to add bogon to the hosts file, the modified hosts file is:
# Do not remove the following line, or various programs
# that require Network functionality will fail.
127.0.0.1 bogon localhost. localdomain localhost
: 1 localhost6.localdomain6 localhost6