-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmemcached.sh
37 lines (29 loc) · 1.13 KB
/
memcached.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# This script installs PHP memcached service on a Linux VM - developed with CentOS in mind
# A monitor service is also installed to verify memcached is functioning correctly - additional configuration with web-app required
#!/bin/bash
set -e
echo "==============================="
echo "Installing Memcached service"
echo "==============================="
sudo yum install memcached
echo "==============================="
echo "Memcached installed."
echo "To view info, use `memcached -h`."
echo "Configuring to Start on Boot."
echo "==============================="
sleep 2s
systemctl enable memcached
echo "==============================="
echo "Installing Memcached PHP module"
echo "==============================="
sudo yum install php-pecl-memcached.x86_64
sudo apachectl restart
sleep 2s
echo "==============================="
echo "Installing memcache monitor"
echo "==============================="
sudo yum install nmap-ncat.x86_64
echo "==============================="
echo "Services all installed."
echo "Make sure to configure and the restart the memcache service as well as web configuration."
echo "==============================="