Skip to content

Instantly share code, notes, and snippets.

@5470x3
Last active July 31, 2018 08:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save 5470x3/c7b5833a2a91c0bfde0c88c79f46653c to your computer and use it in GitHub Desktop.
Save 5470x3/c7b5833a2a91c0bfde0c88c79f46653c to your computer and use it in GitHub Desktop.
# zypper in redis
# systemctl enable redis@default
# vim /etc/systemd/system/redis.target.wants/redis@default.service
19- WantedBy=multi-user.target redis.target
19+ WantedBy=graphical.target multi-user.target redis.target
# systemctl daemon-reload
# systemctl start redis@default
# netstat -tln # <- check that redis is runnning.
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
tcp 0 0 :::1716 :::* LISTEN
tcp 0 0 :::22 :::* LISTEN
tcp 0 0 ::1:631 :::* LISTEN
tcp 0 0 ::1:25 :::* LISTEN
# redis-cli
127.0.0.1:6379> info
# Server
redis_version:3.0.4
(snip)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment