Skip to content

Commit 2d964e1

Browse files
committed
Writting an ssh example
1 parent 8dae8a4 commit 2d964e1

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

deployingzscluster.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,12 @@ Zend Server user interface is driven by MySQL database and separate instance of
5050

5151
./zs-setupjoin.sh
5252

53+
*Steps 3-5 will have to be performed on all the nodes. We suggest setting up private and public keys in advance and runnign the commands over ssh. See sshexample.sh
54+
5355
6. Extras
5456

5557
- Enable session clustering from command line.
5658
- Deploy an application from command line.
5759
- Remove node.
5860

59-
61+

sshexample.sh

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
# Linux/UNIX box with ssh key based login
3+
SERVERS="192.168.15.1 192.168.15.2 192.168.15.3"
4+
# SSH User name
5+
USR="zendadmin"
6+
7+
8+
# Connect each host and run join or creat cluster script
9+
for host in $SERVERS
10+
do
11+
ssh $USR@$host ./zs-setupjoin.sh
12+
done
13+

0 commit comments

Comments
 (0)