Skip to content

Commit 350c3f1

Browse files
committed
Deployment Guide
1 parent 6452f4c commit 350c3f1

File tree

1 file changed

+15
-20
lines changed

1 file changed

+15
-20
lines changed

deployingzscluster.md

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -14,46 +14,41 @@ Zend Server user interface is driven by MySQL database and separate instance of
1414
---------------
1515

1616
1. Installing and configuring MySQL.
17-
./mysql-install.sh
17+
18+
./mysql-install.sh
1819

1920
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.
2021

2122
2. Adding user with **Admin** priveleges on the database which will be used by **Zend Cluster**.
2223

23-
`
24-
mysql> CREATE zend_db_name;`
25-
26-
`
27-
mysql> CREATE USER 'zend_db_user'@'localhost' IDENTIFIED BY 'zend_db_pass';
28-
`
29-
30-
`mysql> GRANT ALL PRIVILEGES ON zend_db_name.* TO 'zend_db_user'@'localhost'
31-
WITH GRANT OPTION;`
24+
25+
mysql> CREATE zend_db_name;
26+
27+
mysql> CREATE USER 'zend_db_user'@'localhost' IDENTIFIED BY 'zend_db_pass';
28+
29+
mysql> GRANT ALL PRIVILEGES ON zend_db_name.* TO 'zend_db_user'@'localhost' WITH GRANT OPTION;
3230

33-
`
34-
mysql> CREATE USER 'zend_db_user'@'%' IDENTIFIED BY 'zend_db_pass';
35-
`
31+
mysql> CREATE USER 'zend_db_user'@'%' IDENTIFIED BY 'zend_db_pass';
3632

37-
`
38-
mysql> GRANT ALL PRIVILEGES ON zend_db_name.* TO 'zend_db_user'@'%'
33+
mysql> GRANT ALL PRIVILEGES ON zend_db_name.* TO 'zend_db_user'@'%'
3934
WITH GRANT OPTION;
40-
`
35+
4136

4237
Above provided example of SQL sintax to create database and use and grant required permissions.
4338

4439
3. Install Zend Command Line scripts on all the nodes.
4540

46-
`yum -y install git`
41+
yum -y install git
4742

48-
`git clone git://github.com/zendtech/ZendServerCommandLineScripts.git ----recursive`
43+
git clone git://github.com/zendtech/ZendServerCommandLineScripts.git ----recursive
4944
4. Changing Zend Server variables according to current licenses and passwords
5045

51-
`nano -w globals.sh`
46+
nano -w globals.sh
5247

5348

5449
5. Runing Zend Command Line script and join cluster.
5550

56-
`./zs-setupjoin.sh`
51+
./zs-setupjoin.sh
5752

5853
6. Extras
5954

0 commit comments

Comments
 (0)