|
Command line parameters
|
An option to directly control Apache and MySQL servers is provided by running UniController with a command line parameter. The servers can be controlled individually or both at the same time. UniController is automatically closed after executing a command parameter.
This page covers command parameters supported by UniController.
Parameters
UniController accepts one of the following parameters:
Parameter | Description |
start_apache | Starts Apache server |
stop_apache | Stops Apache server |
start_mysql | Starts MySQL server |
stop_mysql | Stops MySQL server |
start_both | Starts Apache and MySQL servers |
stop_both | Stops Apache and MySQL servers |
pc_win_start | Automatic start-up. For details, see note 2. |
Note 1: Before starting UniController with a parameter, first ensure servers have been configured and function correctly. In other words, start UniController normally and test the servers.
Note 2: Except for pc_win_start, UniController is closed after executing the command line parameter.
Detailed use of pc_win_start is covered in section PC-Win start-up on the Extra Utilities page.
Batch file examples
Create the following batch files and place them in folder UniServerZ.
Run each file pair. For example, start_apache.bat/stop_apache.bat demonstrates starting and stopping the Apache server.
start_apache.bat
UniController.exe start_apache
pause
|
|
start_mysql.bat
UniController.exe start_mysql
pause
|
|
start_both.bat
UniController.exe start_both
pause
|
stop_apache.bat
UniController.exe stop_apache
pause
|
|
stop_mysql.bat
UniController.exe stop_mysql
pause
|
|
stop_both.bat
UniController.exe stop_both
pause
|
Note: If the batch files are located outside of folder UniServerZ (for example, folder UniServerZ and batch files are located at the top-level of C drive), adjust path to UniController.exe in each batch file. For example, batch files for Apache become:
start_apache.bat
C:\UniServerZ\UniController.exe start_apache
pause
|
|
|
|
|
stop_apache.bat
C:\UniServerZ\UniController.exe stop_apache
pause
|
|
|
|
|
Note: Although absolute paths are shown (C:\UniServerZ\UniController.exe), you can use relative paths if you wish (UniServerZ\UniController.exe).
--oOo--
|