Opengrok is very handy for managing multiple project code. This article takes Opengrok 0.12. To explain the deployment on Redhat Enterprise Linux
http://opengrok.github.io/OpenGrok/
Software Dependent Preparation:
1 JAVA http://www.oracle.com/technetwork/java//
2. Tomcat http://tomcat.apache.org/
3.Exuberant Ctags http://ctags.sourceforge.net/
Download Install 1. Download the installation package opengrok-0.12.1.tar.gz2 on Opengrok website. The root user logs on to the Linux Server3. Upload opengrok-0.12.1.tar.gz to Linux server4 via FTP. Unzip the tar package to the installation directory to complete the installation, typically installed in the/OPT/OPENGROK-0.12.1TAR-XVF opengrok-0.12.1.tar.gz
Opengrok need to start Tomcat before using Opengrok to build the source code index. The Opengrok configuration file is/opt/opengrok-0.12.1/etc/configuration.xml
Configuration preparation: 1. Configuring the required environment variables export Java_home=/opt/java
Export opengrok_tomcat_base=/opt/tomcat/
Export Opengrok_app_server=tomcat
Export opengrok_instance_base=/opt/opengrok-0.12.1
Export lang=zh_cn.gb2312 (optional, but the Chinese encoding is inconsistent with the source code will produce garbled)
2. Configure the source code directory Vi/opt/opengrok-0.12.1/bin/opengrok Locate the Src_root configuration and set the value to the source code directory
Recommended index: 1. SOURCE Opengrok website published./opt/opengrok-0.12.1/bin/opengrok Deploy
2. Index source code./opt/opengrok-0.12.1/bin/opengrok Index
Completion ~ Login Http://xxx.xxx.xxx.xxx:8080/source to view the source code