Skip to content

Commit

Permalink
Allow external access to Memcached and Redis
Browse files Browse the repository at this point in the history
  • Loading branch information
natanfelles committed Nov 19, 2018
1 parent 0e71060 commit 4426258
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,15 @@ Vagrant.configure("2") do |config|
sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE codeigniter TO root"
systemctl restart postgresql
echo "================================================================================"
echo "Configuring Memcached and Redis"
echo "================================================================================"
sed -i "s/^bind 127.0.0.1 ::1/#bind 127.0.0.1 ::1/" /etc/redis/redis.conf
sed -i "s/^protected-mode yes/protected-mode no/" /etc/redis/redis.conf
sed -i "s/^-l 127.0.0.1/#-l 127.0.0.1/" /etc/memcached.conf
systemctl restart redis
systemctl restart memcached
echo "================================================================================"
echo "Configuring Virtual Hosts"
Expand Down

0 comments on commit 4426258

Please sign in to comment.