当前位置:网站首页>How to build opengrok code server
How to build opengrok code server
2022-07-28 15:41:00 【Liu Yiyi】
One : build openGrok Code server
Update data source
sudo apt-get update
install jdk1.8
sudo apt-get install openjdk-8-jdk-headless
install ctags
sudo apt-get install exuberant-ctags
install tomcat8
wget http://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/tomcat-8/v8.5.49/bin/apache-tomcat-8.5.49.tar.gz
tar -zxvf apache-tomcat-8.5.49.tar.gz
mv apache-tomcat-8.5.49 tomcat
install opengork
wget https://github.com/oracle/opengrok/releases/download/1.1-rc28/opengrok-1.1-rc28.tar.gz
tar -zxvf opengrok-1.1-rc28.tar.gz
mv opengrok-1.1-rc28 opengork
Deploy opengork
cd opengork/bin
sudo OPENGROK_TOMCAT_BASE=/home/liuyi/tomcat ./OpenGrok deploy
Generate index file
mkdir /home/liuyi/opengork/code
cd opengork/lib
sudo java -jar opengrok.jar -P -S -v -s /home/liuyi/opengrok/code -d /home/liuyi/opengrok/etc -W /home/liuyi/opengrok/etc/configuration.xml
modify tomcat in web.xml Medium configuration The real path
vi /home/liuyi/tomcat/webapps/source/WEB-INF/web.xml
/home/liuyi/opengrok/etc/configuration.xml
Copy project code to /home/liuyi/opengork/code Catalog , Update index
cp project /home/liuyi/opengork/code
cd opengork/lib
sudo java -jar opengrok.jar -P -S -v -s /home/liuyi/opengrok/code -d /home/liuyi/opengrok/etc -W /home/liuyi/opengrok/etc/configuration.xml
restart tomcat
cd /home/liuyi/tomcat/bin
./startup.sh
Access address :localhost:8080/source
Articles you may be interested in :
Android Source code analysis ( One )----- How to quickly master Android Compile the file
Android Source code analysis ( Two )----- How to compile the modified framework Resource file
Android Source code analysis ( 3、 ... and )----- System framework design idea
Android Source code analysis ( Four )-----Android Source code compilation and brushing steps
Android Source code analysis ( 5、 ... and )----- How to design from the perspective of architects Framework frame
边栏推荐
猜你喜欢

AS如何不区分大小写去进行智能提示

一篇文章了解RSocket协议

EasyExcel复杂表头导出(一对多)

Execution process of SQL statement

如何获取及嵌入Go二进制执行包信息

Summarize the knowledge points of the ten JVM modules. If you don't believe it, you still don't understand it

About the pictures inserted in the word document, only the following part is displayed

软件架构与设计(四)-----数据流架构

Sharing of award-winning activities: you can get up to iphone13 after using WordPress to build your own blog

关于word文档中插入的图片只显示下面一部分
随机推荐
Common methods of qcustomplot drawing tools
软件架构与设计(五)-----以数据为中心的架构
华为全球员工总数创新高:19.4万人,研发人员占比近50%
2. Self narration of open source GPS project hd-gr GNSS
跟我学Rx编程——Concat
基于RSocket协议实现客户端与服务端通信
ECCV 2022 | ssp: a new idea of small sample tasks with self-supporting matching
2022-07-28日报:Science:AI设计蛋白质再获突破,可设计特定功能性蛋白质
融云实时社区解决方案
How to write a JMeter script common to the test team
Getting started with crawlers (1) -- requests (1)
Matlab exports high-definition pictures without distortion in word compression and PDF conversion
22. Realization of message processing task
About how Simulink generates model coverage reports
How many tips do you know about using mock technology to help improve test efficiency?
vs动态库调试
Vs usage skills
1. Author of the open source GPS project hd-gr GNSS
10、相关数据累积任务实现
全国211院校考研信息汇总整理