install
- install java11
=====> 
- yum search java-11
 - yum install java-11xxx
 - yum install java-11-jrexxx
=====> 
- dowload opengrop.tar.gz
====>
wget https://github.com/OpenGrok/OpenGrok/releases/$xxx
====> - install universal-ctags
====> 
- mkdir ~/garbage
 - cd garbage
 - wget https://github.com/universal-ctags/ctags/archive/p5.9.20201108.0.tar.gz
 - tar -zxf p5.xxx
 - cd ctagsxxx
 - follow $ctagsxxx/doc/autotools.rst instructions
====> 
- install tomcat
 
configure
- mkdir $opengrok/{src,data,dist,etc,log}
 - tar -C $opengrok/dist/ --strip-components=1 -xzf opengrok.tar.gz
 - cp $opengrok/dist/doc/logging.properties $opengrok/etc
 
# logging.properties
handlers= java.util.logging.FileHandler, java.util.logging.ConsoleHandler
java.util.logging.FileHandler.pattern = $opengrok/log/opengrok%g.%u.log
java.util.logging.FileHandler.append = false
java.util.logging.FileHandler.limit = 0
java.util.logging.FileHandler.count = 30
java.util.logging.FileHandler.level = ALL
java.util.logging.FileHandler.formatter = org.opengrok.indexer.logger.formatter.SimpleFileLogFormatter
java.util.logging.ConsoleHandler.level = WARNING
java.util.logging.ConsoleHandler.formatter = org.opengrok.indexer.logger.formatter.SimpleFileLogFormatter
org.opengrok.level = FINE
- cp $opengrok/dist/lib/source.war $tomcat/webapps
 - $tomcat/bin/startup.sh
 - cd $tomcat/webapps/source/
 - vim $tomcat/webapps/source/WEB-INF/web.xml
 
# web.xml
<param-name>CONFIGURATION</param-name>
<param-value>$opengrok/etc/configuration.xml</param-value>
- vim deploy.sh
 
# deploy.sh
java \
    -Djava.util.logging.config.file=/root/softs/opengrok/etc/logging.properties \
	-jar /root/softs/opengrok/dist/lib/opengrok.jar \
	-c /root/bin/exctags \
	-s /root/softs/opengrok/src -d /root/softs/opengrok/data -H -P -S -G -v \
	-W /root/softs/opengrok/etc/configuration.xml -U http://127.0.0.1:8888/source
how to run
- put the source code which you need to study into $opengrok/src directory
 - ./deploy.sh(it will genorate the source code index using ctags. !!!need a while time!!!)
 - in the browser typing 
http://192.168.1.100:8888/sourceurl. - enjoy the reading
 
reference
- 
opengrok install-configure-usage
https://zhuanlan.zhihu.com/p/24369747 - 
OpenGrok wiki
https://github.com/oracle/opengrok/wiki/How-to-setup-OpenGrok