Created
May 5, 2020 04:15
-
-
Save toanalien/3a03ea48315aa0ec2f616954ef3b4b70 to your computer and use it in GitHub Desktop.
centos with redis
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
$install_redis = <<-'SCRIPT' | |
sudo yum update -y | |
sudo yum install epel-release yum-utils -y | |
sudo yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm -y | |
sudo yum-config-manager --enable remi -y | |
sudo yum install redis -y | |
sudo systemctl status redis | |
SCRIPT | |
Vagrant.configure("2") do |config| | |
config.vm.box = "centos/7" | |
config.vm.provision "shell", inline: $install_redis | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment