当前位置:网站首页>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
边栏推荐
- 语音社交系统——完善有声系统产业链
- Summary and arrangement of postgraduate entrance examination information of 211 colleges and universities nationwide
- Grpc protocol buffer
- 4. Main program and cumulative interrupt processing routine implementation code
- Nftscan and nftplay have reached strategic cooperation in the field of NFT data
- ECCV 2022 | ssp: a new idea of small sample tasks with self-supporting matching
- 4、主程序和累积中断处理例程实现代码
- Communication between client and server based on rsocket protocol
- NFTScan 与 NFTPlay 在 NFT 数据领域达成战略合作
- Pytorch - sequential and modulelist
猜你喜欢

Baidu proposes a dynamic self distillation method to realize dense paragraph retrieval by combining interactive model and double tower model

软件架构与设计(六)-----层次结构体

Explain the difference set, intersection set and union set of complex type set in detail.Net

Tencent interview -- please design a thread pool to implement sequential execution

爬虫入门(1)——requests(1)

基于RSocket协议实现客户端与服务端通信

腾讯面试之--请你设计一个实现线程池顺序执行

How to obtain and embed go binary execution package information

ECCV 2022 | SSP: 自支持匹配的小样本任务新思想

软件架构与设计(八)-----分布式架构
随机推荐
Pytorch - autograd automatic differentiation
字符串(3)
Heap operation
迟来的2021年终总结
Easy start, swagger
软件架构与设计(七)-----互动架构
9. Related data accumulation task definition
腾讯面试之--请你设计一个实现线程池顺序执行
Stateflow逻辑系统建模
一文了解 Rainbond 云原生应用管理平台
给你一个链表,删除链表的倒数第 n 个结点,并且返回链表的头结点。
Leetcode bracket validity problem
Flutter中是使用RxDart代替Stateful
Tencent interview -- please design a thread pool to implement sequential execution
22. Realization of message processing task
File and directory operations (5)
华为全球员工总数创新高:19.4万人,研发人员占比近50%
10. Implementation of related data accumulation task
Leetcode - number of operations, non repeating numbers, diagonal traversal, Joseph Ring
如何搭建openGrok代码服务器