Skip to content

Instantly share code, notes, and snippets.

@midweste
Last active October 14, 2020 16:29
Show Gist options
  • Save midweste/508409c47533dac420655e6e175e288f to your computer and use it in GitHub Desktop.
Save midweste/508409c47533dac420655e6e175e288f to your computer and use it in GitHub Desktop.
Lando install memcached on appserver
...
services:
appserver:
build_as_root:
- apt-get update -y && apt-get install -y memcached libmemcached-tools
- echo "#!/bin/sh\n/etc/init.d/memcached start\nexit 0" > /scripts/200-memcache-start
- chmod u=rwx,g=rx,o=rx /scripts/200-memcache-start && chown www-data:www-data /scripts/200-memcache-start
- sed -i 's/-m 64/-m 256/g' /etc/memcached.conf && echo '-o modern' >> /etc/memcached.conf
- sh /scripts/200-memcache-start
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment