Last active
October 14, 2020 16:29
-
-
Save midweste/508409c47533dac420655e6e175e288f to your computer and use it in GitHub Desktop.
Lando install memcached on appserver
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
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