In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to build OpenGrok fast index by android". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "how to build an OpenGrok fast index by android".
Openggrok can quickly browse the source code, find related files and functions and so on.
The code is then on the server, and opengrok search is used locally.
The construction of the environment is carried out on the server.
Note: the following configuration is done on the server, and the opening URL is done locally.
The code is on the cloud, so various configurations are also configured on the cloud. Get an address on pc, and the index is fine.
Tomcat
Download:
Reference 1: a tutorial on using Tomcat under Linux (1)
Tomcat official website: Tomcat
Download to the server where the code is stored.
Start the service
Extract the zip file:
Grant executable permissions: cd to the bin directory, and then execute the authorization:
Activate the service:
I saw the service turned on.
Check locally whether it is enabled successfully:
Open the address http://serverip: 8080, and change the serverip here to the real ip address, which is the address of your server, such as 912.168.31.11.
Opengrok
Download opengrok and extract it.
Link: https://pan.baidu.com/s/1-o3j815TbNK3jCL8RyO63A
Extraction code: lra6
Since github can sometimes be difficult to download, put it on a network disk here for download. Forever.
Tar-xzvf opengrok-1.3.6.tar.gz opengrok-1.3.6
After decompression, copy the source.war under the lib directory to the webapps directory of tomcat:
Lib$ cp source.war... /... / apache-tomcat-9.0.37/webapps/
At this point, open the address: http://serverip: 8080 source ip, where the serverip is changed to the true ip address, which is the address of your server, such as 912.168.31.11.
In the address, there is one more soource than in the first step, and the rest is the same.
Problem 1: an exception may occur here (visit xxx:8080/source/, to enter a user name and password). At this time, you can modify the configuration. If you do not encounter it, you will skip the following and move on to the next section. As follows:
In the apache-tomcat-9.0.37/conf directory, change the modified file server.xml from 8080 to 8888, and save it.
Then restart:
Execute shutdown.sh first, then startup.sh.
If you open the address again, you can see that the configuration is successful.
At this point, open the address: http://serverip: 8888 source serverip, where the serverip is changed to the true ip address, which is the address of your server, such as 912.168.31.11
Ctags:
Download and install:
Git clone https://github.com/universal-ctags/ctagscd ctags./configuresudo makesudo make install
After the execution is completed, enter ctags, and there will be an output:
Xxx:ctags$ ctagsctags: No files specified. Try "ctags-help". Download code, configure index
Download the code to a directory, where I put it
Code/xunMa/vsoon-rom
Create an index directory, such as code//opengrok/data
Under the current directory (code directory): create an index (directories are all created by the above steps, not exactly the same, just follow your own directory)
Java-jar opengrok-1.3.6/lib/opengrok.jar-s xunMa/vsoon-rom-d opengrok/data-H-P-S-G-W opengrok/data/configuration.xml
There will be a lot of warning, just ignore it.
4. Configure index
The index file is available at:
You need to modify the file in tomcat to modify the above path.
In the directory: code/apache-tomcat-9.0.37/webapps/source/WEB-INF
At this point, it's over.
Open the address again: http://serverip: 8888 source serverip, where the serverip is changed to the real ip address, which is the address of your server, such as 912.168.31.11.
I found that I had already ok.
At this point, I believe you have a deeper understanding of "android how to build OpenGrok fast index". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.