Starting and stopping IBM HTTP Server (IHS) involves using the provided command-line scripts. Below are the basic commands for starting and stopping IBM HTTP Server:
Starting and Stopping IBM HTTP Server:
- Start IBM HTTP Server:
- On Unix/Linux:
<IHS_HOME>/bin/apachectl start - On Windows:
<IHS_HOME>\bin\httpd.exeor use the Windows Services.
- On Unix/Linux:
- Stop IBM HTTP Server:
- On Unix/Linux:
<IHS_HOME>/bin/apachectl stop - On Windows:
<IHS_HOME>\bin\httpd.exe -k shutdownor use the Windows Services.
- On Unix/Linux:
Note:
- Replace
<IHS_HOME>with the actual path to your IBM HTTP Server installation directory.
Example Usage:
Assuming your IBM HTTP Server is installed in /opt/IBM/HTTPServer:
- Start IBM HTTP Server on Unix/Linux:
/opt/IBM/HTTPServer/bin/apachectl start - Start IBM HTTP Server on Windows:
- Run the
httpd.exeexecutable directly from the command prompt or use the Windows Services.
- Run the
- Stop IBM HTTP Server on Unix/Linux:
/opt/IBM/HTTPServer/bin/apachectl stop - Stop IBM HTTP Server on Windows:
/opt/IBM/HTTPServer/bin/httpd.exe -k shutdownor use the Windows Services.
Additional Considerations:
- Ensure that the necessary environment variables are set before running the commands.
- For Windows, you may need to run the command prompt as an administrator to start and stop services.
- You may use the
-koption withhttpd.exeon Windows for additional control options. For example:<IHS_HOME>\bin\httpd.exe -k restartThis will restart the IBM HTTP Server.
Always refer to the official IBM documentation specific to your version of IBM HTTP Server for the most accurate and up-to-date information. The commands and paths might vary based on the version of IBM HTTP Server you are using.