HTTP service

Read(3517) Label: http service,

You can choose to skip this section if you are not a professional programmer. This won’t affect your learning about the other contents of this Tutorial.

esProc provides HTTP service to access the result set of a script file through URL. For detailed information, look up the httpfile() function in Function Reference. Make sure you use JDK version 1.8 or above. This section introduces how to launch the HTTP service.

6.7.1 Starting the GUI console

In esProc’s [installation root directory]\esProc\bin, double click the esprocs.exe file (Under Linux, execute ServerConsole.sh) to pop up the Http Server window:

Select Http Server and click Config to open Http Server window for configuring the port:

Click OK and esProc will automatically configure the HttpServer.xml file according to the configured information under [installation root directory]\esProc config. Then click Start to launch the esProc HTTP service. To stop the service, just click Stop.

If “Auto start server” is checked in the configuration window, Http Server will automatically start up when the esproc service is launched:

6.7.2 Starting non-GUI console

Use the non-GUI console under Linux, here is how to start it: execute the command ./ServerConsole.sh  -h in the esProc\bin directory under the installation root directory to start the HTTP service.