Created
December 19, 2013 01:14
-
-
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.
This file contains 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
#!/usr/bin/env bash | |
apt-get update | |
apt-get install -y memcached | |
cd /vagrant | |
cp -f memcached.conf /etc/memcached.conf | |
service memcached restart |
This file contains 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
# 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 |
This file contains 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
# -*- 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