Starting and stopping the server
Starting and stopping the server
These instructions are for Linux. The gluctlscript is utilized, which is created during install. For Windows instructions on how to start the server, please go here.
The gluctlscript is located in your RESTx home directory; the directory you created when you downloaded and unpacked RESTx. gluctlcan be run as non-root user and allows you to start/stop the server in various ways, to create and install new components or compile your Java component code. Please see also the complete discussion of the gluctlscript.
Here, however, here we just quickly summarize the most important options to start and stop the server:
- Start server in the foreground, with output to the console.
% ./gluctl start
Or to start server in the background.
% ./gluctl start -b
- To stop the server run:
% ./gluctl stop
Or type CTL-C if the server runs in the foreground.
- To restart a running server:
% ./gluctl restart [-b]
The process PID is stored in glu.pid, while the logfile is glu.log. The server listens for HTTP requests on port 8001 by default.