You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Deploying Zend Server Cluster using command line scripts. Four node example.
2
+
================
3
+
4
+
### Introduction.
5
+
---------------
6
+
This tutorilal explains how to setup Zend Server Cluster using bash scripts.
7
+
8
+
Scripts examples have been written to provide base to custom integration of Zend Server into current deployment framework or as an easy to read example which can be implemented in other programming languages.
9
+
10
+
Zend Server user interface is driven by MySQL database and separate instance of MySQL is required.
11
+
12
+
13
+
### Installation.
14
+
---------------
15
+
16
+
1. Installing and configuring MySQL.
17
+
./mysql-install.sh
18
+
19
+
The goal of this step is to install and configure MySQL database backend to be used by **Zend Server Cluster Nodes**. Best practices would be to creat separate user with permissions on an empty database. "Registration" of the Zend Server node to the database will populate it with required structure. For small non-production environment location of the MySQL is no critical and can reside on one of the cluster nodes.
20
+
21
+
2. Adding user with **Admin** priveleges on the database which will be used by **Zend Cluster**.
22
+
23
+
`
24
+
mysql> CREATE zend_db_name;`
25
+
26
+
`
27
+
mysql> CREATE USER 'zend_db_user'@'localhost' IDENTIFIED BY 'zend_db_pass';
28
+
mysql> GRANT ALL PRIVILEGES ON zend_db_name.* TO 'zend_db_user'@'localhost'
29
+
WITH GRANT OPTION;`
30
+
31
+
`
32
+
mysql> CREATE USER 'zend_db_user'@'%' IDENTIFIED BY 'zend_db_pass';
33
+
mysql> GRANT ALL PRIVILEGES ON zend_db_name.* TO 'zend_db_user'@'%'
34
+
WITH GRANT OPTION;
35
+
`
36
+
37
+
Above provided example of SQL sintax to create database and use and grant required permissions.
38
+
39
+
3. Install Zend Command Line scripts on all the nodes.
0 commit comments