Working on some stuff to make it easier to do my posts
This commit is contained in:
parent
6fbc61f651
commit
a06a8c4bea
2 changed files with 12 additions and 1 deletions
2
run.sh
Normal file → Executable file
2
run.sh
Normal file → Executable file
|
@ -11,7 +11,7 @@ swapoff -a
|
|||
|
||||
apt-get update
|
||||
apt-get upgrade -y
|
||||
apt-get install sysbench apache2 mailutils mysql-server python -y
|
||||
apt-get install sysbench nginx mysql-server python -y
|
||||
|
||||
wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
|
||||
chmod +x speedtest-cli
|
||||
|
|
11
start.sh
Executable file
11
start.sh
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
ssh-copy-id "root@$2"
|
||||
|
||||
rsync -avz run.sh "root@$2:~/"
|
||||
|
||||
ssh "root@$2" "./run.sh $1"
|
||||
|
||||
rsync -avz "root@$2:~/results-$1.tgz" ./
|
||||
|
||||
ab -kc 1000 -n 10000 "http://$2/" > "./ab-$1.log"
|
Loading…
Add table
Add a link
Reference in a new issue