Skip to content

Commit 4426258

Browse files
committed
Allow external access to Memcached and Redis
1 parent 0e71060 commit 4426258

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Vagrantfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,15 @@ Vagrant.configure("2") do |config|
110110
sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE codeigniter TO root"
111111
systemctl restart postgresql
112112
113+
echo "================================================================================"
114+
echo "Configuring Memcached and Redis"
115+
echo "================================================================================"
116+
117+
sed -i "s/^bind 127.0.0.1 ::1/#bind 127.0.0.1 ::1/" /etc/redis/redis.conf
118+
sed -i "s/^protected-mode yes/protected-mode no/" /etc/redis/redis.conf
119+
sed -i "s/^-l 127.0.0.1/#-l 127.0.0.1/" /etc/memcached.conf
120+
systemctl restart redis
121+
systemctl restart memcached
113122
114123
echo "================================================================================"
115124
echo "Configuring Virtual Hosts"

0 commit comments

Comments
 (0)