MATLAB Web Server |
 |
matlabserver.conf
When matlabserver
starts up, it looks in the file matlabserver.conf
for its initial setting data. On Windows NT the installation procedure creates this file in the <matlab>/webserver
directory while installing the MATLAB Web Server. On other systems you must first run the webconf
script to establish values for some of the arguments in the file before starting the MATLAB Web Server.
Configuration settings must appear on the first line of the matlabserver.conf
file. The basic options set by the data in matlabserver.conf
are:
- Port number
- Threads (maximum number of simultaneous MATLABs)
- Display: Specifies the display. (Solaris)
- Release: Specifies the release number. (Solaris/Linux)
The default version of matlabserver.conf
file is simply
-m 1
meaning that you want to run one copy of MATLAB with the matlabserver
port defaulted to 8888
.
Changing Initial Data
Edit matlabserver.conf
on Windows NT. On Solaris/Linux run the webconf
script to initialize the matlabserver.conf
file. Edit this file if you want to change options further, particularly those that webconf
cannot set on the command line. To see any changes you have made to matlabserver.conf
, you need to stop and restart the MATLAB Web Server.
Table 3-1: matlabserver Basic Options
Option
|
Meaning
|
-p [n ]
|
Port that matlabserver listens on. 8888 is the default.
|
-m [n ]
|
MATLABs to run. Default is 1 .
|
DISPLAY =
|
Specifies where the output is displayed. (Solaris/Linux) Use -nodisplay if there is no graphical output.
|
WEBSERVER_MARKER
|
Extension for file naming. (Solaris/Linux). Default is:
WEBSERVER_MARKER = _TMW$RELEASE
RELEASE is determined from the $MATLAB/.VERSION file. For example, for Release 12, RELEASE is R12 .
|
Type matlabserver -h
on Windows NT (webconf -h
on Solaris/Linux) for a list of additional editable matlabserver.conf
options.
If matlabserver
cannot locate a matlabserver.conf file
, it uses the defaults.
| Understanding matlabserver | | Using matlabserver |  |