Installation and use of Opengrok under Linux

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.