| MATLAB Web Server | ![]() |
Solaris/Linux Post-Installation Procedures
The MATLAB Web Server installation procedure places five scripts into the <matlab>/webserver directory:
webconf: Builds matlabserver configuration file (matlabserver.conf). See Chapter 2 for a discussion of matlabserver and the matlabserver.conf file. Use this script to specify the number of simultaneous MATLABs to run, the non-default TCP/IP port, and other variables.
webstart: Stops and restarts matlabserver via calls to webdown and webboot. These three scripts must all reside in the same directory.
webdown: Stops running matlabserver.
webboot: Starts matlabserver.
webstat: Displays matlabserver status information.
at the command prompt to see detailed information about a specific script. After completing the MATLAB and MATLAB Web Server installation process, run thescript_name-h
webconf script to generate the matlabserver.conf file. Then run webstart to start matlabserver. Run webdown at any time to stop matlabserver execution.
Automatic Startup at System Boot
matlabserver automatically at system boot, create the following links and file while logged in as root (superuser):
ln -s $MATLAB/webserver/webboot /etc/webboot$WEBSERVER_MARKER ln -s $MATLAB/webserver/webdown /etc/webdown$WEBSERVER_MARKER
$WEBSERVER_MARKER is a marker string that uniquely identifies this release
of the MATLAB Web Server. It is defined in the matlabserver.conf file.
(See matlabserver.conf.) The default is _TMW$RELEASE, where
$RELEASE is a string like 'R12', also set in matlabserver.conf.
/webserver are two initialization scripts:
Solaris users should copy the script as shown below.
cp $MATLAB/webserver/rc.web.sol2 /etc/init.d/webserver
Linux users should copy the appropriate script as shown below.
cp $MATLAB/webserver/rc.web.glnx86 /etc/init.d/webserver (Debian)
cp $MATLAB/webserver/rc.web.glnx86 /etc/rc.d/init.d/webserver
(Red Hat)
rc directory associated with run level 3.
cd /etc/rc3.d; ln -s ../init.d/webserver S20webserver
Linux users should look in /etc/inittab for the default run level. Create a
link in the rc directory associated with that run level. For example, if it is 5:
cd /etc/rc5.d; ln -s ../init.d/webserver S95weberver (Debian) cd /etc/rc.d/rc5.d; ln -s init.d/webserver S95webserver (Red Hat)
cd /etc/init.d ./webserver start
On Linux enter:
cd /etc/init.d (Debian) cd /etc/rc.d/init.d (Red Hat) ./webserver start
cd $MATLAB/webserver webstat -c $CONFIGURATION_FILE
$CONFIGURATION_FILE is the path to the file matlabserver.conf.
| General Post-Installation Procedures | Windows NT Post-Installation Procedures | ![]() |