Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // To install
- mkdir /usr/local/redis
- cd /usr/local/redis
- git init
- git pull https://github.com/redis/redis.git
- rm -r .* *.md 00-RELEASENOTES BUGS COPYING INSTALL MANIFESTO
- make install
- # Optional
- ## If you want/need to secure your Redis instance with a password, do the following:
- ### Go with your SFTP Client to /usr/local/redis and download the redis.conf
- ### Go to the line 1045 an uncommit
- ### Replace "foobared" with your password
- # Now we setup a service for redis
- cat << EOF > /etc/systemd/system/redis.service
- [Unit]
- Description=Redis
- After=network.target
- Wants=network-online.target
- [Service]
- Restart=always
- Type=simple
- ExecStart=redis-server
- Environment=
- [Install]
- WantedBy=multi-user.target
- EOF
- # Enable
- systemctl enable redis
- # And start Redis with
- systemctl start redis
- # To check, if Redis really running
- systemctl status redis
- // To uninstall
- rm -r /usr/local/redis
- rm -r /usr/bin/redis-benchmark
- rm -r /usr/bin/redis-check-aof
- rm -r /usr/bin/redis-check-rdb
- rm -r /usr/bin/redis-cli
- rm -r /usr/bin/redis-sentinel
- rm -r /usr/bin/redis-server
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement