LoginSignup
1
1

Webdis の使い方

Last updated at Posted at 2018-01-03

Webdis の使い方です。
Webdis は、Redis の HTTP クライアントです。

Arch Linux へのインストール

yay -S webdis

起動

sudo systemctl start webdis

クライアントからアクセス

redis に保存されている キーが id0001 のデータを取得

curl http://localhost:7379/GET/id0001

redis に保存されている キーの一覧を取得

curl http://localhost:7379/KEYS/*

idで始まるキーの一覧を取得

curl http://localhost:7379/KEYS/id*

実行の様子
webdis_jan0301.png

Webdis を使った応用例

Webdis を使った 在席表

トラブルシューティング

webdis が起動できない時

Unit ファイルを確認

systemctl cat webdis

User
Group
が存在しないと起動できません。

次のようになっていて起動しませんでした。

/usr/lib/systemd/system/webdis.service
(省略)
User=webdis
Group=webdis
(省略)

次のように変更したところ起動しました。

/usr/lib/systemd/system/webdis.service
(省略)
User=redis
Group=redis
(省略)
1
1
3

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1