Skip to content

Instantly share code, notes, and snippets.

@projectweekend
Created December 19, 2013 01:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save projectweekend/8032691 to your computer and use it in GitHub Desktop.
Save projectweekend/8032691 to your computer and use it in GitHub Desktop.
This is all the Vagrant config you need to run a virtual memcache server...if you're into that sort of thing. Seriously though, it can come in handy. Just drop these three files into the same directory and: vagrant up. Your memcache server will be available at: 192.168.100.101:11211. Party on.
#!/usr/bin/env bash
apt-get update
apt-get install -y memcached
cd /vagrant
cp -f memcached.conf /etc/memcached.conf
service memcached restart
# memcached default config file
# 2003 - Jay Bonci <jaybonci@debian.org>
# This configuration file is read by the start-memcached script provided as
# part of the Debian GNU/Linux distribution.
-d
logfile /var/log/memcached.log
-m 64
-p 11211
-u memcache
-l 192.168.100.101
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "precise32"
config.vm.provision :shell, :path => "bootstrap.sh"
config.vm.box_url = "http://files.vagrantup.com/precise32.box"
config.vm.network :private_network, ip: "192.168.100.101"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment