当前位置:网站首页>如何搭建openGrok代码服务器
如何搭建openGrok代码服务器
2022-07-28 14:39:00 【丨刘一丨】
一:搭建openGrok代码服务器
更新数据源
sudo apt-get update
安装jdk1.8
sudo apt-get install openjdk-8-jdk-headless
安装ctags
sudo apt-get install exuberant-ctags
安装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
安装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
部署opengork
cd opengork/bin
sudo OPENGROK_TOMCAT_BASE=/home/liuyi/tomcat ./OpenGrok deploy
生成索引文件
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
修改tomcat中web.xml中的configuration真实路径
vi /home/liuyi/tomcat/webapps/source/WEB-INF/web.xml
/home/liuyi/opengrok/etc/configuration.xml
项目代码拷贝到/home/liuyi/opengork/code目录,更新索引
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
重启tomcat
cd /home/liuyi/tomcat/bin
./startup.sh
访问地址:localhost:8080/source
您可能感兴趣的文章:
Android源码分析(一)-----如何快速掌握Android编译文件
Android源码分析(二)-----如何编译修改后的framework资源文件
Android源码分析(三)-----系统框架设计思想
Android源码分析(四)-----Android源码编译及刷机步骤
Android源码分析(五)-----如何从架构师的角度去设计Framework框架
边栏推荐
- Rongyun real-time community solution
- 根据输入target,返回数组的两个下标。
- Canoe tutorial
- MIT指出公开预训练模型不能乱用
- Heuristic merging simple problem on tree
- Explain the difference set, intersection set and union set of complex type set in detail.Net
- Execution process of SQL statement
- 使用Mock技术帮助提升测试效率的小tips,你知道几个?
- 2022年最火的十大测试工具,你掌握了几个
- Self cultivation of programmers
猜你喜欢

机器学习的3大“疑难杂症”,因果学习是突破口 | 重庆大学刘礼

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

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

最小堆提升每次排序的效率

vs动态库调试

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

一篇文章了解RSocket协议

How many tips do you know about using mock technology to help improve test efficiency?

Among the three "difficult and miscellaneous diseases" of machine learning, causal learning is the breakthrough | Liu Li, Chongqing University

2022年最火的十大测试工具,你掌握了几个
随机推荐
About the pictures inserted in the word document, only the following part is displayed
使用Mock技术帮助提升测试效率的小tips,你知道几个?
QT refresh UI interface problem
Principle and configuration of MPLS LDP
How many of the top ten test tools in 2022 do you master
软件架构与设计(六)-----层次结构体
The subst command mirrors a folder to a local disk
Vs dynamic library debugging
7、实时数据备份和实时时钟相关定义
Problems encountered by pyppeter
21. Definition of message processing task
融云实时社区解决方案
位运算的一些操作
1、开源GPS项目HD-GR GNSS的著作者
MySQL 8.0 common (continuous update)
Pycharm - output exception of program run and default comment of added function
10、相关数据累积任务实现
22、电文处理任务实现
2022年最火的十大测试工具,你掌握了几个
Easy start, swagger