Build a FTP search engine under Linux

xiaoxiao2021-03-06  67

Linux is a big way, many friends believe that there is a variety of services, what Web, FTP, BBS, etc., this time, I introduce another server software running under Linux ---- Noseyparker, A powerful FTP search engine, as long as some simple steps, a powerful search engine is built, and you listen to me slowly.

PARKER is an FTP server search engine, which is Linux-based open source software. Mainly retrieve the files above the respective FTP servers, then save the directory information in the local file, if there is a query request, the local data will be retrieved, and the relevant information (the address is located) is returned to the requester. Many FTP sites in education network use this as a search engine, such as Tsinghua Jiujing, etc.

How to use is very simple, if you are a Linux system, there should be no problem. If it is an other UNIX-Like system, it can also be simulated accordingly.

This article uses the red flag 2.0 desktop version as an example to explain the entire architecture process. Because of the relative to the author, the individual feels that the red flag Linux is better, Chinese Chinese is also very good. His Web Server (Apache) setting can be implemented through the XWindow interface, which is more convenient for primary users.

First, you have to get a Parker's source code. Recommend this site search, you can find a site for providing source code: http://e.pku.edu.cn, after getting the source code, we You can start installing.

The basic installation method is as follows (you can refer to the README action below the Parker directory):

Of course, the first thing is to open your Linux, then you get the PARKER source code file (generally parker.2000-09-06.xxxx.tgz, which contains this Parker's modification date and modifier) Expand into a directory, here we assume that it is / root / parker /. This file is used to edit the / root / parker / src / makefile, mainly to set up PARKER_HOME for your Parker's directory (/ root / parker /) in the Terminal window Enter the command Make Config to compile in your / root / Parker / src / directory, execute make config. Make Some of the projects in VC can process some programs in batches. All UNIX-Like systems have Make this program, otherwise, you don't have support for the development environment when you install Linux. (Choose custom installed friends should pay attention, I first loaded the red flag, choose custom, accidentally, this make, I didn't put it up) Edited / ROOT/PARKER/SRC/PARKER.H, set the Server, PARKERSERVER, the specific method is to replace "10.129.6.172" to the server address where your Parker is located. Continue to type make install to compile your PARKER_HOSTS file after compiling the Make Install to compile your Parker_Hosts file, join the FTP server address you need to retrieve, one line of FTP server addresses. Copy the CGI program (CGI, CGISTATUS, CGITCH below) below, which can be generated after you above the compilation completion below. Below below. Put the / root / parker / html / below to the DOC root of your WWW server so that you can be accessed by users. For details on the settings of Web Server, please refer to other documents, but relatively, the red flag Linux's Apache setting is relatively simple. Edit your / etc / services and /etc/inetd.conf files to join the Parker service. Specific modification can refer to the example below / root / parker / conf / directory. In the example / usr / networking / parker / bin / parker, this directory refers to the directory where Parker is located, modified to / root / parker / bin / parkerd, of course, you must first complete make install, this is in your Parker The / bin / directory will have ParkerD this file. Restart inetd and WWW server programs. Timed / root / parker / bin / newdata This script file can be placed in your crontab to make the system regularly (usually 1 day to 1 week).

The NewData script will access the FTP server defined in the / root / parker / parker_hosts and store the retrieved data to the local, then processed accordingly. WWW users can perform file query requests by accessing the Parker page. When you can successfully implement make install, you will see this NewData file in your / root / parker / bin / directory, pay attention, you can't run him directly in this script, otherwise you will be wrong, you can't Collect data, you can perform Parker / Bin / NewData in the root directory (case sensitive). At this point, a powerful search engine has been established. The simple interface is as follows (the specific page display effect can modify the / root / parker / html / below file, but the page of the search results must be modified /root/parker/src/cgi.c file, and then recompilated party, request is required HTML language skills.) Source:

Madman

转载请注明原文地址:https://www.9cbs.com/read-92586.html

New Post(0)