Changing default port of memcache on Centos 6
One of those things that just took me a lot longer than I expected…
Changing memcache port seems simple enough - just edit
/etc/sysconfig/memcached and change the PORT value
BUT on a new centOS install memcache failed to start on any non-standard port.
verbose remote ssh (with echo)
I usually manage website deployment with bash scripts that run remote commands on the servers
In order that I can see what is going on and debug any errors verbose output is useful.
Running “bash -ex” causes each line to be output as it progresses and halt on any error so that you don’t miss it.
within the remote command “set -x” cause bash to echo all commands