The following section describes how to do control Zend Server components from the command line.
The setup and control scripts control the optional components that come with Zend Server for the DEB and RPM packages.
|
|
|
To control the UI's dedicated server, run: # <install_path>/bin/lighttpdctl.sh stop|start|restart To set the UI's password, run: #<install_path>/bin/php <install_path>/bin/gui_passwd.php To setup the Java Bridge, run: #<install_path>/bin/setup_jb.sh To control (start/stop) the Java Bridge daemon, run: # <install_path>/bin/java_bridge.sh stop|start|restart |
|
The following table lists the possible actions that can be done to the Zend Server components from the command line:
Usage: /usr/local/zend/bin/zendctl.sh <action>.
Note:
In clustered environments these actions are done exclusively on the servers associated with the cluster from each server's command line.
|
Action |
Description |
Zend Server |
start | Start all Zend Server daemons |
|
stop | Stop all Zend Server daemons |
|
restart | Restart all Zend Server daemons |
|
version | Print Zend Server version |
|
status | Get Zend Server status |
Apache |
start-apache | Start Apache only |
|
stop-apache | Stop Apache only |
|
restart-apache | Restart Apache only |
nginx | start-nginx | Start nginx only |
stop-nginx | Stop nginx only | |
restart-nginx | Restart nginx only | |
FPM | start-fpm | Start fpm only |
stop-fpm | Stop fpm only | |
restart-fpm | Restart fpm only | |
LightHttpd |
start-lighttpd | Start lighttpd only |
|
stop-lighttpd | Stop lighttpd only |
|
restart-lighttpd | Restart lighttpd only |
Java Bridge Daemon |
setup-jb | Setup Java Bridge |
Running zendctl.sh will show a list of uses and only after running setup_jb.sh will the following additional options be available: |
start-jb | Start Java Bridge only |
|
stop-jb | Stop Java Bridge only |
|
restart-jb | Restart Java Bridge only |
Zend Monitor Daemon |
start-monitor | Start Monitor daemon only |
|
stop-monitor | Stop Monitor daemon only |
|
restart-monitor | Restart Monitor daemon only |
Zend Job Queue Daemon |
start-jobqueue | Start Job Queue daemon only |
|
stop-jobqueue | Stop Job Queue daemon only |
|
restart-jobqueue | Restart Job Queue daemon only |
Zend Session Clustering Daemon (SCD) |
start-scd | Start Session Clustering daemon only |
|
stop-scd | Stop Session Clustering daemon only |
|
restart-scd | Restart Session Clustering daemon only |
Zend Deployment Daemon |
start-deployment | Start Deployment daemon only |
|
stop-deployment | Stop Deployment daemon only |
|
restart-deployment | Restart Deployment daemon only |
Zend Server Daemon (ZSD) |
start-zsd | Start Zend Server daemon only |
|
stop-zsd | Stop Zend Server daemon only |
|
restart-zsd | Restart Zend Server daemon only |
Zend Server by default is installed to start at boot time. You can, if you want to, change that, using native OS tools (using chkconfig or update-rc.d). You can even control which specific daemons are started or not when Zend Server starts - this is useful if, for example, if you are not using Job Queue and do not want this daemon to run for nothing.
The Zend Server daemons are controlled via: /usr/local/zend/bin/zendctl.sh which issymlinked to /etc/init.d/Zend Server
Zend Server postinstall scripts call:
By default, Zend Server
for Mac OS X comes with MySQL installed in the following location:
/usr/local/zend/mysql/
You can control the operation of MySQL by using the mysql.server in the bin directory:
/usr/local/zend/mysql/bin/mysql.server
The available commands are: start | stop | restart | reload | force-reload | status
By default, MySQL does not allow local and remote access to TCP port 3306, and can only be accessed using a local socket file ('/usr/local/zend/mysql/tmp/mysql.sock').
You should secure your root user as before enabling MySQL TCP access - see links to MySQL documentation below.
Port 3306 should be open for MySQL client access.
For additional information, please refer to MySQL documentation at:
http://dev.mysql.com/doc/refman/5.0/en/default-privileges.html
http://dev.mysql.com/doc/refman/5.0/en/server-options.html#option_mysqld_skip-networking