Created
July 6, 2014 09:52
-
-
Save honda0510/5f9ce447b70cf6d67ac7 to your computer and use it in GitHub Desktop.
vagrantでhttpdサーバの起動がうまくいかない
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
# -*- 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 = "centos64_gihyo" | |
config.vm.network :private_network, ip:"192.168.33.10" | |
config.vm.provision :shell, :inline => <<-EOT | |
yum update -y | |
service iptables stop | |
chkconfig iptables off | |
yum -y install httpd | |
chkconfig httpd on | |
service httpd start | |
EOT | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment