Redis パッケージのインストール中のエラー

Redis パッケージのインストール中のエラー

私のサーバーはPleskコントロールパネルを使用し、Hetzner Cloudのサーバーを使用します。問題は、パネルの指示に従ってRedisをインストールしようとすると -https://ontwerps.nl/install-redis-with-plesk-onyxそして最後にエラーが発生します。

This systems seems to use systemd. Please take a look at the provided example service unit files in this directory, and adapt and install them. Sorry!

以前はたまにエラーが発生していましたが/bin/sh:1:pkg-config: not found、コマンドで修正しましたがapt-get install -y pkg-config、エラーの原因は何でしょうか? Debian 9とUbuntu 18.04にインストールしようとしましたが、エラーは同じです。システムの問題を解決してredis-stableをインストールするにはどうすればよいですか?

ベストアンサー1

私のシステムで動作するために従うべきステップ

redis-stable/utils/instal_server.shファイルの次の行をコメントアウトします。

#bail if this system is managed by systemd
#_pid_1_exe="$(readlink -f /proc/1/exe)"
#if [ "${_pid_1_exe##*/}" = systemd ]
#then
#       echo "This systems seems to use systemd."
#       echo "Please take a look at the provided example service unit files in this directory, and adapt and install them. Sorry!"
#       exit 1
#fi

その後、インストールする必要がありますtcl tk

Ubuntuの場合:sudo apt-get install -y tcl tk

Red Hatの場合:sudo yum install tcl tk

それから私はredis-stable/src 走りますsudo make install

次のエラーが表示された場合 Hint: It's a good idea to run 'make test' ;)

redis-stableに戻ってmake distcleanやり直すsudo make install

最後に、次を実行してサーバーを実行します。redis-server

最後に、Redisが正しく機能していることを確認してください。redis-cli ping

おすすめ記事